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:
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:
- An option in the command:
--api-url,--project,--cluster - An environment variable:
RIVVR_API_URL,RIVVR_PROJECT,RIVVR_CLUSTER - Your saved choice
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

