A simple CLI for scaffolding UnityBase projects. Run npx ubcli -help in command line (or ubcli --help if installed globally) for a full list of available commands

if -app appName parameter specified, it's handled by /usr/bin/ubcli script and exports env vars in the same way as systemd unit does before run ubcli.js:

  • export UB_APPHOME=/opt/unitybase/apps/$appName/
  • export UB_APPDATA=/var/opt/unitybase/$appName/
  • export UB_CFG="$UB_APPHOME"ubConfig.json
  • export UB_ENV="$UB_APPDATA"ubConfig.env

Submodules

Methods

# showUsage () inner

Show usage

# ubcli () inner