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.
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.
#Install
npm install -g @sovaria/cli
sov --version#Sign in and choose a project
Sign in
sov loginopens the browser. Your session is stored in the system keyring.sov login sov whoamiPick the project commands act on
Commands use your default organization and project. Set them once; override per command with
--org,--projectand--env.sov projects <org-id> sov scope pick # or: sov scope set …Link a code folder
sov linkwritessovaria.config.json, which the SDKs andsovread in that folder.cd my-app && sov link
#Output, scripting and CI
- Add
--jsonto any command (or setSOV_JSON=1) for machine-readable output. - In CI the CLI reads a token from
SOVARIA_ACCESS_TOKEN(or a project key fromSOVARIA_API_KEY) instead of the keyring; pass--organd--projectexplicitly. - Commands that check something (
sov sim run,sov sim change) take--fail-onand 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 loginsays it is signing in to Sovaria Cloud, and from a script (no terminal, orSOVARIA_PASSWORD) it refuses until you name the target with--profile prodorSOVARIA_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,--projectand--envto act on another account, organization, project or environment.
sov login # opens the browser
sov login --helpsov 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,--projectand--envto 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,--projectand--envto 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,--projectand--envto 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,--projectand--envto 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_IDArguments and options
ORG_IDtextrequired- Organisation ID
- Also takes
--profile,--org,--projectand--envto 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,--projectand--envto 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,--projectand--envto act on another account, organization, project or environment.
sov projects delete
Delete a project.
sov projects delete [OPTIONS] PROJECT_IDIt 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,--projectand--envto 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_IDArguments and options
PROJECT_IDtextrequired- Project ID
- Also takes
--profile,--org,--projectand--envto 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] NAMEArguments and options
NAMEtextrequired- Project name
--regiontextoptional- Region for the database; omit to use the organisation's default region
--env-nametextoptionaldefaultproduction- Name of the primary environment
--db-password-stdinflagoptional- Read the database password (12–72 characters) from stdin; random otherwise
- Also takes
--profile,--org,--projectand--envto 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,--projectand--envto act on another account, organization, project or environment.
sov connect # project URL, keys and setup snippets for your appsov init
Interactive project bootstrap
sov init [OPTIONS]Arguments and options
--name / -ntextoptionaldefaultsovaria-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,--projectand--envto act on another account, organization, project or environment.
sov link
Link local directory to a Sovaria project
sov link [OPTIONS]Arguments and options
--config / -cpathoptional- sovaria.config.json path
--interactive / --no-interactiveflagoptional- Pick org/project if omitted
- Also takes
--profile,--org,--projectand--envto act on another account, organization, project or environment.
cd my-app
sov link # writes sovaria.config.json for this directorysov dashboard
Project overview dashboard
sov dashboard [OPTIONS]- Also takes
--profile,--org,--projectand--envto act on another account, organization, project or environment.
sov shell
Interactive Sovaria REPL
sov shell [OPTIONS]- Also takes
--profile,--org,--projectand--envto 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,--projectand--envto act on another account, organization, project or environment.
sov api call
Call any gateway endpoint directly.
sov api call [OPTIONS] METHOD PATHArguments 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,--projectand--envto 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
#Coming from Firebase or Supabase?
| Platform | What this is called there |
|---|---|
| Firebase | Firebase CLI reference |
| Supabase | Supabase CLI reference |
| Sovaria | CLI reference |
Moving an existing app? Migrate from Supabase or Firebase imports users (with their passwords), data, files and rules.