blinkmobile/bmp-cli
CLI utility for BlinkMobile's Mobility Platform
Installation
npm install -g @blinkmobile/cli @blinkmobile/bmp-cli
Usage
blinkm bmp --help
# or, shorter
bm bmp --help
Initial settings:
scope => outputs the current scope and login status
scope [<url>] => sets the current URL scope
login => store credentials on this machine
logout => remove credentials from this machine
Getting work done:
pull => download remote configuration to local files
--prune => delete local files that are absent from remote
deploy => update remote configuration to match local project
--prune => delete remote interactions that are absent locally
<file|glob> => update remote configuration matching these files
Creating new interactions:
create interaction <name>
=> creates a new hidden+active interaction locally
--type=<type> => type can be "madl" (default), or "message"
--remote => also create a remote placeholder
We recommend that you skim our suggested usage.
Environment Variables
BMP_SCOPE
By default, this tool determines your project scope by reading the .blinkmrc.json file in the current working directory or its parent directory (or its parent's parent directory, etc). You may set this variable instead.
BMP_USER_CONFIG_DIR
By default, this tool stores authentication data in the user's home directory. You may set this variable to control this location.
BMP_WORKING_DIR
By default, this tool looks for the .blinkmrc.json file in the current working directory, and stores project files there, too. You may set this variable to control this location.