Build ChatOps Workflows with the CTO.ai CLI
ops CLI acts as the integration point between your command line workflows and the CTO.ai platform, providing a framework for implementing ChatOps-based workflows that integrate with your existing processes. It allows you to build, publish, and run Commands, Pipelines, and Services workflows from the comfort of your terminal, manage your Configs and Secrets stores, and invite members to your CTO.ai team.
You can interact with our Developer Control Plane any number of ways—from threads on Slack, comments on GitHub pull requests, or the CTO.ai Dashboard—but if you prefer a more traditional command line experience for managing your infrastructure, you can use the CTO.ai CLI to abstract away much of the routine needed to deploy your application using Infrastructure-as-Code tooling.
Using our CLI requires that you have Node (≥16) and Docker installed on your local machine. The
ops CLI itself is installed via NPM as a global package:
After the package for the CLI has finished installing, you can simply run the
ops command to confirm that it has been installed.
You should see something like the above screenshot if our CLI has been installed correctly.
To use the CTO.ai
ops CLI, you will need to have an account on the CTO.ai platform. You can run
ops account:signup to create a new account or
ops account:signin to gain access to your existing account:
In either case, the CLI will redirect you to the CTO.ai Dashboard to access or create your account; once you sign in to an account, you will be directed to return to your terminal to use your signed-in account.
For an in-depth explanation of what functionality is supported by the
ops CLI, visit our CLI Commands page! Below is a summary of our CLI, with each command listed:
- List all available commands and usage instructions.
- Update The Ops CLI.
- Display your user information
- Generate a long live access token.
- Save an SSL certificate and key for your service
- Clean up locally cached docker images.
- Create a new Workflow
- Lists the Workflows you have in your team.
- Search for workflows in our registry.
- Add a workflow to your team.
- Build your workflow for sharing.
- Publish a workflow to your team.
- Remove a workflow from your team.
- Run a workflow from your team or the registry.
- Start a service, pipeline or command on our cloud.
- See the status of currently running cloud services
- Stop a service, pipeline or command running in The Ops Cloud
- Shows basic team information for the team you are currently on.
- Switch your currently active team.
- Create your team.
- Invite your team members.
- Accept an invite to join a team.
- Leave current team.
- Shows the list of your teams.
- Remove your team members.
- List all the configs that are stored for the active team
- Add a new config key and value
- Delete a config stored for the active team
- List all the keys that are stored for the active team
- Add a key and value
- Delete a secret stored for the active team
- Register a secrets provider for a team
- Unregister a secrets provider for a team