Command-line tools for Shoutem extensions.
Enter your Shoutem credentials, and register as a developer. If you're not a Shoutem user yet, sign up at www.shoutem.com.
$ shoutem registerPlease enter your credentialsusername firstname.lastname@example.org ******Please enter a new developer namename JohnnyYou are registered as "Johnny"
This will ask you a bunch of questions, and then write the extension.json file. Also, it will
server folders to store all assets of your extension.
$ shoutem initThis utility will walk you through creating the extension.json filename (test) helloversion (0.0.1)title (test)description Hello, extensions!Extension initialized
Layout after running
.├── app│ ├── index.js│ └── package.json├── extension.json└── server
Upload the extension so it can be installed to applications.
As long as version in
extension.json is unchanged, every upload will simply
overwrite the current content of the extension. Once you bump up the version,
shoutem upload will not affect the already uploaded extension - instead, a new
extension will be created which can be installed independently from previous
Install extension into an app. If
extension flag is not used, local extension
will be installed.
Install local extension:
$ shoutem install --app=1234Extension installed
Install any extension by id:
$ shoutem install --app=1234 --extension=5678Extension installed
Logout from Shoutem by erasing local credentials. After this, commands will ask you to login before continuing.
On every rubicon theme change, CLI shoud be updated to reflect that change.
-> templates/theme/app/theme.js.template-> templates/theme/server-themes-variables.json.template