pull

Name

cb-cli pull - Brings the latest versions of assets from the ClearBlade platform System to the local development environment

Synopsis

cb-cli pull 
	[-all-services]
	[-all-libraries]
	[-all-edges]
	[-all-devices]
	[-all-portals]
	[-all-plugins]
	[-all-adapters]
	[-userschema] 
	[-service=<SERVICE_NAME>]
	[-library=<LIBRARY_NAME>]
	[-collection=<COLLECTION_NAME>]
	[-user=<EMAIL>]
	[-role=<ROLE_NAME>]
	[-trigger=<TRIGGER_NAME>]
	[-timer=<TIMER_NAME>]
	[-edge=<EDGE_NAME>]
	[-device=<DEVICE_NAME>]
	[-portal=<PORTAL_NAME>]
	[-plugin=<PLUGIN_NAME>]
	[-adapter=<ADAPTER_NAME>]

Description

The pull command allows you to selectively grab a specific object (eg a specific code service or library) from the associated ClearBlade system and pull it down to your local repo. This is useful when (for example) multiple developers are working on the same code service. When one developer modifies the code service, you can pull it down and make modifications to the latest version.

Options ##

  • all-services
    Pulls all of the services stored in the repo

  • all-libraries
    Pulls all of the libraries stored in the repo

  • all-edges
    Pulls all of the edges stored in the repo

  • all-devices
    Pulls all of the devices stored in the repo

  • all-portals
    Pulls all of the portals stored in the repo

  • all-plugins
    Pulls all of the plugins stored in the repo

  • all-adapters
    Pulls all of the adapters stored in the repo. Includes adapter metadata as well as all files associated with each adapter.

  • userschema
    Pulls the remote version of the users table schema to a local repository.

  • service=< service_name >
    Pulls the remote version of a specific service to a local repository.

  • library=< library_name >
    Pulls the remote version of a specific library to a local repository.

  • collection=< collection_name >
    Pulls the remote version of a specific collections’ meta-data to a local repository.

  • user=< email >
    Pulls the remote version of a specific user record to a local repository. Also Pulls the roles assigned to a user.

  • role=< role_name >
    Pulls all the capability details of the specific role to a local repository.

  • trigger=< trigger_name >
    Pulls the remote version of a specific trigger to a local repository.

  • timer=< timer_name >
    Pulls the remote version of a specific timer to a local repository.

  • edge=< edge_name >
    Pulls the remote version of a specific edge to a local repository.

  • device=< device_name >
    Pulls the remote version of a specific device to a local repository.

  • portal=< portal_name >
    Pulls the remote version of a specific portal to a local repository.

  • plugin=< plugin-name >
    Pulls the remote version of a specific plugin to a local repository.

  • adapter=< adapter-name >
    Pulls the remote version of a specific adapter to a local repository. Includes the adapter metadata as well as the files associated with the adapter.

Example

cb-cli pull

cb-cli pull -all-services

cb-cli pull -collection=MyCollection