Reference
CLI
The Rivet Command Line Interface (CLI) provides a set of tools for deploying, managing, and monitoring your Rivet applications.
Installation
For installation instructions, see Install.
Overview
Common Commands
Deploy & Publish
Command Line
Actor Management
Command Line
Environment Management
Command Line
Configuration with Environment Variables
Rivet CLI can be configured using the following environment variables:
RIVET_CLOUD_TOKEN
- See tokens documentation on instructions on how to create a cloud tokenRIVET_ENDPOINT
- Custom API endpoint (for self-hosted or enterprise instances)
CI/CD Integration
Rivet CLI is designed to work seamlessly in CI/CD pipelines:
Command Line
Advanced Usage
Shell
Rivet offers a convenient shell utility to simplify token management. The rivet shell
command automatically generates a token and populates common environment variables for you.
For example:
Command Line
The Rivet shell automatically populates the following environment variables:
RIVET_ENDPOINT
- The API endpoint URL for your Rivet instanceRIVET_SERVICE_TOKEN
- Authentication token for accessing Rivet servicesRIVET_PROJECT
- The current project identifierRIVET_ENVIRONMENT
- The current environment name (e.g., dev, prod)
This is especially helpful for running tests or development tools that interact with Rivet.
Shell is experimental
The command is subject to change.
Working with Metadata
Command Line