# CLI: Functions, flows, cron jobs, queues, hosting and secrets
Source: https://sovaria.in/docs/cli-functions

Deploy, 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 with sov.

Deploy and call:
```bash
sov fn deploy ./functions/order-total --name order-total
sov fn invoke order-total --data '{"cart_id": 42}'
sov fn versions --help
```

Flows:
```bash
sov flows create "New signup" --template stripe-paid
sov flows pull flw_123 > flow.json   # edit, then
sov flows push flw_123 flow.json
sov flows test flw_123 --data '{"email": "a@x.io"}'
sov flows publish flw_123 && sov flows on flw_123
sov flows runs flw_123 --status error
sov flows retry fex_456
```

## sov fn

Cloud function management

### sov fn deploy
`sov fn deploy [OPTIONS] [DIRECTORY]`
Deploy a cloud function (Python or JavaScript) to Sovaria Functions.
Example: sov deploy ./my-function --name greet --project proj-abc123

### sov fn status
`sov fn status [OPTIONS] DEPLOY_ID`
Check the status of a function deployment.

### sov fn invoke
`sov fn invoke [OPTIONS] FUNCTION_NAME`
Invoke a deployed function in its sandbox.

### sov fn call
`sov fn call [OPTIONS] FUNCTION_NAME [SUB_PATH]`
Call a function over HTTP the way apps and webhooks do: any method, sub-path, headers and raw body.
Example:  sov fn call api users/42 -X PUT -H 'Content-Type: application/json' -d '{"name":"Ada"}'

### sov fn versions
`sov fn versions [OPTIONS] FUNCTION_NAME`
List deployment versions for one function.

### sov fn history
`sov fn history [OPTIONS] FUNCTION_NAME`
List invocation history for one function.

### sov fn functions
`sov fn functions [OPTIONS]`
List functions with their active versions and queue summary.

### sov fn list
`sov fn list [OPTIONS]`
List functions with active versions (same as `sov fn functions`).

### sov fn jobs
`sov fn jobs [OPTIONS] FUNCTION_NAME`
List durable async jobs for a function.

### sov fn sim-diff
`sov fn sim-diff [OPTIONS] FUNCTION_NAME LEFT_INVOCATION_ID RIGHT_INVOCATION_ID`
Show unified diff between two simulation invocations.

### sov fn promote
`sov fn promote [OPTIONS] FUNCTION_NAME`
Promote a deployment/version to become active.

### sov fn rollback
`sov fn rollback [OPTIONS] FUNCTION_NAME`
Rollback active function deployment to a previous version.

### sov fn get
`sov fn get [OPTIONS] FUNCTION_NAME`
Get function metadata.

### sov fn delete
`sov fn delete [OPTIONS] FUNCTION_NAME`
Delete a deployed function.

### sov fn source
`sov fn source [OPTIONS] FUNCTION_NAME`
Fetch function source code.

### sov fn update
`sov fn update [OPTIONS] FUNCTION_NAME`
Patch function metadata and/or source.

### sov fn policy-get
`sov fn policy-get [OPTIONS] FUNCTION_NAME`
Fetch function invoke policy.

### sov fn policy-set
`sov fn policy-set [OPTIONS] FUNCTION_NAME POLICY_JSON`
Replace function invoke policy.

### sov fn bindings-get
`sov fn bindings-get [OPTIONS] FUNCTION_NAME`
Fetch function secret bindings.

### sov fn bindings-set
`sov fn bindings-set [OPTIONS] FUNCTION_NAME BINDINGS_JSON`
Replace function secret bindings.

### sov fn github-repos
`sov fn github-repos [OPTIONS]`
List GitHub repositories available for import.
Optional PAT: set SOVARIA_GITHUB_TOKEN, or pass --use-gh-token to send your `gh auth token`.

### sov fn github-import
`sov fn github-import [OPTIONS]`
Import a function from a GitHub repository path.
Optional PAT: set SOVARIA_GITHUB_TOKEN, or pass --use-gh-token to send your `gh auth token`.

### sov fn github-commit
`sov fn github-commit [OPTIONS]`
Commit local function source back to GitHub.
Optional PAT: set SOVARIA_GITHUB_TOKEN, or pass --use-gh-token to send your `gh auth token`.

### sov fn new
`sov fn new [OPTIONS] NAME`
Create a function folder with a starter handler, like `supabase functions new`.
sov functions new send-welcome --runtime typescript sov functions serve functions/send-welcome      # try it locally sov functions deploy functions/send-welcome     # ship it

### sov fn serve
`sov fn serve [OPTIONS] [DIRECTORY]`
Run functions locally exactly as production runs them, with hot reload.
Any method on http://127.0.0.1:8787/functions/v1/<name> (or <name>/<path>). A JSON function gets the body as its event; an HTTP function gets the whole request (method, path, query, headers, raw body) and returns a response. Every call runs the code on disk now; add `Accept: text/event-stream` (or ?stream=ndjson) to stream a generator handler. Secrets: the project's `.env.local`, `.env` / `.env.local` in the folder, `--env-file`, `--env NAME=value`.

### sov fn logs
`sov fn logs [OPTIONS] [FUNCTION_NAME]`
Invocation logs with filters; `--follow` streams new ones live.

### sov fn stream
`sov fn stream [OPTIONS] FUNCTION_NAME`
Call a function and print what it yields as it arrives (generator handlers).

### sov fn limits
`sov fn limits [OPTIONS] FUNCTION_NAME`
Show or set a function's memory, timeout and minimum warm instances (lower memory also lowers its compute bill).

### sov fn secrets list
`sov fn secrets list [OPTIONS]`
Names of the environment's secrets (values are never shown).

### sov fn secrets set
`sov fn secrets set [OPTIONS] [PAIRS]`
Set secrets for every function in an environment: `sov functions secrets set STRIPE_KEY=sk_… --env staging`.

### sov fn secrets unset
`sov fn secrets unset [OPTIONS] NAMES`
Remove secrets from an environment.

### sov fn triggers list
`sov fn triggers list [OPTIONS]`
List the project's event triggers and the plan's limits.

### sov fn triggers create
`sov fn triggers create [OPTIONS] FUNCTION`
Run FUNCTION on events, e.g.
`sov functions triggers create on-order --on db.document -r orders --event document.created`.

### sov fn triggers enable
`sov fn triggers enable [OPTIONS] TRIGGER_ID`
Switch a trigger on.

### sov fn triggers disable
`sov fn triggers disable [OPTIONS] TRIGGER_ID`
Switch a trigger off (events are ignored while it is off).

### sov fn triggers delete
`sov fn triggers delete [OPTIONS] TRIGGER_ID`
Delete a trigger.

### sov fn triggers test
`sov fn triggers test [OPTIONS] TRIGGER_ID`
Send a sample event through a trigger (counts as one invocation).

### sov fn schedules list
`sov fn schedules list [OPTIONS]`
Cron schedules of the project's environment.

### sov fn schedules preview
`sov fn schedules preview [OPTIONS] CRON`
Show when an expression runs, e.g.
`sov functions schedules preview '0 9 * * MON-FRI' --tz Asia/Kolkata`.

### sov fn schedules create
`sov fn schedules create [OPTIONS] CRON`
Create a cron job: `-f FUNCTION`, `--url URL` or `--sql SQL`.

### sov fn schedules update
`sov fn schedules update [OPTIONS] SCHEDULE_ID`
Change a schedule (only the options given change).

### sov fn schedules delete
`sov fn schedules delete [OPTIONS] SCHEDULE_ID`
Delete a schedule (its run history stays in the logs).

### sov fn schedules run
`sov fn schedules run [OPTIONS] SCHEDULE_ID`
Run a schedule now (counts as an invocation; its regular times don't change).

### sov fn schedules runs
`sov fn schedules runs [OPTIONS] SCHEDULE_ID`
Run history: status (incl.
SKIPPED / MISSED slots), duration, tries and errors.

### sov fn cron list
`sov fn cron list [OPTIONS]`
Cron schedules of the project's environment.

### sov fn cron preview
`sov fn cron preview [OPTIONS] CRON`
Show when an expression runs, e.g.
`sov functions schedules preview '0 9 * * MON-FRI' --tz Asia/Kolkata`.

### sov fn cron create
`sov fn cron create [OPTIONS] CRON`
Create a cron job: `-f FUNCTION`, `--url URL` or `--sql SQL`.

### sov fn cron update
`sov fn cron update [OPTIONS] SCHEDULE_ID`
Change a schedule (only the options given change).

### sov fn cron delete
`sov fn cron delete [OPTIONS] SCHEDULE_ID`
Delete a schedule (its run history stays in the logs).

### sov fn cron run
`sov fn cron run [OPTIONS] SCHEDULE_ID`
Run a schedule now (counts as an invocation; its regular times don't change).

### sov fn cron runs
`sov fn cron runs [OPTIONS] SCHEDULE_ID`
Run history: status (incl.
SKIPPED / MISSED slots), duration, tries and errors.

### sov fn workflows start
`sov fn workflows start [OPTIONS] FUNCTION`
Start a run, e.g.
`sov functions workflows start checkout -i '{"order": 7}' --key order-7`.

### sov fn workflows list
`sov fn workflows list [OPTIONS]`
Workflow runs, newest first.

### sov fn workflows get
`sov fn workflows get [OPTIONS] RUN_ID`
A run with its status, output or error and every finished step.

### sov fn workflows signal
`sov fn workflows signal [OPTIONS] RUN_ID NAME`
Send a signal, e.g.
`sov functions workflows signal <run> approval -d '{"approved": true}'`.

### sov fn workflows cancel
`sov fn workflows cancel [OPTIONS] RUN_ID`
Stop an unfinished run for good (its remaining steps never run).

### sov fn workflows retry
`sov fn workflows retry [OPTIONS] RUN_ID`
Resume a failed run from the step that failed (finished steps are not run again).

### sov fn dead-letters list
`sov fn dead-letters list [OPTIONS]`
Dead-lettered runs, newest first.

### sov fn dead-letters replay
`sov fn dead-letters replay [OPTIONS] [IDS]`
Run dead-lettered events again (with the function's current code and a fresh set of tries).

### sov fn dead-letters discard
`sov fn dead-letters discard [OPTIONS] IDS`
Drop dead letters you don't want to replay.

### sov fn api-versions list
`sov fn api-versions list [OPTIONS]`
API versions with their status, function count, calls and sunset date.

### sov fn api-versions get
`sov fn api-versions get [OPTIONS] NAME`
One version with the function versions it pins.

### sov fn api-versions create
`sov fn api-versions create [OPTIONS] NAME`
Pin every function's current code under a version name.

### sov fn api-versions pin
`sov fn api-versions pin [OPTIONS] NAME PINS`
Point functions of a version at other deploys (e.g.
a fix for apps on v1).

### sov fn api-versions unpin
`sov fn api-versions unpin [OPTIONS] NAME FUNCTIONS`
Remove functions from a version (calls to them with this version then get 404).

### sov fn api-versions deprecate
`sov fn api-versions deprecate [OPTIONS] NAME`
Calls still work; answers carry Deprecation and Sunset headers.

### sov fn api-versions activate
`sov fn api-versions activate [OPTIONS] NAME`
Undo a deprecation (clears the sunset date).

### sov fn api-versions retire
`sov fn api-versions retire [OPTIONS] NAME`
Stop a version now: calls that ask for it get 410.
This can't be undone.

### sov fn api-versions delete
`sov fn api-versions delete [OPTIONS] NAME`
Delete a retired version.

## sov functions

Cloud functions (alias of `sov fn`)

### sov functions deploy
`sov functions deploy [OPTIONS] [DIRECTORY]`
Deploy a cloud function (Python or JavaScript) to Sovaria Functions.
Example: sov deploy ./my-function --name greet --project proj-abc123

### sov functions status
`sov functions status [OPTIONS] DEPLOY_ID`
Check the status of a function deployment.

### sov functions invoke
`sov functions invoke [OPTIONS] FUNCTION_NAME`
Invoke a deployed function in its sandbox.

### sov functions call
`sov functions call [OPTIONS] FUNCTION_NAME [SUB_PATH]`
Call a function over HTTP the way apps and webhooks do: any method, sub-path, headers and raw body.
Example:  sov fn call api users/42 -X PUT -H 'Content-Type: application/json' -d '{"name":"Ada"}'

### sov functions versions
`sov functions versions [OPTIONS] FUNCTION_NAME`
List deployment versions for one function.

### sov functions history
`sov functions history [OPTIONS] FUNCTION_NAME`
List invocation history for one function.

### sov functions functions
`sov functions functions [OPTIONS]`
List functions with their active versions and queue summary.

### sov functions list
`sov functions list [OPTIONS]`
List functions with active versions (same as `sov fn functions`).

### sov functions jobs
`sov functions jobs [OPTIONS] FUNCTION_NAME`
List durable async jobs for a function.

### sov functions sim-diff
`sov functions sim-diff [OPTIONS] FUNCTION_NAME LEFT_INVOCATION_ID RIGHT_INVOCATION_ID`
Show unified diff between two simulation invocations.

### sov functions promote
`sov functions promote [OPTIONS] FUNCTION_NAME`
Promote a deployment/version to become active.

### sov functions rollback
`sov functions rollback [OPTIONS] FUNCTION_NAME`
Rollback active function deployment to a previous version.

### sov functions get
`sov functions get [OPTIONS] FUNCTION_NAME`
Get function metadata.

### sov functions delete
`sov functions delete [OPTIONS] FUNCTION_NAME`
Delete a deployed function.

### sov functions source
`sov functions source [OPTIONS] FUNCTION_NAME`
Fetch function source code.

### sov functions update
`sov functions update [OPTIONS] FUNCTION_NAME`
Patch function metadata and/or source.

### sov functions policy-get
`sov functions policy-get [OPTIONS] FUNCTION_NAME`
Fetch function invoke policy.

### sov functions policy-set
`sov functions policy-set [OPTIONS] FUNCTION_NAME POLICY_JSON`
Replace function invoke policy.

### sov functions bindings-get
`sov functions bindings-get [OPTIONS] FUNCTION_NAME`
Fetch function secret bindings.

### sov functions bindings-set
`sov functions bindings-set [OPTIONS] FUNCTION_NAME BINDINGS_JSON`
Replace function secret bindings.

### sov functions github-repos
`sov functions github-repos [OPTIONS]`
List GitHub repositories available for import.
Optional PAT: set SOVARIA_GITHUB_TOKEN, or pass --use-gh-token to send your `gh auth token`.

### sov functions github-import
`sov functions github-import [OPTIONS]`
Import a function from a GitHub repository path.
Optional PAT: set SOVARIA_GITHUB_TOKEN, or pass --use-gh-token to send your `gh auth token`.

### sov functions github-commit
`sov functions github-commit [OPTIONS]`
Commit local function source back to GitHub.
Optional PAT: set SOVARIA_GITHUB_TOKEN, or pass --use-gh-token to send your `gh auth token`.

### sov functions new
`sov functions new [OPTIONS] NAME`
Create a function folder with a starter handler, like `supabase functions new`.
sov functions new send-welcome --runtime typescript sov functions serve functions/send-welcome      # try it locally sov functions deploy functions/send-welcome     # ship it

### sov functions serve
`sov functions serve [OPTIONS] [DIRECTORY]`
Run functions locally exactly as production runs them, with hot reload.
Any method on http://127.0.0.1:8787/functions/v1/<name> (or <name>/<path>). A JSON function gets the body as its event; an HTTP function gets the whole request (method, path, query, headers, raw body) and returns a response. Every call runs the code on disk now; add `Accept: text/event-stream` (or ?stream=ndjson) to stream a generator handler. Secrets: the project's `.env.local`, `.env` / `.env.local` in the folder, `--env-file`, `--env NAME=value`.

### sov functions logs
`sov functions logs [OPTIONS] [FUNCTION_NAME]`
Invocation logs with filters; `--follow` streams new ones live.

### sov functions stream
`sov functions stream [OPTIONS] FUNCTION_NAME`
Call a function and print what it yields as it arrives (generator handlers).

### sov functions limits
`sov functions limits [OPTIONS] FUNCTION_NAME`
Show or set a function's memory, timeout and minimum warm instances (lower memory also lowers its compute bill).

### sov functions secrets list
`sov functions secrets list [OPTIONS]`
Names of the environment's secrets (values are never shown).

### sov functions secrets set
`sov functions secrets set [OPTIONS] [PAIRS]`
Set secrets for every function in an environment: `sov functions secrets set STRIPE_KEY=sk_… --env staging`.

### sov functions secrets unset
`sov functions secrets unset [OPTIONS] NAMES`
Remove secrets from an environment.

### sov functions triggers list
`sov functions triggers list [OPTIONS]`
List the project's event triggers and the plan's limits.

### sov functions triggers create
`sov functions triggers create [OPTIONS] FUNCTION`
Run FUNCTION on events, e.g.
`sov functions triggers create on-order --on db.document -r orders --event document.created`.

### sov functions triggers enable
`sov functions triggers enable [OPTIONS] TRIGGER_ID`
Switch a trigger on.

### sov functions triggers disable
`sov functions triggers disable [OPTIONS] TRIGGER_ID`
Switch a trigger off (events are ignored while it is off).

### sov functions triggers delete
`sov functions triggers delete [OPTIONS] TRIGGER_ID`
Delete a trigger.

### sov functions triggers test
`sov functions triggers test [OPTIONS] TRIGGER_ID`
Send a sample event through a trigger (counts as one invocation).

### sov functions schedules list
`sov functions schedules list [OPTIONS]`
Cron schedules of the project's environment.

### sov functions schedules preview
`sov functions schedules preview [OPTIONS] CRON`
Show when an expression runs, e.g.
`sov functions schedules preview '0 9 * * MON-FRI' --tz Asia/Kolkata`.

### sov functions schedules create
`sov functions schedules create [OPTIONS] CRON`
Create a cron job: `-f FUNCTION`, `--url URL` or `--sql SQL`.

### sov functions schedules update
`sov functions schedules update [OPTIONS] SCHEDULE_ID`
Change a schedule (only the options given change).

### sov functions schedules delete
`sov functions schedules delete [OPTIONS] SCHEDULE_ID`
Delete a schedule (its run history stays in the logs).

### sov functions schedules run
`sov functions schedules run [OPTIONS] SCHEDULE_ID`
Run a schedule now (counts as an invocation; its regular times don't change).

### sov functions schedules runs
`sov functions schedules runs [OPTIONS] SCHEDULE_ID`
Run history: status (incl.
SKIPPED / MISSED slots), duration, tries and errors.

### sov functions cron list
`sov functions cron list [OPTIONS]`
Cron schedules of the project's environment.

### sov functions cron preview
`sov functions cron preview [OPTIONS] CRON`
Show when an expression runs, e.g.
`sov functions schedules preview '0 9 * * MON-FRI' --tz Asia/Kolkata`.

### sov functions cron create
`sov functions cron create [OPTIONS] CRON`
Create a cron job: `-f FUNCTION`, `--url URL` or `--sql SQL`.

### sov functions cron update
`sov functions cron update [OPTIONS] SCHEDULE_ID`
Change a schedule (only the options given change).

### sov functions cron delete
`sov functions cron delete [OPTIONS] SCHEDULE_ID`
Delete a schedule (its run history stays in the logs).

### sov functions cron run
`sov functions cron run [OPTIONS] SCHEDULE_ID`
Run a schedule now (counts as an invocation; its regular times don't change).

### sov functions cron runs
`sov functions cron runs [OPTIONS] SCHEDULE_ID`
Run history: status (incl.
SKIPPED / MISSED slots), duration, tries and errors.

### sov functions workflows start
`sov functions workflows start [OPTIONS] FUNCTION`
Start a run, e.g.
`sov functions workflows start checkout -i '{"order": 7}' --key order-7`.

### sov functions workflows list
`sov functions workflows list [OPTIONS]`
Workflow runs, newest first.

### sov functions workflows get
`sov functions workflows get [OPTIONS] RUN_ID`
A run with its status, output or error and every finished step.

### sov functions workflows signal
`sov functions workflows signal [OPTIONS] RUN_ID NAME`
Send a signal, e.g.
`sov functions workflows signal <run> approval -d '{"approved": true}'`.

### sov functions workflows cancel
`sov functions workflows cancel [OPTIONS] RUN_ID`
Stop an unfinished run for good (its remaining steps never run).

### sov functions workflows retry
`sov functions workflows retry [OPTIONS] RUN_ID`
Resume a failed run from the step that failed (finished steps are not run again).

### sov functions dead-letters list
`sov functions dead-letters list [OPTIONS]`
Dead-lettered runs, newest first.

### sov functions dead-letters replay
`sov functions dead-letters replay [OPTIONS] [IDS]`
Run dead-lettered events again (with the function's current code and a fresh set of tries).

### sov functions dead-letters discard
`sov functions dead-letters discard [OPTIONS] IDS`
Drop dead letters you don't want to replay.

### sov functions api-versions list
`sov functions api-versions list [OPTIONS]`
API versions with their status, function count, calls and sunset date.

### sov functions api-versions get
`sov functions api-versions get [OPTIONS] NAME`
One version with the function versions it pins.

### sov functions api-versions create
`sov functions api-versions create [OPTIONS] NAME`
Pin every function's current code under a version name.

### sov functions api-versions pin
`sov functions api-versions pin [OPTIONS] NAME PINS`
Point functions of a version at other deploys (e.g.
a fix for apps on v1).

### sov functions api-versions unpin
`sov functions api-versions unpin [OPTIONS] NAME FUNCTIONS`
Remove functions from a version (calls to them with this version then get 404).

### sov functions api-versions deprecate
`sov functions api-versions deprecate [OPTIONS] NAME`
Calls still work; answers carry Deprecation and Sunset headers.

### sov functions api-versions activate
`sov functions api-versions activate [OPTIONS] NAME`
Undo a deprecation (clears the sunset date).

### sov functions api-versions retire
`sov functions api-versions retire [OPTIONS] NAME`
Stop a version now: calls that ask for it get 410.
This can't be undone.

### sov functions api-versions delete
`sov functions api-versions delete [OPTIONS] NAME`
Delete a retired version.

## sov deploy

Deploy a cloud function (Python or JavaScript) to Sovaria Functions.

### sov deploy
`sov deploy [OPTIONS] [DIRECTORY]`
Deploy a cloud function (Python or JavaScript) to Sovaria Functions.
Example: sov deploy ./my-function --name greet --project proj-abc123

## sov secrets

Function secrets and env bindings

### sov secrets list
`sov secrets list [OPTIONS] FUNCTION`
List secret bindings for a function (masked values).

### sov secrets set
`sov secrets set [OPTIONS] FUNCTION`
Set one secret binding on a function.

### sov secrets unset
`sov secrets unset [OPTIONS] FUNCTION`
Remove a secret binding from a function.

### sov secrets import
`sov secrets import [OPTIONS] FUNCTION FILE`
Import secrets from a .env file or JSON bindings array.

## sov flows

Flows: automations with triggers (webhook, schedule, table change, form) and steps

### sov flows list
`sov flows list [OPTIONS]`
Flows with their state, last run and the plan's flow limits.

### sov flows get
`sov flows get [OPTIONS] FLOW_ID`
One flow: settings, triggers and URLs (webhook URLs carry the flow's token), the draft and its issues.

### sov flows pull
`sov flows pull [OPTIONS] FLOW_ID`
Print the draft graph as JSON (edit it, then `sov flows push`).

### sov flows create
`sov flows create [OPTIONS] NAME`
Create a flow (blank, from a graph file, or from a template).

### sov flows push
`sov flows push [OPTIONS] FLOW_ID FILE`
Save a graph file as the flow's draft (the live flow changes only on publish).

### sov flows publish
`sov flows publish [OPTIONS] FLOW_ID`
Publish the draft as a new version (the live flow runs it while it's on).

### sov flows set
`sov flows set [OPTIONS] FLOW_ID`
Change a flow's settings (only the ones given).
Example: a kiosk form shared by everyone on one network: sov flows set flw_123 --form-per-visitor 100

### sov flows on
`sov flows on [OPTIONS] FLOW_ID`
Turn the flow on: its schedules, event triggers and queues are registered; webhooks and forms answer.

### sov flows off
`sov flows off [OPTIONS] FLOW_ID`
Turn the flow off: nothing starts it until it's turned back on.

### sov flows delete
`sov flows delete [OPTIONS] FLOW_ID`
Delete a flow, its versions and run history.

### sov flows test
`sov flows test [OPTIONS] FLOW_ID`
Run the draft once (steps run for real; test runs don't count toward the month's flow runs).

### sov flows runs
`sov flows runs [OPTIONS] FLOW_ID`
A flow's executions, newest first.

### sov flows run
`sov flows run [OPTIONS] EXECUTION_ID`
One execution: every step's status, items out and error (secrets a step used show as ).

### sov flows retry
`sov flows retry [OPTIONS] EXECUTION_ID`
Retry a failed or canceled execution (with the data the failed step had).

### sov flows cancel
`sov flows cancel [OPTIONS] EXECUTION_ID`
Cancel an unfinished execution.

### sov flows rotate-token
`sov flows rotate-token [OPTIONS] FLOW_ID`
New URL token for the flow's webhooks; callers using the old URL get 401.

### sov flows versions
`sov flows versions [OPTIONS] FLOW_ID`
Published versions.

### sov flows restore
`sov flows restore [OPTIONS] FLOW_ID VERSION`
Put a published version back into the draft (publish to make it live).

### sov flows templates
`sov flows templates [OPTIONS]`
Flow templates (use one with `sov flows create NAME --template ID`).

### sov flows catalog
`sov flows catalog [OPTIONS] [SEARCH]`
Step types (triggers and actions) a flow can use.

## sov queues

Message queues: send, read, archive, dead letters, metrics

### sov queues list
`sov queues list [OPTIONS]`
Queues with their length, oldest message age and consumer.

### sov queues get
`sov queues get [OPTIONS] NAME`
A queue's settings, consumer and metrics.

### sov queues create
`sov queues create [OPTIONS] NAME`
Create a queue (optionally with a dead-letter queue and a consumer function).

### sov queues update
`sov queues update [OPTIONS] NAME`
Change a queue's settings or consumer (only the options given change).

### sov queues delete
`sov queues delete [OPTIONS] NAME`
Delete a queue and every message in it.

### sov queues send
`sov queues send [OPTIONS] NAME MESSAGES`
Send one or more messages.

### sov queues read
`sov queues read [OPTIONS] NAME`
Read messages; they are hidden for the visibility timeout.
Archive or delete each when done.

### sov queues pop
`sov queues pop [OPTIONS] NAME`
Read and delete messages at once (at-most-once).

### sov queues peek
`sov queues peek [OPTIONS] NAME`
Look at messages without reading them.

### sov queues archive
`sov queues archive [OPTIONS] NAME MSG_IDS`
Archive messages (kept for the retention period).

### sov queues delete-messages
`sov queues delete-messages [OPTIONS] NAME MSG_IDS`
Delete messages for good.

### sov queues set-vt
`sov queues set-vt [OPTIONS] NAME MSG_ID VT`
Hide a message for longer (or show it now).

### sov queues purge
`sov queues purge [OPTIONS] NAME`
Delete every waiting message (and the archive with --include-archived).

### sov queues metrics
`sov queues metrics [OPTIONS] NAME`
Length, visible / in flight / delayed, oldest message age, totals, dead letters.

## sov integrations

One-click integrations: Slack/Discord alerts, Vercel/Netlify env sync

### sov integrations providers
`sov integrations providers [OPTIONS]`
Integrations that can be connected in one click (with Sovaria's app or your organization's own).

### sov integrations connections
`sov integrations connections [OPTIONS]`
The organization's deploy connections (provider, project, when, last sync).
Tokens are never shown.

### sov integrations connect
`sov integrations connect [OPTIONS] PROVIDER`
Print the vendor's consent link.
After you approve, the browser returns to the console, which finishes it.

### sov integrations state
`sov integrations state [OPTIONS] PROVIDER`
Whether a deploy provider is connected to the project, and its last sync.

### sov integrations targets
`sov integrations targets [OPTIONS] PROVIDER`
The Vercel projects or Netlify sites the connection can write to.

### sov integrations sync
`sov integrations sync [OPTIONS] PROVIDER`
Write the project URL and publishable (anon) key into the target's environment variables.
No secret keys.

### sov integrations env
`sov integrations env [OPTIONS]`
The public values a frontend needs (project URL + publishable key), to set by hand.

### sov integrations disconnect
`sov integrations disconnect [OPTIONS] PROVIDER`
Forget a deploy connection and revoke Sovaria's access at the vendor where it allows that.

### sov integrations app set
`sov integrations app set [OPTIONS] PROVIDER`
Use your organization's own OAuth app (registered with the vendor with the callback URL this prints).
The client secret is asked for (never echoed) or read with --client-secret-stdin.

### sov integrations app remove
`sov integrations app remove [OPTIONS] PROVIDER`
Stop using your organization's own app (one-click uses Sovaria's app again, where it's set up).
