Development, management and publishing of an OCP app is performed via the OCP CLI.
The CLI is currently in closed beta.
While other versions of node may work for development, using the same version of node as your running app will make development more consistent with the runtime.
To install Node.js, follow the instructions on Node.js.org.
If you do not have Yarn, you can install Yarn for package management by executing the following command:
curl -o- -L https://yarnpkg.com/install.sh | bash
If you are still having problems, refer to the Yarn documentation.
The CLI is currently only available for MacOS/Unix systems that are running node 8 or later.
To gain access to the OCP npm repository, add the following to your
echo "@zaius:registry=http://npm-registry.prod.zaius/" >> ~/.npmrc
Then you can install the OCP CLI command with:
yarn global add @zaius/zaius-cli
$ zaius -h @zaius/zaius-cli 0.4.1 Usage: zaius <command> Namespaces: (`help <namespace>` for additional help) app config directory
Keep up with the latest version of the CLI as we are actively updating it:
yarn global upgrade @zaius/[email protected]
Due to frequent updates to the CLI, you can find the most current reference of available functionality by including
--help at the end of your command:
zaius <namespace> -h zaius <namespace> --help
An example of the command in use:
$ zaius app init -h @zaius/zaius-cli 0.4.1 Usage: zaius app init [<id>] Parameters: id [optional] The app id / directory to create
Updated 4 days ago