Skip to main content
Almost every command works inside a project. Creating a model also needs a cluster. Choose them once and rivvr remembers them:
use first checks that you have access, then saves your choice. Your saved choices are cleared in two cases:
  • When you switch to another project, the saved cluster is cleared if it belonged to the old project.
  • When you sign in to a different account or a different Rivvr URL, both the project and the cluster are cleared.

For one command only

Every command accepts --project and --cluster. They apply to that one command and don’t change your saved choice:
The saved cluster doesn’t filter lists. rivvr model list shows all models in the project unless you add --cluster. It does decide where new models go. If you have no saved cluster, model create uses the project’s only ACTIVE cluster, or asks you to choose if there are several. Scripts can’t answer that question, so always pass --cluster in scripts.

Names or IDs

Wherever a command asks for a project, cluster, model, or other item, you can give its name or its ID. Names don’t have to be unique. If a name matches more than one item, Rivvr refuses it; use the ID instead. list --wide shows full IDs.

Which setting wins

The Rivvr URL, project, and cluster can each come from three places. rivvr uses the first one it finds, in this order:
  1. An option in the command: --api-url, --project, --cluster
  2. An environment variable: RIVVR_API_URL, RIVVR_PROJECT, RIVVR_CLUSTER
  3. Your saved choice
If a command uses the wrong project or cluster, run:
It shows each value and where it came from.

Environment variables

The sign-in variables are explained in CI authentication.

Where settings are saved

rivvr saves your Rivvr URL and your chosen project and cluster in a file called config.json:
  • macOS: ~/Library/Application Support/rivvr/config.json
  • Linux: $XDG_CONFIG_HOME/rivvr/config.json, usually ~/.config/rivvr/config.json
  • Windows: %APPDATA%\rivvr\config.json
Passwords and keys are never written to this file. They’re kept in your system’s keychain.