The ricochet CLI
The ricochet CLI is a Rust-based command-line tool for deploying and managing content on ricochet servers. It provides an interactive interface for creating, updating, and monitoring your deployments.
Installation
Section titled “Installation”curl -fsSL https://raw.githubusercontent.com/ricochet-rs/cli/main/install.sh | shcurl.exe -fsSL https://raw.githubusercontent.com/ricochet-rs/cli/main/install.ps1 -o install.ps1; .\install.ps1; Remove-Item install.ps1Verify the installation:
ricochet --versionHomebrew (macOS)
Section titled “Homebrew (macOS)”For macOS, we also provide a Homebrew formula:
brew tap ricochet-rs/homebrew-tapbrew install ricochetWindows
Section titled “Windows”Manual Installation
Section titled “Manual Installation”We provide pre-built binaries for macOS, Linux, and Windows. Download from:
https://hel1.your-objectstorage.com/ricochet-cli/$VERSION/ricochet-$VERSION-$OS_ARCH.tar.gzAvailable $OS_ARCH combinations:
aarch64(Linux ARM64)x86_64(Linux x86)windows.exe
After downloading, extract and add to your PATH:
tar -xzf ricochet-$VERSION-$OS_ARCH.tar.gzmv ricochet-$VERSION-$OS_ARCH/ricochet /usr/local/bin/Authentication
Section titled “Authentication”Logging In
Section titled “Logging In”Use the login command with the -S flag to specify the server URL:
ricochet login -S https://try.ricochet.rsThis opens your browser to complete authentication. Once authenticated, your credentials are stored locally and used for subsequent commands.
Multiple Instances
Section titled “Multiple Instances”You can authenticate with multiple ricochet servers. Each server’s credentials are stored separately, keyed by the server URL.
To switch between servers, specify the -S flag with your commands:
# Deploy to productionricochet deploy -S https://ricochet.example.com
# Deploy to stagingricochet deploy -S https://staging.ricochet.example.comLogging Out
Section titled “Logging Out”To remove stored credentials for a server:
ricochet logout -S https://try.ricochet.rsDeployment
Section titled “Deployment”Basic Deployment
Section titled “Basic Deployment”Navigate to your project directory and run:
ricochet deployIf no _ricochet.toml file exists, the CLI walks you through an interactive setup:
-
Choose a language — R, Julia, or Python
-
Select content type — Shiny, Plumber, Quarto, etc.
-
Specify the entrypoint — The file that starts your app (e.g.,
app.R) -
Name your content — A display name visible in the ricochet UI
-
Set visibility — Private, Internal, or External
After completing setup, a _ricochet.toml file is created in your project directory.
See Using _ricochet.toml for configuration details.
Redeploying
Section titled “Redeploying”Subsequent deployments use the existing _ricochet.toml configuration:
ricochet deploy