Jump to content

CustomerOS CLI Commands

โš ๏ธ

Weโ€™re busy building, and this is one of those things that is a work in progress!

CustomerOS CLI commands are structured in the following way:

openline <topic> <command> [options]

Typically all commands you will give when developing will use the dev topic to deploy to your local dev environment.

Commands

You can work with CustomerOS as a whole, or at the feature or service level using the CLI:

ActionCommand
Start customerOSopenline dev start customer-os
Stop customerOSopenline dev stop customer-os
Start feature/serviceopenline dev start customer-os-api
Stop feature/serviceopenline dev stop customer-os-api

If you want to start a customerOS or a specific feature from a branch other than the latest branch, you can specify the branch using the -t option.

ActionCommand
Start customerOS from branchopenline dev start customer-os -t otter
Start feature/service from branchopenline dev start customer-os-api -t otter

If you have cloned the repo locally and want to build and install from your source, you can use the -l option with the path to your source code.

ActionCommand
Start customerOS from sourceopenline dev start customer-os -l /path/to/local/project
Start feature/service from sourceopenline dev start customer-os-api -l /path/to/local/project

This command will navigate to the top level path of the customerOS repo, build all the customerOS images locally, and install them in the kubernetes cluster.

To check what is running locally, you can use the ping command.

ActionCommand
Ping customerOSopenline dev ping

You can also check the status of the customerOS pods using the status command.

ActionCommand
Check status of local customerOS servicesopenline dev status

When you want to tear down your local customerOS environment, you can do this in one of two ways:

ActionCommand
Uninstall all customerOS servicesopenline dev rm --all
openline dev stop
Uninstall specific customerOS servicesopenline dev rm <service-name>>

Additional Commands

ActionCommand
Help documentationopenline help
View and create issues in the CustomerOS projectopenline issues

Recent Contributors To This Page