Docs

CLI: install, sign in and work

Install sovaria-cli, sign in (browser, email or CI tokens), choose the organization and project, link a folder, everyday workflows, output for scripts, exit codes and troubleshooting.

Updated Nov 25, 2026

#Install

pipx install sovaria-cli
sov --version

Python 3.11 or newer. The command is sov. This page and the CLI reference describe the current CLI; run pipx upgrade sovaria-cli if a command is missing.

More command groups

GroupWhat forExample
sov iamOrganizations, projects, members and their roles, and organization settingssov iam members
sov project exportDownload a project's data bundle (waits for it and saves it)sov project export -o backup.zip
sov samlApp-user SAML connections (SAML single sign-on for your app (Okta, Entra ID, Google Workspace))sov saml list
sov attestApp attestation: which services require it, the provider and debug tokenssov attest show
sov auth-config, sov auth-orgs, sov auth-productSign-in settings, app organizations, and your app's users and rolessov auth-product users
sov smsThe SMS provider and which countries may receive codessov sms countries
sov sovariqSovariq usage, credits and credit packssov sovariq credits
sov context, sov schema describe, sov inspect, sov shellWhat the CLI is pointed at, the database schema, a quick health look, an interactive SQL shellsov schema describe

Every command and flag is in the CLI reference; sov <group> --help lists a group's commands.

#Sign in

HowCommandUse
Browsersov loginYour own machine. Opens the console to approve the sign-in.
Emailsov login --email you@example.com (password from the prompt or SOVARIA_PASSWORD)Machines without a browser.
Token or keySOVARIA_ACCESS_TOKEN or SOVARIA_API_KEY in the environmentCI — no login step, nothing stored.

The session is stored in your OS keyring (or ~/.sovaria/credentials.toml, readable only by you, with --file-storage). sov whoami shows who you are; sov logout signs out.

Profiles and hosts

Use --profile <name> (or SOVARIA_PROFILE) to keep several accounts side by side, for example a work and a personal organization. A saved login is only ever sent to the API host it was made on, so a profile pointed at a different host signs in again instead of reusing another host's token.

On a machine with no ~/.sovaria/config.yaml, sov login says it is signing in to Sovaria Cloud. From a script (no terminal, or SOVARIA_PASSWORD set) it refuses until you name the target with --profile prod or SOVARIA_PROFILE, so a test login can't land on production by accident.

sov login --profile work           # one account
sov login --profile prod           # another, on Sovaria Cloud
SOVARIA_PROFILE=prod sov whoami

sov gen types writes table and enum names only as quoted strings or checked identifiers, so an oddly named table can't put code into the generated file.

#Choose the project

sov scope pick              # choose organization and project interactively
sov scope show
sov init                    # in a project folder: pick and write sovaria.config.json
sov link                    # link this folder to an existing project

Commands use, in order: flags (--org, --project), the folder's sovaria.config.json, then the scope from sov scope set. Commit sovaria.config.json — it holds ids and the URL, no secrets.

#Everyday workflows

TaskCommands
Run SQLsov db sql "select count(*) from orders"
Migrationssov db migrations new add_reviews → edit → sov db migrations push --dry-run → sov db migrations push (Migrations)
Pull the live schemasov db pull, sov db diff
Generate typessov gen types
Functionssov fn serve (run locally) → sov fn deploy → sov fn logs <name> (Deploying and running functions)
Access checkssov policy check …, sov rules test, sov sim run --fail-on critical (CI/CD)
Storagesov storage upload, sov storage ls
Keyssov keys list, sov keys create, sov keys revoke

#In scripts

  • --json (or SOV_JSON=1) prints raw JSON for jq and other tools.
  • SOV_DEBUG=1 shows full error traces.
  • Exit codes: 0 success; 1 a request failed or a check found problems (failing rules tests, simulation findings at --fail-on); 2 invalid usage or input.

#Troubleshooting

MessageFix
Not signed in / session expiredsov login again, or set SOVARIA_ACCESS_TOKEN in CI.
No project selectedsov scope pick, sov link, or pass --project.
403 on a commandYour member role doesn't allow it (Organizations, members and roles) or a plan limit applies.
No such commandUpgrade: pipx upgrade sovaria-cli.
Keyring errors on a serverUse sov login --file-storage, or environment variables.

#Coming from Firebase or Supabase?

PlatformWhat this is called there
FirebaseFirebase CLI
SupabaseSupabase CLI
SovariaCLI: install, sign in and work

Moving an existing app? Migrate from Supabase or Firebase imports users (with their passwords), data, files and rules.