import

Name

cb-cli import - Takes the assets stored locally and creates a new ClearBlade platform System with the same structure and assets

Synopsis

cb-cli import 
	[-url = <URL>]
	[-email = <EMAIL>]
	[-password = <PASSWORD>]
	[-importrows] 
	[-importusers] 

Description

The import command is run from inside an existing repo for a system. It creates an entirely new system, perhaps on a different clearblade platform instance. Think of it as cloning the system somewhere else. A common use would be as follows. Suppose you’re developing and testing a ClearBlade system inside your private development sandbox. When the system is ready to be deployed to production, you would use the import command to effectively push it into production.

Note: Only assets that a currently local are imported into the new system.

Options ##

  • url
    The URL of the destination system (ie, where the new system should be). If you don’t specify this option on the command line, you will be prompted for it.

  • email
    The developer’s email on the destination system. If you don’t specify this option on the command line, you will be prompted for it.

  • password
    The developer’s password. If you don’t specify this option (we recommend you don’t), you will be prompted for it.

  • importrows
    By default, collection rows (items) are not imported. Pass this option to import all items.

  • importusers
    By default, the users are not imported into the new system. If you set this option, the users will imported, but their passwords will all be set to “password”, since we don’t transfer passwords back and forth between systems.

Once this command is completed, the newly imported system is fully-functional except for the importusers caveat mentioned above.

Examples

cb-cli import -url="https://platform.clearblade.com"

cb-cli import -email="foo@clearblade.com" -password="foo"

cb-cli import -email="foo@clearblade.com" -password="foo" -importrows