Docs

CLI reference

Install sov, sign in, choose a project, script it in CI with JSON output and exit codes — and find every command by area.

Updated Nov 25, 2026

sov (version 0.11.0) is the Sovaria command line: sign in, pick a project, run SQL and migrations, deploy functions, manage storage, policies and keys, simulate access and restore earlier configuration — from your terminal or CI.

HTTPSYour terminal / CIsov <command>Login + scopekeyring orSOVARIA_ACCESS_TOKENSovaria APIsame checks as theconsoleYour projectorg / project /environment

#Install

npm install -g @sovaria/cli
sov --version

#Sign in and choose a project

  1. Sign in

    sov login opens the browser. Your session is stored in the system keyring.

    sov login
    sov whoami
  2. Pick the project commands act on

    Commands use your default organization and project. Set them once; override per command with --org, --project and --env.

    sov projects <org-id>
    sov scope pick        # or: sov scope set …
  3. Link a code folder

    sov link writes sovaria.config.json, which the SDKs and sov read in that folder.

    cd my-app && sov link

#Output, scripting and CI

  • Add --json to any command (or set SOV_JSON=1) for machine-readable output.
  • In CI the CLI reads a token from SOVARIA_ACCESS_TOKEN (or a project key from SOVARIA_API_KEY) instead of the keyring; pass --org and --project explicitly.
  • Commands that check something (sov sim run, sov sim change) take --fail-on and exit with status 1 when they find problems at that level.
  • Use --profile <name> to keep several accounts side by side. A saved login is only sent to the API host it was made on. With no ~/.sovaria/config.yaml, sov login says it is signing in to Sovaria Cloud, and from a script (no terminal, or SOVARIA_PASSWORD) it refuses until you name the target with --profile prod or SOVARIA_PROFILE.

#Everyday commands

sov login

Authenticate with Sovaria.

sov login [OPTIONS]

By default opens a browser (PKCE flow). Pass --email to use password login (prompt or SOVARIA_PASSWORD).

Arguments and options

--email / -etextoptional
Email (skips PKCE, uses password)
--pick-scope / --no-pick-scopeflagoptional
After login, list orgs/projects and pick default scope (default: on in a TTY)
--insecure-callbackflagoptional
Allow SOVARIA_CLI_CALLBACK_HOST to bind a non-loopback interface
--file-storageflagoptional
Store tokens in ~/.sovaria/credentials.toml instead of the OS keyring
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.
sov login            # opens the browser
sov login --help

sov logout

Revoke the session for one profile, then clear that profile's local credentials.

sov logout [OPTIONS]

Arguments and options

--forceflagoptional
Clear local tokens even if server revoke fails
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov whoami

Print the authenticated user, active scope, and accessible orgs/projects.

sov whoami [OPTIONS]
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov orgs

Your organisations: list (default) and get (with the default region)

sov orgs [OPTIONS]
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov orgs list

List organisations visible to the authenticated user.

sov orgs list [OPTIONS]
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov orgs get

An organisation, with its default region (where new projects go unless you pick one).

sov orgs get [OPTIONS] ORG_ID

Arguments and options

ORG_IDtextrequired
Organisation ID
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov projects

Projects: list (default) and create (in the org's default region unless --region)

sov projects [OPTIONS]
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov projects list

List projects under an organisation.

sov projects list [OPTIONS] [ORG_ID]

Arguments and options

ORG_IDtextoptional
Organisation ID (auto-picked when only one org)
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov projects delete

Delete a project.

sov projects delete [OPTIONS] PROJECT_ID

It leaves every list at once and can be restored for the plan's recovery days (sov projects restore); after that its databases, files, functions and logs are purged in every service.

Arguments and options

PROJECT_IDtextrequired
Project ID
--yesflagoptional
Don't ask
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov projects restore

Bring back a deleted project within its recovery window (if the plan still has room for it).

sov projects restore [OPTIONS] PROJECT_ID

Arguments and options

PROJECT_IDtextrequired
Project ID
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov projects create

Create a cloud project: the project, its primary environment and its database (like the console).

sov projects create [OPTIONS] NAME

Arguments and options

NAMEtextrequired
Project name
--regiontextoptional
Region for the database; omit to use the organisation's default region
--env-nametextoptionaldefault production
Name of the primary environment
--db-password-stdinflagoptional
Read the database password (12–72 characters) from stdin; random otherwise
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov connect

Show everything you need to connect an app (like console Connect panel).

sov connect [OPTIONS]
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.
sov connect          # project URL, keys and setup snippets for your app

sov init

Interactive project bootstrap

sov init [OPTIONS]

Arguments and options

--name / -ntextoptionaldefault sovaria-app
Project name for config
--dirpathoptionaldefault .
Directory to write config into
--link / --no-linkflagoptional
Persist scope to profile + config
--ensure-keysflagoptional
Bootstrap default anon/service_role API keys after linking
--forceflagoptional
Overwrite existing sovaria.config.json
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov dashboard

Project overview dashboard

sov dashboard [OPTIONS]
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov shell

Interactive Sovaria REPL

sov shell [OPTIONS]
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov test

Run integration tests and smoke checks

sov test [OPTIONS]

Arguments and options

--pathpathoptional
Pytest directory (default: tests/)
--smokeflagoptional
Run built-in linked-project smoke checks
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov api call

Call any gateway endpoint directly.

sov api call [OPTIONS] METHOD PATH

Arguments and options

METHODtextrequired
HTTP method, e.g. GET/POST
PATHtextrequired
Gateway path, e.g. /api/v1/auth/me
--bodytextoptional
JSON request body, or @file to read it from a file (- = stdin)
--querytextoptional
JSON object query params
--no-authflagoptional
Do not send Authorization header
--require-scopeflagoptional
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.
sov api call GET /api/v1/auth/me
sov api call POST /api/v1/sql/query --body '{"sql": "select now()"}'

#Commands by area

Accounts, projects and accessSign in, pick the organization and project commands act on, manage team members, roles, app users, auth settings, SCIM provisioning, blocking auth hooks and API keys.Database, documents and schemaRun SQL, manage tables and migrations and environments (with a sample of the data), apply app templates, check app builds and open them as pull requests, read and write documents, inspect the schema and generate types.Functions, flows, cron jobs, queues, hosting and secretsDeploy, invoke, version, promote and roll back edge functions, read their logs, build and run flows (automations), schedule cron jobs (functions, HTTPS, SQL), work with message queues, deploy web sites, and manage function secrets.StorageCreate and configure buckets, upload, download, list, move and delete objects, and sign URLs.Realtime and messagingTurn live change events for tables on and off, publish to channels, see presence, replay messages and manage end-to-end encryption keys, and send push and email to app users (templates, audiences, sends).Analytics, remote config, experiments and tester buildsRead product analytics (active users, events, funnels, retention) and export events, manage remote config and feature flags as a file in git, run A/B experiments, and send test builds to testers.Policies, rules tests, simulation, audit and complianceManage access policies, test who can do what with rules tests, run access simulations and change previews (with CI exit codes), read the audit trail, and download your organization's compliance evidence pack.Version historyRead the project configuration at any point in time, restore it, and manage timelines and snapshots.Logs, metrics, alerts, crashes, vectors and AI toolsRead logs, request metrics and per-route latency, manage SLO alerts and crash reports, work with vectors, knowledge bases (RAG) and embeddings, talk to your agents, and connect AI assistants over MCP.Import from Supabase, Firebase, Convex or PostgresMove a Supabase, Firebase, Convex, Neon or other Postgres project to Sovaria with sov import: schema and rules, users with their passwords, data, documents, files, and a report.Billing and databasesRead plans, subscriptions and usage, and manage your project databases (backups, pause, resume, resize).

#Coming from Firebase or Supabase?

PlatformWhat this is called there
FirebaseFirebase CLI reference
SupabaseSupabase CLI reference
SovariaCLI reference

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