Skip to content
ricochet

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.

Terminal window
curl -fsSL https://raw.githubusercontent.com/ricochet-rs/cli/main/install.sh | sh

Verify the installation:

Terminal window
ricochet --version

For macOS, we also provide a Homebrew formula:

Terminal window
brew tap ricochet-rs/homebrew-tap
brew install ricochet

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.gz

Available $OS_ARCH combinations:

  • aarch64 (Linux ARM64)
  • x86_64 (Linux x86)
  • windows.exe

After downloading, extract and add to your PATH:

Terminal window
tar -xzf ricochet-$VERSION-$OS_ARCH.tar.gz
mv ricochet-$VERSION-$OS_ARCH/ricochet /usr/local/bin/

Use the login command with the -S flag to specify the server URL:

Terminal window
ricochet login -S https://try.ricochet.rs

This opens your browser to complete authentication. Once authenticated, your credentials are stored locally and used for subsequent commands.

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:

Terminal window
# Deploy to production
ricochet deploy -S https://ricochet.example.com
# Deploy to staging
ricochet deploy -S https://staging.ricochet.example.com

To remove stored credentials for a server:

Terminal window
ricochet logout -S https://try.ricochet.rs

Navigate to your project directory and run:

Terminal window
ricochet deploy

If no _ricochet.toml file exists, the CLI walks you through an interactive setup:

  1. Choose a language — R, Julia, or Python

  2. Select content type — Shiny, Plumber, Quarto, etc.

  3. Specify the entrypoint — The file that starts your app (e.g., app.R)

  4. Name your content — A display name visible in the ricochet UI

  5. 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.

Subsequent deployments use the existing _ricochet.toml configuration:

Terminal window
ricochet deploy