arianet baas
This reference is generated from the CLI's own help on every release, so it always matches the latest arianet. The command help is the same text arianet <command> --help prints. For installation, configuration and a guided start, see the CLI page.
The global flags work with every command on this page.
arianet baas
Manage BaaS projects: database, SQL, migrations, keys, storage, auth, edge functions, sites, realtime, cron, backups
Arianet BaaS: each project is a PostgreSQL database with a public endpoint (REST, auth, storage, realtime) and its keys. Create and manage projects, run SQL, manage tables and the database's objects, apply migrations from files, generate TypeScript types, configure auth, deploy edge functions and static sites, deploy from a GitHub or GitLab repository, schedule Cron jobs, queues and webhooks, keep secrets in the Vault, back up and restore, and print the environment your app needs. Every action of the console has a command here.
Run arianet baas link in your app's directory once: the project ID, the first argument of the project commands, can then be left out there. Migration files live in arianet/migrations.
Projects run in region thr-1.
The commands call /baas/v1 on the API host with your API token. Token scopes: baas:projects:read (reads, incl. migration list, db pull and diff, gen types, advisors, logs, reports), baas:projects:manage (create, rename, move, delete, pause, resume, plan, domains, transfer, api-settings set, auth settings, providers, hooks, secrets and templates, db settings, backups and restores), baas:keys:manage (keys reveal and rotate, env, vault, db password reset), baas:sql:execute (sql, db push, db pull --mark-applied, tables, db schemas/enums/functions/triggers/views/extensions, import, cron, queues, webhooks, snippets), baas:storage:manage (storage writes, policies, S3 keys), baas:auth-users:manage (auth users changes, sessions, factors), baas:functions:manage (functions deploy, delete, download, source, invoke, config and secrets changes), baas:sites:manage (sites create, update, delete, deploy, rollback, deployments delete; sites domains add needs baas:projects:manage), baas:git:manage (git connect, update, disconnect, deploy, redeploy, cancel, promote, previews rm) (a token without scopes may do everything). --region picks a regional install (default: the product's default region). Add -o json to print the service's answer as is.
Token scopes: baas:projects:read (reads, incl. migration list, db pull and diff, gen types, advisors, logs, reports), baas:projects:manage (create, rename, move, delete, pause, resume, plan, domains, transfer, api-settings set, auth settings, providers, hooks, secrets and templates, db settings, backups and restores), baas:keys:manage (keys reveal and rotate, env, vault, db password reset), baas:sql:execute (sql, db push, db pull --mark-applied, tables, db schemas/enums/functions/triggers/views/extensions, import, cron, queues, webhooks, snippets), baas:storage:manage (storage writes, policies, S3 keys), baas:auth-users:manage (auth users changes, sessions, factors), baas:functions:manage (functions deploy, delete, download, source, invoke, config and secrets changes), baas:sites:manage (sites create, update, delete, deploy, rollback, deployments delete; sites domains add needs baas:projects:manage), baas:git:manage (git connect, update, disconnect, deploy, redeploy, cancel, promote, previews rm)
Usage
arianet baas <command>
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--region | string | regional install to call, e.g. iran-1 (default: the product's default region) |
Subcommands
actions: Follow asynchronous operations (actions)advisors: Show the security and performance findings of the database (--run checks now)api: Send any request to the /baas/v1 API and print the answer as JSONapi-settings: Show or change the REST row limit and the JWT expiryauth: The project's end-user authentication: users, settings, providers, hooks, templates, logsbackups: Backups of the project's database, restore and point-in-time restorecron: Run SQL or call a URL on a schedule (Cron jobs)db: Migrations (push, pull, diff) and the database: settings, schemas, extensions, enums, functions, triggers, views, import, exportdomains: Serve the project at your own hostname (paid plans)env: Print the URL and anon key your app needs, as .env lines or JSONfunctions: Write, run, deploy and manage the project's edge functionsgen: Generate code from the project's databasegit: Deploy from a GitHub or GitLab repository: connect, deployments, logs, previews, promotekeys: Show, reveal and rotate a project's keyslink: Link this directory to a project, so the project ID can be left out herelogs: Show the project's request logs (last 7 days) and SQL editor runsmigration: Create migration files and compare them with what the project appliedplans: List the plans and their limitsprojects: Create and manage projectspush: Apply the backend of a directory: migrations, config.toml and functions (what a git deploy does)queues: Message queues in the databaserealtime: The realtime endpoint and the tables whose changes it sendsreports: Show the API, auth, storage and database report over a rangesites: Host static and single-page sites: deploy a build directory, roll back, custom domainssnippets: SQL snippets saved with the project (the SQL editor's)sql: Run SQL as the project's owner (one transaction) and print the resultstorage: Manage the project's buckets, files, storage policies and S3 keystables: Create, change and drop tables, their columns, indexes, policies and rowstransfer: Move a project to another Arianet account (it accepts within 7 days)types: Alias of gen types: generate TypeScript types of the databaseunlink: Remove this directory's project linkusage: Show this month's use against the planvault: Secrets stored encrypted with the project's own key, readable from your SQLwebhooks: Database Webhooks: POST a table's inserts, updates and deletes to a URL
arianet baas actions
Follow asynchronous operations (actions)
Usage
arianet baas actions <command>
Aliases: action
Inherited flags: --region (from arianet baas)
Subcommands
get: Show one operationlist: List your latest operationswait: Wait until operations finish; exits non-zero if one fails or the timeout passes
arianet baas actions get
Show one operation
Usage
arianet baas actions get <action-id> [flags]
Examples
arianet baas actions get 812
Inherited flags: --region (from arianet baas)
arianet baas actions list
List your latest operations
Usage
arianet baas actions list [flags]
Aliases: ls
Examples
arianet baas actions list --limit 20
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--limit | string | at most this many |
Inherited flags: --region (from arianet baas)
arianet baas actions wait
Wait until operations finish; exits non-zero if one fails or the timeout passes
Usage
arianet baas actions wait <action-id> [<action-id>...] [flags]
Examples
arianet baas actions wait 812 813 --timeout 10m
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long to wait |
Inherited flags: --region (from arianet baas)
arianet baas advisors
Show the security and performance findings of the database (--run checks now)
Show what the security and performance advisors found in the project's database: tables without row level security, policies that allow everything, exposed security definer functions, unindexed foreign keys, duplicate indexes and more, each with its level (ERROR, WARN, INFO) and how to fix it. The checks run daily; --run runs them now.
Usage
arianet baas advisors [project-id] [flags]
Aliases: advisor, lint
Examples
arianet baas advisors
arianet baas advisors 12 --kind security --run --details
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--details | bool | print each finding's fix and SQL | |
--kind | string | only security or performance findings | |
--run | bool | run the checks now (rate limited) instead of showing the last run |
Inherited flags: --region (from arianet baas)
arianet baas api
Send any request to the /baas/v1 API and print the answer as JSON
Usage
arianet baas api <method> <path> [flags]
Examples
arianet baas api GET /openapi.json
arianet baas api POST /some/path --data '{"key":"value"}'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--data | string | the JSON request body | |
--file | string | read the JSON request body from this file |
Inherited flags: --region (from arianet baas)
arianet baas api-settings
Show or change the REST row limit and the JWT expiry
Usage
arianet baas api-settings <command>
Aliases: api-setting
Inherited flags: --region (from arianet baas)
Subcommands
arianet baas api-settings get
Show the API settings
Usage
arianet baas api-settings get [project-id] [flags]
Aliases: show
Examples
arianet baas api-settings get 12
Inherited flags: --region (from arianet baas)
arianet baas api-settings set
Change the API settings
Usage
arianet baas api-settings set [project-id] [flags]
Examples
arianet baas api-settings set --max-rows 500 --jwt-expiry 7200
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--jwt-expiry | int64 | lifetime of issued access tokens in seconds (300-604800) | |
--max-rows | int64 | most rows one REST request returns (1-100000) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas auth
The project's end-user authentication: users, settings, providers, hooks, templates, logs
Usage
arianet baas auth <command>
Inherited flags: --region (from arianet baas)
Subcommands
audit: Show the auth events (sign-ins, sign-ups, token refreshes...), newest firsthooks: Auth hooks: custom access token claims, send email or SMS yourself, verification attemptsproviders: External sign-in providers (OAuth / OpenID Connect)secrets: Secrets of the auth configuration: provider:<name>, smtp, captcha, hook:<kind>settings: Show or change how the project's auth treats its userssms: Show the SMS log: each code sent, its delivery state, line and operatorsmtp: Your own SMTP server (set it with auth settings set --smtp-*)templates: The emails auth sends: confirm sign-up, invite, magic link, recovery, email changeusers: Manage the project's end users
arianet baas auth audit
Show the auth events (sign-ins, sign-ups, token refreshes...), newest first
Usage
arianet baas auth audit [project-id] [flags]
Examples
arianet baas auth audit 12 --action login --from 2026-11-01T00:00:00Z
arianet baas auth audit 12 --search ana@example.com
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--action | string | only this action, e.g. login | |
--actor | string | only this user's | |
--from | string | only after this time (RFC 3339) | |
--ip | string | only from this address | |
--page | string | page number | |
--per-page | string | entries per page | |
--search | string | search the entries | |
--to | string | only before this time (RFC 3339) |
Inherited flags: --region (from arianet baas)
arianet baas auth hooks
Auth hooks: custom access token claims, send email or SMS yourself, verification attempts
Usage
arianet baas auth hooks <command>
Aliases: hook
Inherited flags: --region (from arianet baas)
Subcommands
disable: Turn a hook offlist: List the hooks and which are onset: Point an auth hook at a database function or an https URL
arianet baas auth hooks disable
Turn a hook off
Usage
arianet baas auth hooks disable [project-id] <hook> [flags]
Examples
arianet baas auth hooks disable 12 custom_access_token
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas auth hooks list
List the hooks and which are on
Usage
arianet baas auth hooks list [project-id] [flags]
Aliases: ls
Examples
arianet baas auth hooks list 12
Inherited flags: --region (from arianet baas)
arianet baas auth hooks set
Point an auth hook at a database function or an https URL
Usage
arianet baas auth hooks set [project-id] <hook> [flags]
Examples
arianet baas auth hooks set 12 custom_access_token --enabled --uri pg-functions://postgres/public/access_token_hook
arianet baas auth hooks set 12 send_email --enabled --uri https://example.com/hooks/email --generate-secret
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--enabled | bool | the hook runs | |
--generate-secret | bool | make a new signing secret for an https hook and show it once | |
--timeout | duration | 15m0s | how long --wait waits |
--uri | string | pg-functions://postgres/<schema>/<function> or an https:// URL | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas auth providers
External sign-in providers (OAuth / OpenID Connect)
Usage
arianet baas auth providers <command>
Aliases: provider
Inherited flags: --region (from arianet baas)
Subcommands
disable: Turn a provider offlist: List the providers and which are onset: Turn on or change an external sign-in provider (e.g. google, github, custom:<name>)
arianet baas auth providers disable
Turn a provider off
Usage
arianet baas auth providers disable [project-id] <provider> [flags]
Examples
arianet baas auth providers disable 12 custom:corp
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas auth providers list
List the providers and which are on
Usage
arianet baas auth providers list [project-id] [flags]
Aliases: ls
Examples
arianet baas auth providers list 12
Inherited flags: --region (from arianet baas)
arianet baas auth providers set
Turn on or change an external sign-in provider (e.g. google, github, custom:<name>)
Usage
arianet baas auth providers set [project-id] <provider> [flags]
Examples
arianet baas auth providers set 12 google --enabled --client-id 123.apps.example --secret-file ./google.secret
arianet baas auth providers set 12 custom:corp --enabled --client-id cli --url https://id.example.com --scopes "openid email"
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--additional-client-id | stringArray | more accepted client IDs (replaces the list) (repeatable, or comma separated) | |
--client-id | string | the OAuth client ID | |
--enabled | bool | sign-in with it is on | |
--name | string | the name shown for a custom provider | |
--scopes | string | extra scopes, space separated | |
--secret-file | string | read the client secret from this file (- for standard input); stored sealed | |
--skip-nonce-check | bool | accept ID tokens without a nonce | |
--timeout | duration | 15m0s | how long --wait waits |
--url | string | the issuer URL (custom providers; optional for gitlab and azure) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas auth secrets
Secrets of the auth configuration: provider:<name>, smtp, captcha, hook:<kind>
Usage
arianet baas auth secrets <command>
Aliases: secret
Inherited flags: --region (from arianet baas)
Subcommands
arianet baas auth secrets set
Set a secret of the auth configuration (sealed; never shown again)
Usage
arianet baas auth secrets set [project-id] <name> [flags]
Examples
arianet baas auth secrets set 12 smtp --value-file ./smtp.password
arianet baas auth secrets set 12 hook:send_email --generate
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--generate | bool | make a hook's signing secret and show it once | |
--timeout | duration | 15m0s | how long --wait waits |
--value | string | the value (it stays in your shell history; prefer --value-file) | |
--value-file | string | read the value from this file (- for standard input) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas auth secrets unset
Remove a secret
Usage
arianet baas auth secrets unset [project-id] <name> [flags]
Aliases: delete, rm
Examples
arianet baas auth secrets unset 12 hook:send_email --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas auth settings
Show or change how the project's auth treats its users
Usage
arianet baas auth settings <command>
Aliases: config
Inherited flags: --region (from arianet baas)
Subcommands
get: Show the auth settings, providers and hooksset: Change auth settings (only the flags given; --file for providers and hooks too)
arianet baas auth settings get
Show the auth settings, providers and hooks
Usage
arianet baas auth settings get [project-id] [flags]
Aliases: show
Examples
arianet baas auth settings get 12
arianet baas auth settings get 12 --section mfa -o json
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--section | string | only general, sessions, mfa, rate_limits, smtp, captcha, providers or hooks |
Inherited flags: --region (from arianet baas)
arianet baas auth settings set
Change auth settings (only the flags given; --file for providers and hooks too)
Usage
arianet baas auth settings set [project-id] [flags]
Examples
arianet baas auth settings set 12 --site-url https://shop.example.com --redirect-url https://shop.example.com/*
arianet baas auth settings set 12 --disable-signup --mfa-totp-enroll --session-inactivity-timeout 86400
arianet baas auth settings set 12 --rate-emails-per-hour 30 --password-min-length 10
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--anonymous-enabled | bool | anonymous sign-ins | |
--app-name | string | the app's name in messages | |
--captcha-enabled | bool | check a CAPTCHA on sign-up and sign-in | |
--captcha-provider | string | hcaptcha or turnstile | |
--captcha-site-key | string | the CAPTCHA site key (its secret: auth secrets set captcha) | |
--data | string | the JSON request body; flags given as well override its fields | |
--disable-signup | bool | refuse new sign-ups | |
--email-confirm-required | bool | a new email must be confirmed before sign-in | |
--email-enabled | bool | sign-in with email | |
--file | string | read the JSON request body from this file | |
--jwt-expiry | int64 | access token lifetime in seconds (300-604800) | |
--language | string | language of the platform's messages: fa or en | |
--leaked-password-protection | bool | refuse passwords known from leaks | |
--manual-linking | bool | users may link identities themselves | |
--mfa-max-factors | int64 | most factors per user (1-20) | |
--mfa-phone-enroll | bool | users may enroll phone factors | |
--mfa-phone-verify | bool | phone factor codes are accepted | |
--mfa-totp-enroll | bool | users may enroll authenticator apps | |
--mfa-totp-verify | bool | authenticator app codes are accepted | |
--otp-expiry | int64 | seconds a one-time code is valid | |
--otp-length | int64 | digits of a one-time code | |
--password-min-length | int64 | shortest password | |
--password-required-characters | string | "", letters_digits, lower_upper_digits or lower_upper_digits_symbols | |
--phone-confirm-required | bool | a new phone must be confirmed before sign-in | |
--phone-enabled | bool | sign-in with a phone number | |
--rate-anonymous-per-hour | int64 | anonymous sign-ins per hour (0: the plan's) | |
--rate-emails-per-hour | int64 | emails sent per hour (0: the plan's) | |
--rate-sign-in | int64 | sign-ins per 5 minutes per address (0: the plan's) | |
--rate-sms-per-hour | int64 | SMS sent per hour (0: the plan's) | |
--rate-token-refresh | int64 | token refreshes per 5 minutes (0: the plan's) | |
--rate-verify | int64 | verifications per 5 minutes (0: the plan's) | |
--redirect-url | stringArray | the URLs a sign-in may redirect to (replaces the list) (repeatable, or comma separated) | |
--secure-email-change | bool | an email change is confirmed at both addresses | |
--secure-password-change | bool | a password change needs a recent sign-in | |
--session-inactivity-timeout | int64 | a session ends after this many idle seconds (0: never) | |
--session-timebox | int64 | a session ends after this many seconds (0: never) | |
--single-session | bool | one session per user (a new sign-in ends the others) | |
--site-url | string | the app's URL (the default redirect after sign-in) | |
--sms-enabled | bool | send SMS from the platform's line (within the plan) | |
--smtp-enabled | bool | send email through your own SMTP server | |
--smtp-host | string | SMTP host | |
--smtp-port | int64 | SMTP port | |
--smtp-sender-email | string | sender address | |
--smtp-sender-name | string | sender name | |
--smtp-user | string | SMTP user (its password: auth secrets set smtp) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas auth sms
Show the SMS log: each code sent, its delivery state, line and operator
Usage
arianet baas auth sms [project-id] [flags]
Examples
arianet baas auth sms 12 --phone 09121234567
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--page | string | page number | |
--per-page | string | entries per page | |
--phone | string | only this phone number |
Inherited flags: --region (from arianet baas)
arianet baas auth smtp
Your own SMTP server (set it with auth settings set --smtp-*)
Usage
arianet baas auth smtp <command>
Inherited flags: --region (from arianet baas)
Subcommands
test: Send a test message through the SMTP server (the flags given over the stored settings)
arianet baas auth smtp test
Send a test message through the SMTP server (the flags given over the stored settings)
Usage
arianet baas auth smtp test [project-id] [flags]
Examples
arianet baas auth smtp test 12 --to me@example.com
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--host | string | SMTP host | |
--password-file | string | try this password instead of the stored one (read from the file, - for standard input) | |
--port | int64 | SMTP port | |
--sender-email | string | sender address | |
--sender-name | string | sender name | |
--timeout | duration | 15m0s | how long --wait waits |
--to | string | the recipient (required) | |
--user | string | SMTP user | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas auth templates
The emails auth sends: confirm sign-up, invite, magic link, recovery, email change
Usage
arianet baas auth templates <command>
Aliases: emails, template
Inherited flags: --region (from arianet baas)
Subcommands
get: Print a template's subject and bodylist: List the templates and which are your ownpreview: Render a template with example data (nothing is stored or sent)reset: Go back to the platform's messageset: Use your own template (signup, invite, magiclink, recovery, email_change, reauthentication)
arianet baas auth templates get
Print a template's subject and body
Usage
arianet baas auth templates get [project-id] <kind> [flags]
Examples
arianet baas auth templates get 12 signup
Inherited flags: --region (from arianet baas)
arianet baas auth templates list
List the templates and which are your own
Usage
arianet baas auth templates list [project-id] [flags]
Aliases: ls
Examples
arianet baas auth templates list 12
Inherited flags: --region (from arianet baas)
arianet baas auth templates preview
Render a template with example data (nothing is stored or sent)
Usage
arianet baas auth templates preview [project-id] <kind> [flags]
Examples
arianet baas auth templates preview 12 signup --subject 'Welcome to Shop' --body-file ./signup.html
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--body | string | the HTML body (prefer --body-file) | |
--body-file | string | read the HTML body from this file (- for standard input) | |
--subject | string | the subject | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas auth templates reset
Go back to the platform's message
Usage
arianet baas auth templates reset [project-id] <kind> [flags]
Examples
arianet baas auth templates reset 12 recovery --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas auth templates set
Use your own template (signup, invite, magiclink, recovery, email_change, reauthentication)
Usage
arianet baas auth templates set [project-id] <kind> [flags]
Examples
arianet baas auth templates set 12 signup --subject "Confirm your account" --body-file signup.html
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--body | string | the HTML body (prefer --body-file) | |
--body-file | string | read the HTML body from this file (- for standard input) | |
--subject | string | the subject | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas auth users
Manage the project's end users
Usage
arianet baas auth users <command>
Aliases: user
Inherited flags: --region (from arianet baas)
Subcommands
create: Create a userdelete: Delete a userfactors: A user's MFA factorsget: Show one userlist: List the project's userssend: Send the user a magic link (or code) or a password recovery messagesessions: A user's sessionsupdate: Change a user: email, phone, password, confirmation, metadata, ban
arianet baas auth users create
Create a user
Usage
arianet baas auth users create [project-id] [flags]
Examples
arianet baas auth users create 12 --email ana@example.com --password 'S3cret-pass' --email-confirm
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--email | string | email address | |
--email-confirm | bool | mark the email as confirmed | |
--password | string | password | |
--phone | string | phone number | |
--phone-confirm | bool | mark the phone as confirmed | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas auth users delete
Delete a user
Usage
arianet baas auth users delete [project-id] <user-id> [flags]
Aliases: rm
Examples
arianet baas auth users delete 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas auth users factors
A user's MFA factors
Usage
arianet baas auth users factors <command>
Aliases: factor, mfa
Inherited flags: --region (from arianet baas)
Subcommands
arianet baas auth users factors delete
Remove an MFA factor (its sessions go back to aal1)
Usage
arianet baas auth users factors delete [project-id] <user-id> <factor-id> [flags]
Aliases: rm
Examples
arianet baas auth users factors delete 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40 b2e4c6d8-1a3f-4c5e-8d7b-9f0a1b2c3d4e --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas auth users factors list
List a user's MFA factors
Usage
arianet baas auth users factors list [project-id] <user-id> [flags]
Aliases: ls
Examples
arianet baas auth users factors list 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40
Inherited flags: --region (from arianet baas)
arianet baas auth users get
Show one user
Usage
arianet baas auth users get [project-id] <user-id> [flags]
Aliases: show
Examples
arianet baas auth users get 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40
Inherited flags: --region (from arianet baas)
arianet baas auth users list
List the project's users
Usage
arianet baas auth users list [project-id] [flags]
Aliases: ls
Examples
arianet baas auth users list 12 --search @example.com --per-page 50
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--page | string | page number | |
--per-page | string | users per page (at most 200) | |
--search | string | search the email, phone or ID |
Inherited flags: --region (from arianet baas)
arianet baas auth users send
Send the user a magic link (or code) or a password recovery message
Usage
arianet baas auth users send [project-id] <user-id> [flags]
Examples
arianet baas auth users send 12 6f1c... --type recovery
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--type | string | magiclink or recovery (required) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas auth users sessions
A user's sessions
Usage
arianet baas auth users sessions <command>
Aliases: session
Inherited flags: --region (from arianet baas)
Subcommands
list: List a user's sessionsrevoke: End one sessionrevoke-all: End every session of a user (signs them out everywhere)
arianet baas auth users sessions list
List a user's sessions
Usage
arianet baas auth users sessions list [project-id] <user-id> [flags]
Aliases: ls
Examples
arianet baas auth users sessions list 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40
Inherited flags: --region (from arianet baas)
arianet baas auth users sessions revoke
End one session
Usage
arianet baas auth users sessions revoke [project-id] <user-id> <session-id> [flags]
Examples
arianet baas auth users sessions revoke 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40 0d9e8f7a-6b5c-4d3e-2f1a-0b9c8d7e6f5a --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas auth users sessions revoke-all
End every session of a user (signs them out everywhere)
Usage
arianet baas auth users sessions revoke-all [project-id] <user-id> [flags]
Examples
arianet baas auth users sessions revoke-all 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas auth users update
Change a user: email, phone, password, confirmation, metadata, ban
Usage
arianet baas auth users update [project-id] <user-id> [flags]
Examples
arianet baas auth users update 12 6f1c... --email-confirm
arianet baas auth users update 12 6f1c... --ban 24h
arianet baas auth users update 12 6f1c... --ban none --app-metadata '{"role":"editor"}'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--app-metadata | string | app metadata as a JSON object | |
--ban | string | ban for this long (e.g. 24h, 876000h), or "none" to lift a ban | |
--email | string | new email address | |
--email-confirm | bool | mark the email as confirmed | |
--password | string | new password | |
--phone | string | new phone number | |
--phone-confirm | bool | mark the phone as confirmed | |
--timeout | duration | 15m0s | how long --wait waits |
--user-metadata | string | user metadata as a JSON object | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas backups
Backups of the project's database, restore and point-in-time restore
Usage
arianet baas backups <command>
Aliases: backup
Inherited flags: --region (from arianet baas)
Subcommands
create: Make a manual backup nowdownload: Download a ready backup (a custom-format dump pg_restore reads; - for standard output)list: List the backups and the plan's backup policypitr: Restore the project to a point in time (paid plans)restore: Restore a backup into the project (traffic paused, a safety backup first)
arianet baas backups create
Make a manual backup now
Usage
arianet baas backups create [project-id] [flags]
Examples
arianet baas backups create 12 --wait
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas backups download
Download a ready backup (a custom-format dump pg_restore reads; - for standard output)
Usage
arianet baas backups download [project-id] <backup-id> [local-file] [flags]
Examples
arianet baas backups download 12 40 shop.dump
pg_restore --list shop.dump
Inherited flags: --region (from arianet baas)
arianet baas backups list
List the backups and the plan's backup policy
Usage
arianet baas backups list [project-id] [flags]
Aliases: ls
Examples
arianet baas backups list 12
Inherited flags: --region (from arianet baas)
arianet baas backups pitr
Restore the project to a point in time (paid plans)
Usage
arianet baas backups pitr [project-id] [flags]
Aliases: restore-to
Examples
arianet baas backups pitr 12 --to 2026-11-28T09:30:00Z --confirm abcdefghij0123456789 --wait
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--confirm | string | the project's ref, typed to confirm (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--to | string | the moment to go back to (RFC 3339, e.g. 2026-11-28T09:30:00Z) (required) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas backups restore
Restore a backup into the project (traffic paused, a safety backup first)
Usage
arianet baas backups restore [project-id] <backup-id> [flags]
Examples
arianet baas backups restore 12 40 --confirm abcdefghij0123456789 --wait
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--confirm | string | the project's ref, typed to confirm (arianet baas projects get) (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas cron
Run SQL or call a URL on a schedule (Cron jobs)
Usage
arianet baas cron <command>
Aliases: crons
Inherited flags: --region (from arianet baas)
Subcommands
create: Create a Cron job that runs SQL or calls a URLdelete: Delete a Cron jobdisable: Turn a Cron job offenable: Turn a Cron job onlist: List the Cron jobspreview: Check a schedule: its shortest interval and next five runsrun: Run a Cron job once, nowruns: Show a Cron job's runs (7 days)update: Change a Cron job (the flags given; the rest stays)
arianet baas cron create
Create a Cron job that runs SQL or calls a URL
Usage
arianet baas cron create [project-id] [flags]
Examples
arianet baas cron create 12 --name cleanup --schedule "0 3 * * *" --sql "delete from logs where at < now() - interval '30 days'"
arianet baas cron create 12 --name ping --schedule "*/10 * * * *" --http-url https://example.com/hook --http-method POST
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--data | string | the JSON request body; flags given as well override its fields | |
--enabled | bool | the job runs on its schedule (default true) | |
--file | string | read the JSON request body from this file | |
--http-body | string | the request body | |
--http-header | stringArray | a request header (repeatable name=value) | |
--http-method | string | GET, POST, PUT, PATCH or DELETE | |
--http-timeout-ms | int64 | the request timeout in milliseconds | |
--http-url | string | the URL to call | |
--kind | string | sql or http (default: from --sql or --http-url) | |
--name | string | job name | |
--schedule | string | cron schedule, e.g. "*/5 * * * *" or "30 seconds" | |
--sql | string | the SQL to run | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas cron delete
Delete a Cron job
Usage
arianet baas cron delete [project-id] <job-id> [flags]
Aliases: rm
Examples
arianet baas cron delete 12 3 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas cron disable
Turn a Cron job off
Usage
arianet baas cron disable [project-id] <job-id> [flags]
Examples
arianet baas cron disable 12 3
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas cron enable
Turn a Cron job on
Usage
arianet baas cron enable [project-id] <job-id> [flags]
Examples
arianet baas cron enable 12 3
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas cron list
List the Cron jobs
Usage
arianet baas cron list [project-id] [flags]
Aliases: ls
Examples
arianet baas cron list 12
Inherited flags: --region (from arianet baas)
arianet baas cron preview
Check a schedule: its shortest interval and next five runs
Usage
arianet baas cron preview [project-id] <schedule> [flags]
Examples
arianet baas cron preview 12 "*/15 * * * *"
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas cron run
Run a Cron job once, now
Usage
arianet baas cron run [project-id] <job-id> [flags]
Examples
arianet baas cron run 12 3
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas cron runs
Show a Cron job's runs (7 days)
Usage
arianet baas cron runs [project-id] <job-id> [flags]
Aliases: history
Examples
arianet baas cron runs 12 3 --limit 20
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--before | string | the next page: runs before this ID | |
--limit | string | at most this many runs |
Inherited flags: --region (from arianet baas)
arianet baas cron update
Change a Cron job (the flags given; the rest stays)
Usage
arianet baas cron update [project-id] <job-id> [flags]
Examples
arianet baas cron update 12 3 --schedule "0 4 * * *"
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--data | string | the JSON request body; flags given as well override its fields | |
--enabled | bool | the job runs on its schedule (default true) | |
--file | string | read the JSON request body from this file | |
--http-body | string | the request body | |
--http-header | stringArray | a request header (repeatable name=value) | |
--http-method | string | GET, POST, PUT, PATCH or DELETE | |
--http-timeout-ms | int64 | the request timeout in milliseconds | |
--http-url | string | the URL to call | |
--kind | string | sql or http (default: from --sql or --http-url) | |
--name | string | job name | |
--schedule | string | cron schedule, e.g. "*/5 * * * *" or "30 seconds" | |
--sql | string | the SQL to run | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db
Migrations (push, pull, diff) and the database: settings, schemas, extensions, enums, functions, triggers, views, import, export
Usage
arianet baas db <command>
Aliases: database
Inherited flags: --region (from arianet baas)
Subcommands
api-docs: Show the REST API reference: every table, view and function it serves (-o json for all of it)api-schemas: Show or set the schemas the REST API servesdiagram: Show a schema's tables and foreign keys (-o json for the columns)diff: Compare the migration files and the newest schema snapshot with the projectenums: List, create, change or drop enumerated typesexport: Download a table, or the rows of one SELECT, as CSVextensions: List, enable or disable PostgreSQL extensionsfunctions: List, create or drop SQL functions (callable at /rest/v1/rpc/<name>)import: Import a CSV file into a table in one transaction (a refused row rolls everything back)import-limits: Show how much one CSV import takes on the project's plannetwork: Set the networks allowed to reach the external database endpoint (--any: every address)password: The direct database login's passwordpull: Write the schema (tables, views, functions, enums, policies...) as a SQL filepush: Apply the migration files (*.sql) not applied yet, in name order, in one transactionroles: List the API roles and your database rolesschemas: List, create or drop schemassettings: Show the connection strings, SSL, allowed networks, timeout and sizessl: Require SSL on the external database endpoint, or allow plain connectionstriggers: List, create, enable, disable or drop triggersviews: List, create, refresh or drop views and materialized views
arianet baas db api-docs
Show the REST API reference: every table, view and function it serves (-o json for all of it)
Usage
arianet baas db api-docs [project-id] [flags]
Examples
arianet baas db api-docs 12
arianet baas db api-docs 12 -o json > api.json
Inherited flags: --region (from arianet baas)
arianet baas db api-schemas
Show or set the schemas the REST API serves
Usage
arianet baas db api-schemas <command>
Aliases: exposed-schemas
Inherited flags: --region (from arianet baas)
Subcommands
get: Show the schemas the REST API serves (the default first)set: Set the schemas the REST API serves (1-20, the default first); the REST runtime restarts
arianet baas db api-schemas get
Show the schemas the REST API serves (the default first)
Usage
arianet baas db api-schemas get [project-id] [flags]
Aliases: show
Examples
arianet baas db api-schemas get 12
Inherited flags: --region (from arianet baas)
arianet baas db api-schemas set
Set the schemas the REST API serves (1-20, the default first); the REST runtime restarts
Usage
arianet baas db api-schemas set [project-id] [flags]
Examples
arianet baas db api-schemas set 12 --schema public,app
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--schema | stringArray | the served schemas, the default first (required) (repeatable, or comma separated) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db diagram
Show a schema's tables and foreign keys (-o json for the columns)
Usage
arianet baas db diagram [project-id] [flags]
Examples
arianet baas db diagram 12 --schema public
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--schema | string | schema (default public) |
Inherited flags: --region (from arianet baas)
arianet baas db diff
Compare the migration files and the newest schema snapshot with the project
Compare the project with this directory:
1. the migration files of --dir with the project's history: files not applied yet
(pending), applied files changed since (changed), and recorded names without a file
(remote only);
2. the project's schema now (as db pull writes it) with the newest *_remote_schema.sql of
--dir, or --against <file>, as a unified diff (- the file, + the project). Leading
comment lines and trailing spaces are ignored.
Exit status: 0 when there is no difference, 2 when there is one, 1 on an error.
Usage
arianet baas db diff [project-id] [flags]
Examples
arianet baas db diff
arianet baas db diff 12 --against schema.sql
arianet baas db diff -o json
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--against | string | compare the schema with this file instead of the newest snapshot | |
--dir | string | arianet/migrations | directory of the migration files and snapshots |
--schema | stringSlice | [public] | schemas to compare (repeatable or comma separated) |
Inherited flags: --region (from arianet baas)
arianet baas db enums
List, create, change or drop enumerated types
Usage
arianet baas db enums <command>
Aliases: enum
Inherited flags: --region (from arianet baas)
Subcommands
add-value: Add a value (at the end, or --before / --after another)create: Create an enumerated typedrop: Drop an enumerated typelist: List a schema's enumerated typesrename-value: Rename a value
arianet baas db enums add-value
Add a value (at the end, or --before / --after another)
Usage
arianet baas db enums add-value [project-id] <type> <value> [flags]
Examples
arianet baas db enums add-value 12 status review --after draft
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--after | string | put it after this value | |
--before | string | put it before this value | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db enums create
Create an enumerated type
Usage
arianet baas db enums create [project-id] <name> [flags]
Examples
arianet baas db enums create 12 status --value draft,published,archived
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--comment | string | type comment | |
--schema | string | schema (default public) | |
--timeout | duration | 15m0s | how long --wait waits |
--value | stringArray | the values, in order (required) (repeatable, or comma separated) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db enums drop
Drop an enumerated type
Usage
arianet baas db enums drop [project-id] <type> [flags]
Aliases: rm
Examples
arianet baas db enums drop 12 status --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--cascade | bool | also drop the columns that use it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas db enums list
List a schema's enumerated types
Usage
arianet baas db enums list [project-id] [flags]
Aliases: ls
Examples
arianet baas db enums list 12 --schema public
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--schema | string | schema (default public) |
Inherited flags: --region (from arianet baas)
arianet baas db enums rename-value
Rename a value
Usage
arianet baas db enums rename-value [project-id] <type> <value> <new-name> [flags]
Examples
arianet baas db enums rename-value 12 status archived retired
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db export
Download a table, or the rows of one SELECT, as CSV
Usage
arianet baas db export [project-id] [flags]
Examples
arianet baas db export 12 --table todos --out todos.csv
arianet baas db export 12 --query 'select id, title from todos where done' > done.csv
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | file name the service suggests for a query export | |
--out | string | - | write the CSV to this file (- for standard output) |
--query | string | a SELECT whose rows to export (read-only) | |
--table | string | the table to export (schema.table; public when no schema) |
Inherited flags: --region (from arianet baas)
arianet baas db extensions
List, enable or disable PostgreSQL extensions
Usage
arianet baas db extensions <command>
Aliases: ext, extension
Inherited flags: --region (from arianet baas)
Subcommands
disable: Disable an extensionenable: Enable an extension (into the extensions schema)list: List the extensions on offer and their state
arianet baas db extensions disable
Disable an extension
Usage
arianet baas db extensions disable [project-id] <name> [flags]
Examples
arianet baas db extensions disable 12 pg_trgm --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--cascade | bool | also drop what depends on it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas db extensions enable
Enable an extension (into the extensions schema)
Usage
arianet baas db extensions enable [project-id] <name> [flags]
Examples
arianet baas db extensions enable 12 pg_trgm
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db extensions list
List the extensions on offer and their state
Usage
arianet baas db extensions list [project-id] [flags]
Aliases: ls
Examples
arianet baas db extensions list 12
Inherited flags: --region (from arianet baas)
arianet baas db functions
List, create or drop SQL functions (callable at /rest/v1/rpc/<name>)
Usage
arianet baas db functions <command>
Aliases: fn, function
Inherited flags: --region (from arianet baas)
Subcommands
create: Create a function in sql or plpgsqldrop: Drop a function, named by its OID (db functions list)list: List a schema's functions
arianet baas db functions create
Create a function in sql or plpgsql
Usage
arianet baas db functions create [project-id] <name> [flags]
Examples
arianet baas db functions create 12 open_todos --returns 'setof todos' --language sql \
--body 'select * from todos where not done' --behavior stable
arianet baas db functions create 12 add --arg a:int --arg b:int --returns int --language sql --body 'select a + b'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--arg | stringArray | an argument as [name]:type[:in|out|inout|variadic][:default=<expression>] (repeatable) | |
--behavior | string | volatile, stable or immutable | |
--body | string | the function body | |
--body-file | string | read the function body from this file (- for standard input) | |
--comment | string | function comment | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--language | string | sql or plpgsql (required) | |
--or-replace | bool | replace a function with the same arguments | |
--returns | string | return type, e.g. int, setof todos, trigger, void (required) | |
--returns-set | bool | returns a set of rows | |
--schema | string | schema (default public) | |
--search-path | stringArray | the function's search_path (repeatable, or comma separated) | |
--security-definer | bool | run with the owner's rights | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db functions drop
Drop a function, named by its OID (db functions list)
Usage
arianet baas db functions drop [project-id] <oid> [flags]
Aliases: rm
Examples
arianet baas db functions drop 12 16842 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--cascade | bool | also drop what depends on it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas db functions list
List a schema's functions
Usage
arianet baas db functions list [project-id] [flags]
Aliases: ls
Examples
arianet baas db functions list 12 --schema public
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--schema | string | schema (default public) |
Inherited flags: --region (from arianet baas)
arianet baas db import
Import a CSV file into a table in one transaction (a refused row rolls everything back)
Import a CSV file into a table. By default the first line names the columns; with --no-header give the table column of each CSV column, in order, with --column (an empty name skips that CSV column). An empty field is NULL. The plan caps the rows and bytes of one import (arianet baas db import-limits).
Usage
arianet baas db import [project-id] <table> <file.csv> [flags]
Examples
arianet baas db import 12 todos todos.csv
arianet baas db import 12 todos data.csv --no-header --column title,done --delimiter ';'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--column | stringArray | the table column of each CSV column, in order (default: the header line) | |
--delimiter | string | field delimiter, one character (default ,) | |
--no-header | bool | the first line is data, not column names |
Inherited flags: --region (from arianet baas)
arianet baas db import-limits
Show how much one CSV import takes on the project's plan
Usage
arianet baas db import-limits [project-id] [flags]
Examples
arianet baas db import-limits 12
Inherited flags: --region (from arianet baas)
arianet baas db network
Set the networks allowed to reach the external database endpoint (--any: every address)
Usage
arianet baas db network [project-id] [flags]
Examples
arianet baas db network 12 --allow 203.0.113.0/24 --allow 198.51.100.7/32
arianet baas db network 12 --any
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--allow | stringArray | an allowed network in CIDR notation (repeatable, or comma separated) | |
--any | bool | allow every address (no restriction) |
Inherited flags: --region (from arianet baas)
arianet baas db password
The direct database login's password
Usage
arianet baas db password <command>
Inherited flags: --region (from arianet baas)
Subcommands
reset: Give the database login a new password, shown once (connections with the old one stop)
arianet baas db password reset
Give the database login a new password, shown once (connections with the old one stop)
Usage
arianet baas db password reset [project-id] [flags]
Examples
arianet baas db password reset 12 --confirm abcdefghij0123456789
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--confirm | string | the project's ref, typed to confirm (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db pull
Write the schema (tables, views, functions, enums, policies...) as a SQL file
Write the DDL of the project's schemas (default public): extensions, schemas, enums, sequences, tables with their columns, defaults and constraints, indexes, views, materialized views, functions, triggers, row level security, policies and comments (no data, no grants). The file goes to --dir (default arianet/migrations) as <timestamp>_remote_schema.sql, or to --file (- for standard output). db diff compares the project with the newest such snapshot.
The snapshot describes the database as it is, so db push would fail applying it to the same project: --mark-applied records it as applied there (needs baas:sql:execute).
In a region without the schema endpoint the snapshot is built here from the table introspection: tables only (views are listed but not written, functions are missing).
Usage
arianet baas db pull [project-id] [flags]
Examples
arianet baas db pull
arianet baas db pull 12 --schema public,app
arianet baas db pull 12 --file - > schema.sql
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--dir | string | arianet/migrations | directory to write the snapshot into |
--file | string | write to this file instead (- for standard output) | |
--mark-applied | bool | record the snapshot as applied in the project, so db push skips it | |
--schema | stringSlice | [public] | schemas to write (repeatable or comma separated) |
Inherited flags: --region (from arianet baas)
arianet baas db push
Apply the migration files (*.sql) not applied yet, in name order, in one transaction
Apply every *.sql file of --dir (default arianet/migrations) that the project has not recorded yet, in lexical name order (create them with arianet baas migration new). The pending files run in one transaction, each followed by its record in baas_cli.migrations (name, checksum, applied_at): if one fails, nothing is applied and the failing file is named. A file that was applied and has changed since is refused: put the change in a new migration file. Files must not contain BEGIN or COMMIT. --dry-run lists what would be applied.
In a region without the migrations endpoint, each file runs in its own transaction instead. Needs the baas:sql:execute scope.
Usage
arianet baas db push [project-id] [flags]
Examples
arianet baas db push
arianet baas db push 12 --dir db/migrations --dry-run
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--dir | string | arianet/migrations | directory of the migration files |
--dry-run | bool | list what would be applied; change nothing |
Inherited flags: --region (from arianet baas)
arianet baas db roles
List the API roles and your database roles
Usage
arianet baas db roles [project-id] [flags]
Examples
arianet baas db roles 12
Inherited flags: --region (from arianet baas)
arianet baas db schemas
List, create or drop schemas
Usage
arianet baas db schemas <command>
Aliases: schema
Inherited flags: --region (from arianet baas)
Subcommands
create: Create a schema. Answers with the SQL that ran.drop: Drop a schema (public and the platform's are protected)list: List the schemas with counts, and which the REST API serves
arianet baas db schemas create
Create a schema. Answers with the SQL that ran.
Usage
arianet baas db schemas create [project-id] <name> [flags]
Examples
arianet baas db schemas create 12 app --grant-api-roles
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--comment | string | schema comment | |
--grant-api-roles | bool | give anon, authenticated and service_role what they have in public | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db schemas drop
Drop a schema (public and the platform's are protected)
Usage
arianet baas db schemas drop [project-id] <schema> [flags]
Aliases: rm
Examples
arianet baas db schemas drop 12 app --cascade --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--cascade | bool | also drop every object in it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas db schemas list
List the schemas with counts, and which the REST API serves
Usage
arianet baas db schemas list [project-id] [flags]
Aliases: ls
Examples
arianet baas db schemas list 12
Inherited flags: --region (from arianet baas)
arianet baas db settings
Show the connection strings, SSL, allowed networks, timeout and size
Usage
arianet baas db settings [project-id] [flags]
Examples
arianet baas db settings 12
Inherited flags: --region (from arianet baas)
arianet baas db ssl
Require SSL on the external database endpoint, or allow plain connections
Usage
arianet baas db ssl <command>
Inherited flags: --region (from arianet baas)
Subcommands
allow-plain: Accept connections without SSL tooenforce: Refuse connections without SSL
arianet baas db ssl allow-plain
Accept connections without SSL too
Usage
arianet baas db ssl allow-plain [project-id] [flags]
Aliases: off
Examples
arianet baas db ssl allow-plain 12 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas db ssl enforce
Refuse connections without SSL
Usage
arianet baas db ssl enforce [project-id] [flags]
Aliases: on
Examples
arianet baas db ssl enforce 12
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db triggers
List, create, enable, disable or drop triggers
Usage
arianet baas db triggers <command>
Aliases: trigger
Inherited flags: --region (from arianet baas)
Subcommands
create: Create a trigger that calls a trigger functiondisable: Disable a triggerdrop: Drop a triggerenable: Enable a triggerlist: List the triggers on a schema's tables
arianet baas db triggers create
Create a trigger that calls a trigger function
Usage
arianet baas db triggers create [project-id] <table> <name> [flags]
Examples
arianet baas db triggers create 12 todos set_updated --timing BEFORE --event UPDATE --function touch_updated_at
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--event | stringArray | INSERT, UPDATE, DELETE or TRUNCATE (required) (repeatable, or comma separated) | |
--function | string | the trigger function (required) | |
--function-schema | string | the trigger function's schema (default public) | |
--orientation | string | ROW (default) or STATEMENT | |
--timeout | duration | 15m0s | how long --wait waits |
--timing | string | BEFORE, AFTER or INSTEAD OF (required) | |
--update-column | stringArray | only on updates of these columns (repeatable, or comma separated) | |
--wait | bool | wait until the operation finishes | |
--when | string | WHEN condition |
Inherited flags: --region (from arianet baas)
arianet baas db triggers disable
Disable a trigger
Usage
arianet baas db triggers disable [project-id] <table> <trigger> [flags]
Examples
arianet baas db triggers disable 12 todos set_updated
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db triggers drop
Drop a trigger
Usage
arianet baas db triggers drop [project-id] <table> <trigger> [flags]
Aliases: rm
Examples
arianet baas db triggers drop 12 todos set_updated --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas db triggers enable
Enable a trigger
Usage
arianet baas db triggers enable [project-id] <table> <trigger> [flags]
Examples
arianet baas db triggers enable 12 todos set_updated
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db triggers list
List the triggers on a schema's tables
Usage
arianet baas db triggers list [project-id] [flags]
Aliases: ls
Examples
arianet baas db triggers list 12 --schema public
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--schema | string | schema (default public) |
Inherited flags: --region (from arianet baas)
arianet baas db views
List, create, refresh or drop views and materialized views
Usage
arianet baas db views <command>
Aliases: view
Inherited flags: --region (from arianet baas)
Subcommands
create: Create a view or materialized view from one SELECTdrop: Drop a viewlist: List a schema's viewspreview: Run one SELECT read-only and show its first 20 rows (what a view would show)refresh: Refresh a materialized viewsecurity: Turn a view's security_invoker on or off
arianet baas db views create
Create a view or materialized view from one SELECT
Usage
arianet baas db views create [project-id] <name> [flags]
Examples
arianet baas db views create 12 open_todos --query 'select * from todos where not done' --security-invoker
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--comment | string | view comment | |
--materialized | bool | a materialized view | |
--or-replace | bool | replace a view with the same name | |
--query | string | the SELECT (required) | |
--schema | string | schema (default public) | |
--security-invoker | bool | check the caller's rights (row level security applies) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
--with-data | bool | fill a materialized view now |
Inherited flags: --region (from arianet baas)
arianet baas db views drop
Drop a view
Usage
arianet baas db views drop [project-id] <view> [flags]
Aliases: rm
Examples
arianet baas db views drop 12 open_todos --yes
arianet baas db views drop 12 daily_totals --materialized --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--cascade | bool | also drop what depends on it | |
--materialized | bool | it is a materialized view | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas db views list
List a schema's views
Usage
arianet baas db views list [project-id] [flags]
Aliases: ls
Examples
arianet baas db views list 12 --schema public
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--schema | string | schema (default public) |
Inherited flags: --region (from arianet baas)
arianet baas db views preview
Run one SELECT read-only and show its first 20 rows (what a view would show)
Usage
arianet baas db views preview [project-id] <select> [flags]
Examples
arianet baas db views preview 12 'select * from todos where not done'
Inherited flags: --region (from arianet baas)
arianet baas db views refresh
Refresh a materialized view
Usage
arianet baas db views refresh [project-id] <view> [flags]
Examples
arianet baas db views refresh 12 daily_totals --concurrently
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--concurrently | bool | stay readable meanwhile (needs a unique index) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas db views security
Turn a view's security_invoker on or off
Usage
arianet baas db views security [project-id] <view> [flags]
Examples
arianet baas db views security 12 open_todos --invoker=true
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--invoker | bool | check the caller's rights (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas domains
Serve the project at your own hostname (paid plans)
Usage
arianet baas domains <command>
Aliases: domain
Inherited flags: --region (from arianet baas)
Subcommands
add: Add a custom domain; prints the CNAME and TXT records to createcheck: Check the DNS records now; once both are right the certificate is issuedlist: List the custom domains and the DNS records each needsremove: Remove a custom domain
arianet baas domains add
Add a custom domain; prints the CNAME and TXT records to create
Usage
arianet baas domains add [project-id] <hostname> [flags]
Examples
arianet baas domains add api.example.com
Inherited flags: --region (from arianet baas)
arianet baas domains check
Check the DNS records now; once both are right the certificate is issued
Usage
arianet baas domains check [project-id] <domain-id> [flags]
Examples
arianet baas domains check 7
Inherited flags: --region (from arianet baas)
arianet baas domains list
List the custom domains and the DNS records each needs
Usage
arianet baas domains list [project-id] [flags]
Aliases: ls
Examples
arianet baas domains list 12
Inherited flags: --region (from arianet baas)
arianet baas domains remove
Remove a custom domain
Usage
arianet baas domains remove [project-id] <domain-id> [flags]
Aliases: delete, rm
Examples
arianet baas domains remove 12 7 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas env
Print the URL and anon key your app needs, as .env lines or JSON
Print the project's endpoint and its anon key (revealed, which needs baas:keys:manage and is recorded in your activity log) as ARIANET_BAAS_URL and ARIANET_BAAS_ANON_KEY, plus the same values under the public prefixes of common frameworks:
NEXT_PUBLIC_BAAS_URL / NEXT_PUBLIC_BAAS_ANON_KEY Next.js
VITE_BAAS_URL / VITE_BAAS_ANON_KEY Vite (React, Vue, Svelte)
NUXT_PUBLIC_BAAS_URL / NUXT_PUBLIC_BAAS_ANON_KEY Nuxt
EXPO_PUBLIC_BAAS_URL / EXPO_PUBLIC_BAAS_ANON_KEY Expo
Keep the lines your app reads. If your code expects other names, map them in your .env file, e.g. MY_APP_API_URL=$NEXT_PUBLIC_BAAS_URL, or pass the values to your client library's constructor from these variables. The anon key is safe in browser code (row level security decides what it can read); never put the service or secret key there.
Usage
arianet baas env [project-id] [flags]
Examples
arianet baas env 12 > .env.local
arianet baas env 12 --format json
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--format | string | dotenv or json (default dotenv; json with -o json) |
Inherited flags: --region (from arianet baas)
arianet baas functions
Write, run, deploy and manage the project's edge functions
Edge functions are TypeScript or JavaScript handlers (Deno.serve) that run next to the project and answer at https://<ref>.baas.arianet.app/functions/v1/<name>. The code lives in arianet/functions/<name>/index.ts; folders whose names start with _ (e.g. _shared/) hold code every function may import and are deployed with each of them.
By default a call needs a project JWT in Authorization: Bearer (the anon key, the service key or a signed-in user's token); deploy --no-verify-jwt lets anyone call it (webhooks). Every function gets ARIANET_BAAS_URL, ARIANET_BAAS_ANON_KEY, ARIANET_BAAS_DB_URL and the project's secrets as environment variables. Limits (functions, bundle size, invocations a month) come from the plan.
Deploy, delete, download and secrets changes need the baas:functions:manage scope.
Usage
arianet baas functions <command>
Aliases: fn, function
Examples
arianet baas functions new hello-world
arianet baas functions serve hello-world
arianet baas functions deploy 12 hello-world
arianet baas functions secrets set 12 STRIPE_KEY=sk_live_123
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--dir | string | arianet/functions | the folder holding the function folders |
Inherited flags: --region (from arianet baas)
Subcommands
activate: Make an earlier version active againconfig: Settings of every function of the projectdelete: Delete a function and all its versionsdeploy: Bundle and deploy functions (every function folder when no name is given)download: Download a deployed function's code into arianet/functions/get: Show one function and its latest versionsinvoke: Call a deployed function as anon, service_role or nobody and print its answerlist: List the project's functions with the plan's limits and this month's uselogs: Show the function's invocations and console lines (7 days), newest firstnew: Create arianet/functions/<name>/index.ts from a templatesecrets: Manage the secrets every function of the project reads as environment variablesserve: Run a function on your machine with Deno, restarting on every changesource: List a version's text files, or print one with --filestats: Show invocations, errors and the average duration (24h or 7d)update: Change a function's settings (who may call it)
arianet baas functions activate
Make an earlier version active again
Usage
arianet baas functions activate [project-id] <name> <version> [flags]
Aliases: rollback
Examples
arianet baas functions activate 12 hello-world 3 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions config
Settings of every function of the project
Usage
arianet baas functions config <command>
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
Subcommands
arianet baas functions config get
Show the functions settings
Usage
arianet baas functions config get [project-id] [flags]
Aliases: show
Examples
arianet baas functions config get 12
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions config set
Change the functions settings
Usage
arianet baas functions config set [project-id] [flags]
Examples
arianet baas functions config set 12 --expose-service-key=false
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--expose-service-key | bool | functions get the service key as an environment variable (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions delete
Delete a function and all its versions
Usage
arianet baas functions delete [project-id] <name> [flags]
Aliases: rm
Examples
arianet baas functions delete 12 hello-world --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions deploy
Bundle and deploy functions (every function folder when no name is given)
Zip arianet/functions/<name>/ (at <name>/...) together with every folder whose name starts with _ (shared code, e.g. _shared/), and deploy it as the function's new active version. The entrypoint is <name>/index.ts, or index.js, index.mjs, index.tsx or index.jsx. Dotfiles, dot folders and node_modules are left out. A new function needs a JWT by default; --no-verify-jwt lets anyone call it (webhooks), --verify-jwt turns the check back on. Without either flag an existing function keeps its setting. Needs the baas:functions:manage scope.
Usage
arianet baas functions deploy [project-id] [name...] [flags]
Examples
arianet baas functions deploy 12 hello-world
arianet baas functions deploy 12 stripe-webhook --no-verify-jwt
arianet baas functions deploy 12
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--no-verify-jwt | bool | let anyone call the function, without a JWT | |
--verify-jwt | bool | require a project JWT again |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions download
Download a deployed function's code into arianet/functions/
Download the bundle of the active version (or --version) and unpack it into the functions folder: <name>/... and the shared _ folders it was deployed with. Existing files are not overwritten unless --force. Needs the baas:functions:manage scope.
Usage
arianet baas functions download [project-id] <name> [flags]
Examples
arianet baas functions download 12 hello-world
arianet baas functions download 12 hello-world --version 2 --force
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--force | bool | overwrite files that exist | |
--version | int | this version instead of the active one |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions get
Show one function and its latest versions
Usage
arianet baas functions get [project-id] <name> [flags]
Aliases: show
Examples
arianet baas functions get 12 hello-world
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions invoke
Call a deployed function as anon, service_role or nobody and print its answer
Usage
arianet baas functions invoke [project-id] <name> [flags]
Examples
arianet baas functions invoke 12 hello-world --body '{"name":"Ana"}'
arianet baas functions invoke 12 report --method GET --path /daily --role service_role
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--body | string | the request body | |
--body-file | string | read the request body from this file (- for standard input) | |
--header | stringArray | a request header as "Name: value" (repeatable) | |
--method | string | HTTP method (default POST) | |
--path | string | path after the function's URL, with a query if any | |
--role | string | call as anon (default), service_role or none (no Authorization) |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions list
List the project's functions with the plan's limits and this month's use
Usage
arianet baas functions list [project-id] [flags]
Aliases: ls
Examples
arianet baas functions list 12
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions logs
Show the function's invocations and console lines (7 days), newest first
Usage
arianet baas functions logs [project-id] <name> [flags]
Examples
arianet baas functions logs 12 hello-world --kind invocation --limit 50
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--before | string | the next page: entries before this ID | |
--kind | string | only log or invocation | |
--limit | string | at most this many |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions new
Create arianet/functions/<name>/index.ts from a template
Usage
arianet baas functions new <name> [flags]
Aliases: create
Examples
arianet baas functions new hello-world
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions secrets
Manage the secrets every function of the project reads as environment variables
Usage
arianet baas functions secrets <command>
Aliases: secret
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
Subcommands
list: List the secrets' names and digests (values are never shown)set: Create or replace secrets (functions read them as environment variables)unset: Delete secrets
arianet baas functions secrets list
List the secrets' names and digests (values are never shown)
Usage
arianet baas functions secrets list [project-id] [flags]
Aliases: ls
Examples
arianet baas functions secrets list 12
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions secrets set
Create or replace secrets (functions read them as environment variables)
Create or replace secrets: give NAME=VALUE pairs, an --env-file of NAME=VALUE lines, or both (the arguments win). Names are letters, digits and , not starting with a digit or with ARIANET; a value is at most 64 KiB. Running functions see the change within about 30 seconds. Needs the baas:functions:manage scope.
Usage
arianet baas functions secrets set [project-id] [NAME=VALUE...] [flags]
Examples
arianet baas functions secrets set 12 STRIPE_KEY=sk_live_123 MAIL_FROM=noreply@example.com
arianet baas functions secrets set 12 --env-file arianet/functions/.env
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--env-file | string | read NAME=VALUE lines from this file |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions secrets unset
Delete secrets
Usage
arianet baas functions secrets unset [project-id] <NAME>... [flags]
Aliases: delete, rm
Examples
arianet baas functions secrets unset 12 STRIPE_KEY --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions serve
Run a function on your machine with Deno, restarting on every change
Run arianet/functions/<name>/index.ts with deno run --watch (network, environment and file read access). The name may be left out when there is only one function. The environment is yours plus --env-file (default arianet/functions/.env when it exists; put ARIANET_BAAS_URL, ARIANET_BAAS_ANON_KEY and your secrets there) plus PORT and DENO_SERVE_PORT. Deno.serve listens on port 8000 unless the code passes another port. No platform features (JWT check, logs) run locally.
Usage
arianet baas functions serve [name] [flags]
Examples
arianet baas functions serve hello-world
curl -X POST http://localhost:8000 -H 'Content-Type: application/json' -d '{"name":"Ana"}'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--env-file | string | environment variables for the run (default: arianet/functions/.env when it exists) | |
--port | int | 8000 | the port to announce and pass as PORT |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions source
List a version's text files, or print one with --file
Usage
arianet baas functions source [project-id] <name> [flags]
Examples
arianet baas functions source 12 hello-world
arianet baas functions source 12 hello-world --version 3 --file index.ts
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--file | string | print this file's text | |
--version | string | the version (default: the active one) |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions stats
Show invocations, errors and the average duration (24h or 7d)
Usage
arianet baas functions stats [project-id] <name> [flags]
Examples
arianet baas functions stats 12 hello-world --range 7d
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--range | string | 24h (default) or 7d |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas functions update
Change a function's settings (who may call it)
Usage
arianet baas functions update [project-id] <name> [flags]
Examples
arianet baas functions update 12 stripe-webhook --verify-jwt=false
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--verify-jwt | bool | a call needs a project JWT (required) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --dir (from arianet baas functions), --region (from arianet baas)
arianet baas gen
Generate code from the project's database
Usage
arianet baas gen <command>
Inherited flags: --region (from arianet baas)
Subcommands
types: Generate TypeScript types of the database (Tables, Views, Functions, Enums)
arianet baas gen types
Generate TypeScript types of the database (Tables, Views, Functions, Enums)
Generate a TypeScript Database type of the project's schemas: per schema, Tables with Row (what a select returns), Insert and Update, their Relationships, Views, Functions (Args, Returns), Enums and CompositeTypes, plus the Tables<>, TablesInsert<>, TablesUpdate<> and Enums<> helpers. Pass it to a typed client library as its database type parameter.
In a region without the types endpoint the types are generated here from the table introspection (Tables and Views only).
Usage
arianet baas gen types [project-id] [flags]
Examples
arianet baas gen types --lang typescript --file src/database.types.ts
arianet baas gen types 12 --schema public,app > types.ts
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--file | string | write to this file instead of standard output | |
--lang | string | typescript | output language: typescript (or ts) |
--schema | stringSlice | [public] | schemas to include (repeatable or comma separated) |
Inherited flags: --region (from arianet baas)
arianet baas git
Deploy from a GitHub or GitLab repository: connect, deployments, logs, previews, promote
Connect the project to a GitHub or GitLab repository and it deploys itself: every push to the production branch builds the site and applies the backend kept in the repository, and every other branch and pull/merge request gets a preview at its own hostname that never touches production. Commit statuses go back to the repository.
<root>/package.json ... the site (built when the connection has one)
<root>/arianet/config.toml auth settings, storage buckets, Cron jobs, function settings
<root>/arianet/migrations/*.sql applied in name order (the same history as db push)
<root>/arianet/functions/<name>/ one directory per function, _shared/ for common code
arianet baas git connect --provider github --repo acme/shop --token-file token.txt --site shop
git push # production deploys
arianet baas git deployments
arianet baas git logs <id> --follow
To apply the same backend from your machine without git, run arianet baas push. Scopes: reads need baas:projects:read; connect, update, disconnect, deploy, redeploy, cancel, promote and previews rm need baas:git:manage.
Usage
arianet baas git <command>
Inherited flags: --region (from arianet baas)
Subcommands
cancel: Cancel a queued or running deploymentconnect: Connect a GitHub or GitLab repository: pushes deploy the projectdeploy: Deploy a branch's head now (default: the production branch)deployment: Show one deployment with what each step diddeployments: List deployments from git, newest firstdisconnect: Disconnect the repository: its webhook is removed, queued deployments canceled, previews removedlogs: Print a deployment's log: the pipeline's steps and the build's outputpreviews: List the previews: one hostname per branch or pull/merge request (rm is a subcommand)promote: Make a ready preview production (reuses its build, applies its backend)redeploy: Deploy the same commit again (a new deployment)status: Show the connected repository, its webhook and this month's build minutesupdate: Change the connection: branch, paths, site build settings, previews or the token
arianet baas git cancel
Cancel a queued or running deployment
A queued deployment stops at once, a running one at its next step (its build is stopped); the project keeps what it had. Needs the baas:git:manage scope.
Usage
arianet baas git cancel [project-id] <deployment-id> [flags]
Examples
arianet baas git cancel 31
arianet baas git cancel 12 31 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas git connect
Connect a GitHub or GitLab repository: pushes deploy the project
Connect the project to one repository. The token is checked against the repository and the production branch, a webhook (push and pull/merge request events) is registered on the repository, and from then on every push to the production branch deploys production and every other branch and pull/merge request a preview. The token is stored sealed and never shown again (only its last characters).
The repository token:
GitHub a fine-grained personal access token for this repository only, with
Contents: read, Webhooks: read and write, Commit statuses: read and write.
GitLab a project access token with the scopes api and read_repository, role Maintainer.
Give it with --token-file <file> or --token-file - (stdin); on a terminal without either you are asked for it. --token <value> works too but stays in your shell's history.
Without --site no site is built (the backend only: migrations, config, functions). Deploys act with your permissions on the project at the time you connect. Needs the baas:git:manage scope.
Usage
arianet baas git connect [project-id] --provider github|gitlab --repo <owner/name> --token-file <file> [flags]
Examples
arianet baas git connect --provider github --repo acme/shop --token-file ~/.secrets/shop-token --site shop
pass show shop/gitlab | arianet baas git connect 12 --provider gitlab --repo acme/web/shop --token-file - \
--production-branch main --site shop --build-command "pnpm build" --output-dir dist
arianet baas git connect --provider github --repo acme/api --token-file token.txt --previews=false
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--base-url | string | the git host's API (empty: https://api.github.com or https://gitlab.com; GitHub Enterprise .../api/v3 or a self-hosted GitLab) | |
--build-command | string | the site's build command (empty: <package manager> run build when package.json has one) | |
--config-path | string | the config file (default arianet/config.toml) | |
--env | stringArray | a build environment variable NAME=VALUE, not secret (repeatable; replaces the list) | |
--functions-dir | string | the functions directory (default arianet/functions) | |
--install-command | string | the site's install command (empty: from the lock file, e.g. npm ci) | |
--migrations-dir | string | the migrations directory (default arianet/migrations) | |
--no-site | bool | build no site: deploy the backend only | |
--output-dir | string | the build's output directory (empty: the first of dist, build, out, public) | |
--package-manager | string | auto, npm, pnpm or yarn (auto: from the lock file) | |
--previews | bool | true | other branches and pull/merge requests get preview deployments |
--production-branch | string | pushes to this branch deploy production (empty: the repository's default branch) | |
--provider | string | github or gitlab (required) | |
--repo | string | owner/name (GitHub) or group[/subgroup]/name (GitLab) | |
--root-dir | string | the app's directory in the repository (a monorepo); every path below is relative to it | |
--site | string | build a site and deploy it to this site (made when missing) | |
--token | string | the repository token as a value (stays in your shell's history: prefer --token-file) | |
--token-file | string | read the repository token from this file (- for stdin) |
Inherited flags: --region (from arianet baas)
arianet baas git deploy
Deploy a branch's head now (default: the production branch)
Queue a deployment of a branch's latest commit: the production branch deploys production, any other branch a preview (previews on). --follow prints the log as it is written and exits non-zero when the deployment fails. Needs the baas:git:manage scope.
Usage
arianet baas git deploy [project-id] [--branch <name>] [flags]
Examples
arianet baas git deploy
arianet baas git deploy --branch feature/checkout --follow
arianet baas git deploy 12 -o json
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--branch | string | the branch to deploy (default: the production branch) | |
-f, --follow | bool | print the log until the deployment ends |
Inherited flags: --region (from arianet baas)
arianet baas git deployment
Show one deployment with what each step did
Usage
arianet baas git deployment [project-id] <deployment-id> [flags]
Aliases: get-deployment
Examples
arianet baas git deployment 31
arianet baas git deployment 12 31 -o json
Inherited flags: --region (from arianet baas)
arianet baas git deployments
List deployments from git, newest first
Usage
arianet baas git deployments [project-id] [flags]
Aliases: deploys
Examples
arianet baas git deployments
arianet baas git deployments 12 --kind preview --status failed --limit 20
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--before | string | the next page: deployments older than this ID | |
--branch | string | only this branch | |
--kind | string | only production or preview | |
--limit | string | at most this many (1-100) | |
--status | string | only queued, building, deploying, ready, failed, canceled or superseded |
Inherited flags: --region (from arianet baas)
arianet baas git disconnect
Disconnect the repository: its webhook is removed, queued deployments canceled, previews removed
Usage
arianet baas git disconnect [project-id] [flags]
Examples
arianet baas git disconnect
arianet baas git disconnect 12 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas git logs
Print a deployment's log: the pipeline's steps and the build's output
Print the deployment's log (credentials are removed by the service). --follow keeps reading until the deployment ends and exits non-zero when it failed.
Usage
arianet baas git logs [project-id] <deployment-id> [flags]
Examples
arianet baas git logs 31
arianet baas git logs 12 31 --follow
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-f, --follow | bool | keep printing until the deployment ends |
Inherited flags: --region (from arianet baas)
arianet baas git previews
List the previews: one hostname per branch or pull/merge request (rm is a subcommand)
Usage
arianet baas git previews [project-id] [flags]
Aliases: preview
Examples
arianet baas git previews
arianet baas git previews 12 -o json
Inherited flags: --region (from arianet baas)
Subcommands
rm: Remove a preview (the branch's next push makes it again)
arianet baas git previews rm
Remove a preview (the branch's next push makes it again)
Usage
arianet baas git previews rm [project-id] <alias> [flags]
Aliases: delete
Examples
arianet baas git previews rm feature-checkout
arianet baas git previews rm 12 feature-checkout --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas git promote
Make a ready preview production (reuses its build, applies its backend)
Deploy a ready preview's commit to production: its site build is reused and its backend (migrations, config, functions) applied to the project. Needs the baas:git:manage scope.
Usage
arianet baas git promote [project-id] <deployment-id> [flags]
Examples
arianet baas git promote 34
arianet baas git promote 12 34 --yes --follow
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-f, --follow | bool | print the new deployment's log until it ends | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas git redeploy
Deploy the same commit again (a new deployment)
Deploy a deployment's commit again as a new deployment of the same kind. Needs the baas:git:manage scope.
Usage
arianet baas git redeploy [project-id] <deployment-id> [flags]
Examples
arianet baas git redeploy 31
arianet baas git redeploy 12 31 --follow
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-f, --follow | bool | print the new deployment's log until it ends |
Inherited flags: --region (from arianet baas)
arianet baas git status
Show the connected repository, its webhook and this month's build minutes
Usage
arianet baas git status [project-id] [flags]
Aliases: get, show
Examples
arianet baas git status
arianet baas git status 12 -o json
Inherited flags: --region (from arianet baas)
arianet baas git update
Change the connection: branch, paths, site build settings, previews or the token
Change only the settings given; the rest stays. A new repository or host needs a new token (--token-file) and moves the webhook; a new token alone keeps it. The site's build flags change the connected site's settings (--env replaces the whole list); --no-site stops building a site. Needs the baas:git:manage scope.
Usage
arianet baas git update [project-id] [flags]
Examples
arianet baas git update --production-branch release
arianet baas git update 12 --build-command "npm run build:prod" --env API_BASE=https://api.example.com
arianet baas git update --token-file new-token.txt
arianet baas git update --previews=false
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--base-url | string | the git host's API (empty: https://api.github.com or https://gitlab.com; GitHub Enterprise .../api/v3 or a self-hosted GitLab) | |
--build-command | string | the site's build command (empty: <package manager> run build when package.json has one) | |
--config-path | string | the config file (default arianet/config.toml) | |
--env | stringArray | a build environment variable NAME=VALUE, not secret (repeatable; replaces the list) | |
--functions-dir | string | the functions directory (default arianet/functions) | |
--install-command | string | the site's install command (empty: from the lock file, e.g. npm ci) | |
--migrations-dir | string | the migrations directory (default arianet/migrations) | |
--no-site | bool | build no site: deploy the backend only | |
--output-dir | string | the build's output directory (empty: the first of dist, build, out, public) | |
--package-manager | string | auto, npm, pnpm or yarn (auto: from the lock file) | |
--previews | bool | true | other branches and pull/merge requests get preview deployments |
--production-branch | string | pushes to this branch deploy production (empty: the repository's default branch) | |
--provider | string | github or gitlab | |
--repo | string | owner/name (GitHub) or group[/subgroup]/name (GitLab) | |
--root-dir | string | the app's directory in the repository (a monorepo); every path below is relative to it | |
--site | string | build a site and deploy it to this site (made when missing) | |
--token | string | the repository token as a value (stays in your shell's history: prefer --token-file) | |
--token-file | string | read the repository token from this file (- for stdin) |
Inherited flags: --region (from arianet baas)
arianet baas keys
Show, reveal and rotate a project's keys
Usage
arianet baas keys <command>
Aliases: key
Inherited flags: --region (from arianet baas)
Subcommands
list: List the project's keys (previews only)reveal: Show one key (anon, service, publishable, secret, database); recorded in your activity logrotate: Issue new anon and service keys; the previous ones keep working for the overlap
arianet baas keys list
List the project's keys (previews only)
Usage
arianet baas keys list [project-id] [flags]
Aliases: ls
Examples
arianet baas keys list 12
Inherited flags: --region (from arianet baas)
arianet baas keys reveal
Show one key (anon, service, publishable, secret, database); recorded in your activity log
Usage
arianet baas keys reveal [project-id] <kind> [flags]
Examples
arianet baas keys reveal 12 anon
arianet baas keys reveal 12 database -o json
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas keys rotate
Issue new anon and service keys; the previous ones keep working for the overlap
Usage
arianet baas keys rotate [project-id] [flags]
Examples
arianet baas keys rotate 12 --wait
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas link
Link this directory to a project, so the project ID can be left out here
Link the current directory to a project: arianet/.baas/project.json records its ID, ref, name, endpoint and region. Afterwards every baas command run in this directory that takes the project ID as its first argument uses the linked project when the ID is left out; an explicit ID still wins. Without an argument, your only project is linked (or the list is shown). The file holds no secret and can be committed.
Usage
arianet baas link [project-id|ref] [flags]
Examples
arianet baas link 12
arianet baas link abcdefghij0123456789
arianet baas db push # the linked project
Inherited flags: --region (from arianet baas)
arianet baas logs
Show the project's request logs (last 7 days) and SQL editor runs
Usage
arianet baas logs [project-id] [flags]
Examples
arianet baas logs 12 --since 1h
arianet baas logs 12 --source auth --status 4 --limit 50
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--before | int64 | the next page: entries before this one (printed under the table) | |
--level | string | only this level: info, warning or error | |
--limit | int | at most this many entries (1-500) | |
--method | string | only this HTTP method | |
--search | string | only paths containing this | |
--since | duration | only entries newer than this, e.g. 30m or 24h | |
--source | string | only this component: gateway, auth, storage, rest, sql, functions or realtime | |
--status | int | only this status class: 2, 3, 4 or 5 | |
--until | string | only entries older than this time (RFC 3339) |
Inherited flags: --region (from arianet baas)
Subcommands
arianet baas logs get
Show one log record
Usage
arianet baas logs get [project-id] <log-id> [flags]
Aliases: show
Examples
arianet baas logs get 12 9f2b7c
Inherited flags: --region (from arianet baas)
arianet baas logs queries
Saved logs explorer queries
Usage
arianet baas logs queries <command>
Aliases: query
Inherited flags: --region (from arianet baas)
Subcommands
arianet baas logs queries delete
Delete a saved query
Usage
arianet baas logs queries delete [project-id] <query-id> [flags]
Aliases: rm
Examples
arianet baas logs queries delete 12 4 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas logs queries list
List the saved queries
Usage
arianet baas logs queries list [project-id] [flags]
Aliases: ls
Examples
arianet baas logs queries list 12
Inherited flags: --region (from arianet baas)
arianet baas logs queries save
Save a query
Usage
arianet baas logs queries save [project-id] [flags]
Aliases: create
Examples
arianet baas logs queries save 12 --name "auth errors" --filters '{"source":"auth","status":"5"}'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--filters | string | the filters as a JSON object (source, level, method, q, status...) | |
--name | string | query name (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas migration
Create migration files and compare them with what the project applied
Usage
arianet baas migration <command>
Aliases: migrations
Inherited flags: --region (from arianet baas)
Subcommands
list: List the local migration files and the project's history: applied, pending, changed or remote onlynew: Create an empty migration file named <UTC timestamp>_<name>.sql
arianet baas migration list
List the local migration files and the project's history: applied, pending, changed or remote only
Usage
arianet baas migration list [project-id] [flags]
Aliases: ls
Examples
arianet baas migration list
arianet baas migration list 12 --dir ./db/migrations
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--dir | string | arianet/migrations | directory of the migration files |
Inherited flags: --region (from arianet baas)
arianet baas migration new
Create an empty migration file named <UTC timestamp>_<name>.sql
Create arianet/migrations/<yyyymmddhhmmss>_<name>.sql (UTC time; the name in snake_case) with a header comment. Write the SQL into it and apply it with arianet baas db push.
Usage
arianet baas migration new <name> [flags]
Examples
arianet baas migration new create_todos
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--dir | string | arianet/migrations | directory of the migration files |
Inherited flags: --region (from arianet baas)
arianet baas plans
List the plans and their limits
Usage
arianet baas plans [flags]
Examples
arianet baas plans
arianet baas plans -o json
Inherited flags: --region (from arianet baas)
arianet baas projects
Create and manage projects
Usage
arianet baas projects <command>
Aliases: project
Inherited flags: --region (from arianet baas)
Subcommands
actions: List the project's operationsconnect: Show the endpoint, key previews and the direct database connectioncreate: Create a project (billed from the moment its database exists)delete: Delete a project and all its dataget: Show one projectlist: List your projectsmove: Move a project to another workspace of your account (0: none)pause: Pause a project: its database refuses connections, its data is keptpause-schedule: Show when an idle project pausesplan: Move a project to another plan (billed from now)rename: Rename a projectresume: Resume a paused project
arianet baas projects actions
List the project's operations
Usage
arianet baas projects actions [project-id] [flags]
Examples
arianet baas projects actions 12 --limit 10
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--limit | string | at most this many |
Inherited flags: --region (from arianet baas)
arianet baas projects connect
Show the endpoint, key previews and the direct database connection
Usage
arianet baas projects connect [project-id] [flags]
Examples
arianet baas projects connect 12
Inherited flags: --region (from arianet baas)
arianet baas projects create
Create a project (billed from the moment its database exists)
Usage
arianet baas projects create [flags]
Examples
arianet baas projects create --name shop --plan free --wait
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | project name: 1-64 letters, digits, spaces, dots, dashes or underscores (required) | |
--plan | string | plan code (arianet baas plans) (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
--workspace | int64 | workspace ID (optional) |
Inherited flags: --region (from arianet baas)
arianet baas projects delete
Delete a project and all its data
Usage
arianet baas projects delete [project-id] [flags]
Aliases: rm
Examples
arianet baas projects delete 12 --confirm abcdefghij0123456789
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--confirm | string | the project's ref, typed to confirm (arianet baas projects get) (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas projects get
Show one project
Usage
arianet baas projects get [project-id] [flags]
Aliases: show
Examples
arianet baas projects get 12
Inherited flags: --region (from arianet baas)
arianet baas projects list
List your projects
Usage
arianet baas projects list [flags]
Aliases: ls
Examples
arianet baas projects list
arianet baas projects list -o json
Inherited flags: --region (from arianet baas)
arianet baas projects move
Move a project to another workspace of your account (0: none)
Usage
arianet baas projects move [project-id] [flags]
Examples
arianet baas projects move 12 --workspace 3
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
--workspace | int64 | the workspace ID (0: no workspace) (required) |
Inherited flags: --region (from arianet baas)
arianet baas projects pause
Pause a project: its database refuses connections, its data is kept
Usage
arianet baas projects pause [project-id] [flags]
Examples
arianet baas projects pause 12 --wait
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas projects pause-schedule
Show when an idle project pauses
Usage
arianet baas projects pause-schedule [project-id] [flags]
Aliases: idle
Examples
arianet baas projects pause-schedule 12
Inherited flags: --region (from arianet baas)
arianet baas projects plan
Move a project to another plan (billed from now)
Usage
arianet baas projects plan [project-id] <plan-code> [flags]
Examples
arianet baas projects plan 12 pro
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas projects rename
Rename a project
Usage
arianet baas projects rename [project-id] [flags]
Examples
arianet baas projects rename 12 --name shop-staging
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | new name (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas projects resume
Resume a paused project
Usage
arianet baas projects resume [project-id] [flags]
Examples
arianet baas projects resume 12 --wait
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas push
Apply the backend of a directory: migrations, config.toml and functions (what a git deploy does)
Apply the backend kept in a directory to the project, in the order a production deployment from git applies it:
1. arianet/migrations/*.sql the files not applied yet, in name order, in one transaction (db push)
2. arianet/config.toml every setting it names is compared with the project and only the
differences are applied; nothing it does not name is changed or deleted
3. arianet/functions/<name>/ every function folder deployed (functions deploy), with the file's
[functions.<name>] verify_jwt and entrypoint
Everything is checked before anything is applied: the config file is parsed and the function bundles are built first. The site is not part of push: deploy it with arianet baas sites deploy.
config.toml supports the same subset as git deploys:
[auth] site_url, redirect_urls, email_enabled, phone_enabled,
anonymous_enabled, disable_signup
[auth.providers.<name>] enabled, client_id (secrets never go in the file)
[storage.buckets.<name>] public, file_size_limit, allowed_mime_types
[cron.<name>] schedule, enabled, and sql = "..." or http = {url, method, headers,
body, timeout_ms}
[functions.<name>] verify_jwt, entrypoint
An unknown key is refused. The differences are computed and applied here, through the same
requests as auth settings set, storage buckets create/update and cron create/update. Unlike a
git deploy, a failure part way does not undo the steps before it (migrations are still one
transaction).
Scopes: baas:sql:execute (migrations, Cron), baas:projects:manage (auth settings), baas:storage:manage (buckets), baas:functions:manage (functions).
Usage
arianet baas push [project-id] [flags]
Examples
arianet baas push --dry-run # what would change
arianet baas push
arianet baas push 12 --dir apps/shop --skip-functions
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--config | string | arianet/config.toml | the config file |
--dir | string | . | the app's directory (the paths below are relative to it) |
--dry-run | bool | show what would change; change nothing | |
--functions-dir | string | arianet/functions | the functions directory |
--migrations-dir | string | arianet/migrations | the migrations directory |
--skip-config | bool | leave config.toml out | |
--skip-functions | bool | leave the functions out | |
--skip-migrations | bool | leave the migrations out |
Inherited flags: --region (from arianet baas)
arianet baas queues
Message queues in the database
Usage
arianet baas queues <command>
Aliases: queue
Inherited flags: --region (from arianet baas)
Subcommands
create: Create a queuedelete: Delete a queue and its messagesdelete-message: Delete one messagelist: List the queuesmessages: Show a queue's messages (or its archive)purge: Delete every message of a queue (the archive stays)send: Send a message (a JSON value)
arianet baas queues create
Create a queue
Usage
arianet baas queues create [project-id] <name> [flags]
Examples
arianet baas queues create 12 emails
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas queues delete
Delete a queue and its messages
Usage
arianet baas queues delete [project-id] <queue> [flags]
Aliases: drop, rm
Examples
arianet baas queues delete 12 emails --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas queues delete-message
Delete one message
Usage
arianet baas queues delete-message [project-id] <queue> <message-id> [flags]
Examples
arianet baas queues delete-message 12 emails 41 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas queues list
List the queues
Usage
arianet baas queues list [project-id] [flags]
Aliases: ls
Examples
arianet baas queues list 12
Inherited flags: --region (from arianet baas)
arianet baas queues messages
Show a queue's messages (or its archive)
Usage
arianet baas queues messages [project-id] <queue> [flags]
Aliases: read
Examples
arianet baas queues messages 12 emails --limit 20
arianet baas queues messages 12 emails --archived
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--archived | bool | show the archive instead | |
--limit | string | at most this many messages |
Inherited flags: --region (from arianet baas)
arianet baas queues purge
Delete every message of a queue (the archive stays)
Usage
arianet baas queues purge [project-id] <queue> [flags]
Examples
arianet baas queues purge 12 emails --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas queues send
Send a message (a JSON value)
Usage
arianet baas queues send [project-id] <queue> [flags]
Examples
arianet baas queues send 12 emails --message '{"to":"ana@example.com"}' --delay 60
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--delay | int64 | seconds before it can be read | |
--message | string | the message as JSON (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas realtime
The realtime endpoint and the tables whose changes it sends
Usage
arianet baas realtime <command>
Inherited flags: --region (from arianet baas)
Subcommands
disable: Stop sending a table's changesenable: Send a table's changes to realtime subscribers (Postgres Changes)info: Show the realtime URLs, limits and the tables enabled
arianet baas realtime disable
Stop sending a table's changes
Usage
arianet baas realtime disable [project-id] <table> [flags]
Examples
arianet baas realtime disable 12 todos
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas realtime enable
Send a table's changes to realtime subscribers (Postgres Changes)
Usage
arianet baas realtime enable [project-id] <table> [flags]
Examples
arianet baas realtime enable 12 todos --old-records
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--old-records | bool | include the old row in updates and deletes (REPLICA IDENTITY FULL) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas realtime info
Show the realtime URLs, limits and the tables enabled
Usage
arianet baas realtime info [project-id] [flags]
Aliases: get, show
Examples
arianet baas realtime info 12
Inherited flags: --region (from arianet baas)
arianet baas reports
Show the API, auth, storage and database report over a range
Usage
arianet baas reports [project-id] [flags]
Aliases: report
Examples
arianet baas reports 12 --range 7d
arianet baas reports 12 -o json
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--range | string | 1h, 24h (default), 7d or 30d |
Inherited flags: --region (from arianet baas)
arianet baas sites
Host static and single-page sites: deploy a build directory, roll back, custom domains
A project's sites serve static files and single-page apps (a build output such as dist/, build/ or out/) at https://<site>.<sites domain> and at custom domains, next to the project's API. Every deployment is kept unchanged; one is live, and rollback makes an earlier one live again at once.
arianet baas sites deploy ./dist --site shop --create
arianet baas sites rollback --site shop
deploy packs the directory's regular files (symbolic links are skipped with a warning) into a tar.gz, refuses it locally when it passes the plan's files or bytes, uploads it and makes it live. Paths listed in .arianetignore (one glob a line, # comments, dir/ for directories, /path from the directory's root) are left out, as are .git and .DS_Store.
Usage
arianet baas sites <command>
Aliases: site
Inherited flags: --region (from arianet baas)
Subcommands
create: Create a site (its hostname is <name>.<sites domain>)delete: Delete a site, its deployments and its custom domainsdeploy: Upload a directory as a new deployment of a site and make it livedeployments: List a site's deployments, newest first (get and delete are subcommands)domains: Serve a site at your own hostnameget: Show a site with its deployments and domainslist: List the project's sites with the plan's limitsrollback: Make an earlier deployment live (default: the one before the live one)update: Rename a site or change its settings
arianet baas sites create
Create a site (its hostname is <name>.<sites domain>)
Usage
arianet baas sites create [project-id] [flags]
Examples
arianet baas sites create 12 --name shop --spa-fallback
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--clean-urls | bool | serve /about from /about.html (and redirect /about.html to /about) | |
--header | stringArray | a header rule '<path> <Name>: <value>' (path exact or a prefix ending in *); replaces the site's header rules (repeatable) | |
--name | string | site name: 3-40 lowercase letters, digits or -, unique in the region (required) | |
--redirect | stringArray | a redirect rule '<from> <to> [301|302|307|308]'; replaces the site's redirect rules (repeatable) | |
--spa-fallback | bool | serve /index.html for paths that are not files (single-page apps) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas sites delete
Delete a site, its deployments and its custom domains
Usage
arianet baas sites delete [project-id] <site> [flags]
Aliases: rm
Examples
arianet baas sites delete 12 shop
arianet baas sites delete 12 shop --yes # no question (scripts)
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas sites deploy
Upload a directory as a new deployment of a site and make it live
Usage
arianet baas sites deploy [project-id] <dir> --site <name> [flags]
Examples
npm run build && arianet baas sites deploy ./dist --site shop
arianet baas sites deploy 12 ./out --site docs --create
arianet baas sites deploy ./dist --site shop --no-promote # ready, not live
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--create | bool | create the site first when the project has none of that name | |
--no-promote | bool | make the deployment ready without making it live | |
--site | string | the site to deploy to (required) |
Inherited flags: --region (from arianet baas)
arianet baas sites deployments
List a site's deployments, newest first (get and delete are subcommands)
Usage
arianet baas sites deployments [project-id] [--site <name>] [flags]
Aliases: deployment, deploys
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--site | string | the site (default: the project's only site) |
Inherited flags: --region (from arianet baas)
Subcommands
arianet baas sites deployments delete
Delete a deployment and its files (not the live one)
Usage
arianet baas sites deployments delete [project-id] <deployment-id> [flags]
Aliases: rm
Examples
arianet baas sites deployments delete 12 5 --site shop --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas), --site (from arianet baas sites deployments)
arianet baas sites deployments get
Show one deployment
Usage
arianet baas sites deployments get [project-id] <deployment-id> [flags]
Aliases: show
Examples
arianet baas sites deployments get 12 7 --site shop
Inherited flags: --region (from arianet baas), --site (from arianet baas sites deployments)
arianet baas sites domains
Serve a site at your own hostname
Usage
arianet baas sites domains <command>
Aliases: domain
Inherited flags: --region (from arianet baas)
Subcommands
add: Serve a site at your own hostname; prints the CNAME and TXT records to create
arianet baas sites domains add
Serve a site at your own hostname; prints the CNAME and TXT records to create
Usage
arianet baas sites domains add [project-id] <hostname> --site <name> [flags]
Examples
arianet baas sites domains add www.example.com --site shop
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--site | string | the site the hostname serves (required) |
Inherited flags: --region (from arianet baas)
arianet baas sites get
Show a site with its deployments and domains
Usage
arianet baas sites get [project-id] <site> [flags]
Aliases: show
Examples
arianet baas sites get 12 shop
arianet baas sites get 12 shop -o json
Inherited flags: --region (from arianet baas)
arianet baas sites list
List the project's sites with the plan's limits
Usage
arianet baas sites list [project-id] [flags]
Aliases: ls
Examples
arianet baas sites list 12
arianet baas sites list # in a linked directory
Inherited flags: --region (from arianet baas)
arianet baas sites rollback
Make an earlier deployment live (default: the one before the live one)
Usage
arianet baas sites rollback [project-id] [deployment-id] --site <name> [flags]
Aliases: promote
Examples
arianet baas sites rollback --site shop # the previous ready deployment
arianet baas sites rollback 12 41 --site shop # a given one (also: promote)
In a linked directory (arianet baas link) a single number is the deployment ID.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--site | string | the site (required) |
Inherited flags: --region (from arianet baas)
arianet baas sites update
Rename a site or change its settings
Usage
arianet baas sites update [project-id] <site> [flags]
Examples
arianet baas sites update 12 shop --clean-urls --header '/assets/* Cache-Control: public, max-age=600'
arianet baas sites update 12 shop --name store
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--clean-urls | bool | serve /about from /about.html (and redirect /about.html to /about) | |
--clear-headers | bool | remove every header rule | |
--clear-redirects | bool | remove every redirect rule | |
--header | stringArray | a header rule '<path> <Name>: <value>' (path exact or a prefix ending in *); replaces the site's header rules (repeatable) | |
--name | string | new name (the hostname moves at once; custom domains keep serving it) | |
--redirect | stringArray | a redirect rule '<from> <to> [301|302|307|308]'; replaces the site's redirect rules (repeatable) | |
--spa-fallback | bool | serve /index.html for paths that are not files (single-page apps) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas snippets
SQL snippets saved with the project (the SQL editor's)
Usage
arianet baas snippets <command>
Aliases: snippet
Inherited flags: --region (from arianet baas)
Subcommands
create: Save a SQL snippetdelete: Delete a snippetlist: List the saved snippetsupdate: Change a snippet (give both its name and SQL)
arianet baas snippets create
Save a SQL snippet
Usage
arianet baas snippets create [project-id] [flags]
Examples
arianet baas snippets create 12 --name 'open todos' --query 'select * from todos where not done'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-f, --file | string | read the SQL from this file (- for standard input) | |
--name | string | snippet name (required) | |
--query | string | the SQL (or --file) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas snippets delete
Delete a snippet
Usage
arianet baas snippets delete [project-id] <snippet-id> [flags]
Aliases: rm
Examples
arianet baas snippets delete 12 5 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas snippets list
List the saved snippets
Usage
arianet baas snippets list [project-id] [flags]
Aliases: ls
Examples
arianet baas snippets list 12
Inherited flags: --region (from arianet baas)
arianet baas snippets update
Change a snippet (give both its name and SQL)
Usage
arianet baas snippets update [project-id] <snippet-id> [flags]
Examples
arianet baas snippets update 12 5 --name 'open todos' --file ./open-todos.sql
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-f, --file | string | read the SQL from this file (- for standard input) | |
--name | string | snippet name (required) | |
--query | string | the SQL (or --file) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas sql
Run SQL as the project's owner (one transaction) and print the result
Run SQL as the project's owner: every statement in one transaction (no BEGIN or COMMIT inside), a 15 second statement timeout (the plan's when longer). Prints the rows of the last statement that returned rows (at most 1000) and every statement's command tag. Every run is recorded in your activity log. Needs the baas:sql:execute scope.
Usage
arianet baas sql [project-id] [query] [flags]
Examples
arianet baas sql 12 "select id, title from todos limit 5"
arianet baas sql 12 -f seed.sql
cat report.sql | arianet baas sql 12 -f - --read-only --json
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-f, --file | string | read the SQL from this file (- for standard input) | |
--json | bool | print the service's answer as JSON (same as -o json) | |
--read-only | bool | run in a READ ONLY transaction |
Inherited flags: --region (from arianet baas)
arianet baas storage
Manage the project's buckets, files, storage policies and S3 keys
Usage
arianet baas storage <command>
Inherited flags: --region (from arianet baas)
Subcommands
buckets: List buckets (create and delete are subcommands)copy: Copy an objectdownload: Download an object (to the object's file name, or - for standard output)ls: List a folder of a bucketmove: Move or rename an objectpolicies: Row level security policies of storage: who reads and writes which objectsrm: Delete objectss3-keys: S3 access keys (service level: they bypass the storage policies)sign: Make a time-limited URL of an objectupload: Upload a file (the object path defaults to the file's name)upload-url: Make a signed URL a client can PUT one file touploads: Resumable uploads of large files (storage upload --resumable)
arianet baas storage buckets
List buckets (create and delete are subcommands)
Usage
arianet baas storage buckets [project-id] [flags]
Aliases: bucket
Inherited flags: --region (from arianet baas)
Subcommands
create: Create a bucketdelete: Delete an empty bucketempty: Delete every object of a bucketget: Show one bucketupdate: Change a bucket: public, size limit, allowed types
arianet baas storage buckets create
Create a bucket
Usage
arianet baas storage buckets create [project-id] [flags]
Examples
arianet baas storage buckets create 12 --name avatars --public
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | bucket name (letters, digits, _ . -) (required) | |
--public | bool | objects can be read without a key | |
--size-limit | int64 | largest object in bytes | |
--timeout | duration | 15m0s | how long --wait waits |
--types | stringArray | allowed content types, e.g. image/png,image/jpeg (repeatable, or comma separated) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas storage buckets delete
Delete an empty bucket
Usage
arianet baas storage buckets delete [project-id] <bucket> [flags]
Aliases: rm
Examples
arianet baas storage buckets delete 12 avatars --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas storage buckets empty
Delete every object of a bucket
Usage
arianet baas storage buckets empty [project-id] <bucket> [flags]
Examples
arianet baas storage buckets empty 12 avatars --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas storage buckets get
Show one bucket
Usage
arianet baas storage buckets get [project-id] <bucket> [flags]
Aliases: show
Examples
arianet baas storage buckets get 12 avatars
Inherited flags: --region (from arianet baas)
arianet baas storage buckets update
Change a bucket: public, size limit, allowed types
Usage
arianet baas storage buckets update [project-id] <bucket> [flags]
Examples
arianet baas storage buckets update 12 avatars --public=false --size-limit 5242880 --types image/png,image/jpeg
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--public | bool | objects can be read without a key | |
--size-limit | int64 | largest object in bytes | |
--timeout | duration | 15m0s | how long --wait waits |
--types | stringArray | allowed content types (repeatable, or comma separated) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas storage copy
Copy an object
Usage
arianet baas storage copy [project-id] <bucket> <from-path> <to-path> [flags]
Examples
arianet baas storage copy 12 avatars users/1/me.png backup/me.png
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--to-bucket | string | into this bucket (default: the same; its limits apply) | |
--upsert | bool | replace an object that exists at the destination |
Inherited flags: --region (from arianet baas)
arianet baas storage download
Download an object (to the object's file name, or - for standard output)
Usage
arianet baas storage download [project-id] <bucket> <object-path> [local-file] [flags]
Aliases: get
Examples
arianet baas storage download 12 avatars users/42/me.png
arianet baas storage download 12 exports report.csv - | head
Inherited flags: --region (from arianet baas)
arianet baas storage ls
List a folder of a bucket
Usage
arianet baas storage ls [project-id] <bucket> [prefix] [flags]
Aliases: list
Examples
arianet baas storage ls 12 avatars
arianet baas storage ls 12 avatars users/42/ --search .png
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--limit | int | at most this many entries (1-1000) | |
--offset | int | skip this many entries | |
--search | string | only names containing this |
Inherited flags: --region (from arianet baas)
arianet baas storage move
Move or rename an object
Usage
arianet baas storage move [project-id] <bucket> <from-path> <to-path> [flags]
Examples
arianet baas storage move 12 avatars old.png new.png --to-bucket archive
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--to-bucket | string | into this bucket (default: the same; its limits apply) | |
--upsert | bool | replace an object that exists at the destination |
Inherited flags: --region (from arianet baas)
arianet baas storage policies
Row level security policies of storage: who reads and writes which objects
Usage
arianet baas storage policies <command>
Aliases: policy
Inherited flags: --region (from arianet baas)
Subcommands
create: Create storage policies from a template or your own expressionsdrop: Drop a storage policy (table: objects or buckets)list: List the policies of storage.objects and storage.bucketspreview: Show the SQL a policy request would run (nothing is run)
arianet baas storage policies create
Create storage policies from a template or your own expressions
Usage
arianet baas storage policies create [project-id] [flags]
Examples
arianet baas storage policies create 12 --template public_read --bucket avatars
arianet baas storage policies create 12 --template own_folder --bucket uploads --operation SELECT,INSERT
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--bucket | string | the bucket the policies are for | |
--command | string | custom: ALL, SELECT, INSERT, UPDATE or DELETE | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--name | string | policy name prefix | |
--operation | stringArray | SELECT, INSERT, UPDATE and/or DELETE (default: the template's) (repeatable, or comma separated) | |
--permissive | bool | custom: permissive (default) or restrictive | |
--policy-name | string | custom: the policy's name | |
--role | stringArray | custom: the roles it applies to (repeatable, or comma separated) | |
--table | string | objects (default) or buckets | |
--template | string | public_read, authenticated_read, own_folder, owner_only or custom (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--using | string | custom: USING expression | |
--wait | bool | wait until the operation finishes | |
--with-check | string | custom: WITH CHECK expression |
Inherited flags: --region (from arianet baas)
arianet baas storage policies drop
Drop a storage policy (table: objects or buckets)
Usage
arianet baas storage policies drop [project-id] <table> <policy> [flags]
Aliases: rm
Examples
arianet baas storage policies drop 12 objects 'avatars read' --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas storage policies list
List the policies of storage.objects and storage.buckets
Usage
arianet baas storage policies list [project-id] [flags]
Aliases: ls
Examples
arianet baas storage policies list 12
Inherited flags: --region (from arianet baas)
arianet baas storage policies preview
Show the SQL a policy request would run (nothing is run)
Usage
arianet baas storage policies preview [project-id] [flags]
Examples
arianet baas storage policies preview 12 --template public_read --bucket avatars
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--bucket | string | the bucket the policies are for | |
--command | string | custom: ALL, SELECT, INSERT, UPDATE or DELETE | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--name | string | policy name prefix | |
--operation | stringArray | SELECT, INSERT, UPDATE and/or DELETE (default: the template's) (repeatable, or comma separated) | |
--permissive | bool | custom: permissive (default) or restrictive | |
--policy-name | string | custom: the policy's name | |
--role | stringArray | custom: the roles it applies to (repeatable, or comma separated) | |
--table | string | objects (default) or buckets | |
--template | string | public_read, authenticated_read, own_folder, owner_only or custom (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--using | string | custom: USING expression | |
--wait | bool | wait until the operation finishes | |
--with-check | string | custom: WITH CHECK expression |
Inherited flags: --region (from arianet baas)
arianet baas storage rm
Delete objects
Usage
arianet baas storage rm [project-id] <bucket> <object-path>... [flags]
Aliases: delete
Examples
arianet baas storage rm 12 avatars users/42/me.png users/42/old.png --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas storage s3-keys
S3 access keys (service level: they bypass the storage policies)
Usage
arianet baas storage s3-keys <command>
Aliases: s3, s3-key
Inherited flags: --region (from arianet baas)
Subcommands
create: Create an S3 access key; its secret is shown oncelist: List the S3 access keys (never their secrets) and the S3 endpointrevoke: Revoke an S3 access key at once
arianet baas storage s3-keys create
Create an S3 access key; its secret is shown once
Usage
arianet baas storage s3-keys create [project-id] [flags]
Examples
arianet baas storage s3-keys create 12 --description 'backup job'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | what the key is for | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas storage s3-keys list
List the S3 access keys (never their secrets) and the S3 endpoint
Usage
arianet baas storage s3-keys list [project-id] [flags]
Aliases: ls
Examples
arianet baas storage s3-keys list 12
Inherited flags: --region (from arianet baas)
arianet baas storage s3-keys revoke
Revoke an S3 access key at once
Usage
arianet baas storage s3-keys revoke [project-id] <access-key-id> [flags]
Aliases: delete, rm
Examples
arianet baas storage s3-keys revoke 12 ak_7Q2M9XW4 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas storage sign
Make a time-limited URL of an object
Usage
arianet baas storage sign [project-id] <bucket> <object-path> [flags]
Examples
arianet baas storage sign 12 invoices 2026/11/42.pdf --expires-in 600
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--expires-in | int | seconds the URL works (default: the service's) |
Inherited flags: --region (from arianet baas)
arianet baas storage upload
Upload a file (the object path defaults to the file's name)
Usage
arianet baas storage upload [project-id] <bucket> <local-file> [object-path] [flags]
Aliases: cp, put
Examples
arianet baas storage upload 12 avatars ./me.png users/42/me.png --upsert
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--chunk-size | int64 | 16 | resumable upload chunk in MiB (1-64) |
--content-type | string | content type to store (default: from the file extension) | |
--resumable | bool | send a large file in chunks; an interrupted upload continues with --resume | |
--resume | string | continue the resumable upload with this ID (printed when it started) | |
--upsert | bool | replace an object that exists |
Inherited flags: --region (from arianet baas)
arianet baas storage upload-url
Make a signed URL a client can PUT one file to
Usage
arianet baas storage upload-url [project-id] <bucket> <object-path> [flags]
Examples
arianet baas storage upload-url 12 avatars users/42/me.png
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--upsert | bool | the upload may replace an object that exists |
Inherited flags: --region (from arianet baas)
arianet baas storage uploads
Resumable uploads of large files (storage upload --resumable)
Usage
arianet baas storage uploads <command>
Aliases: upload-session
Inherited flags: --region (from arianet baas)
Subcommands
arianet baas storage uploads cancel
Cancel a resumable upload
Usage
arianet baas storage uploads cancel [project-id] <upload-id> [flags]
Examples
arianet baas storage uploads cancel 12 7d3c9a1e --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas storage uploads status
Show where a resumable upload stands
Usage
arianet baas storage uploads status [project-id] <upload-id> [flags]
Examples
arianet baas storage uploads status 12 7d3c9a1e
Inherited flags: --region (from arianet baas)
arianet baas tables
Create, change and drop tables, their columns, indexes, policies and rows
Usage
arianet baas tables <command>
Aliases: table
Inherited flags: --region (from arianet baas)
Subcommands
alter: Change a table's comment, row level security or namecolumn-types: List your enum types, for a column's typecolumns: Add, change or drop a table's columnsconstraints: Add or drop foreign key, unique, check and primary key constraintscreate: Create a table (row level security on unless --rls=false)drop: Drop a table and its dataget: Show a table: columns, constraints, indexes, policies, triggersindexes: List, create or drop a table's indexeslist: List a schema's tables and viewspolicies: Create or drop a table's row level security policiesrls: Turn a table's row level security on or offrows: Read and change a table's rowsschemas: List the schemas tables can be in
arianet baas tables alter
Change a table's comment, row level security or name
Usage
arianet baas tables alter [project-id] <table> [flags]
Examples
arianet baas tables alter 12 todos --name tasks --comment 'what to do'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--comment | string | table comment ("" removes it) | |
--name | string | new name | |
--rls | bool | row level security on or off | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas tables column-types
List your enum types, for a column's type
Usage
arianet baas tables column-types [project-id] [flags]
Examples
arianet baas tables column-types 12
Inherited flags: --region (from arianet baas)
arianet baas tables columns
Add, change or drop a table's columns
Usage
arianet baas tables columns <command>
Aliases: column
Inherited flags: --region (from arianet baas)
Subcommands
add: Add a columnalter: Change a column: type, nullability, default, comment, namedrop: Drop a column and its data
arianet baas tables columns add
Add a column
Usage
arianet baas tables columns add [project-id] <table> [flags]
Examples
arianet baas tables columns add 12 todos --name owner --type uuid --references auth.users.id --on-delete cascade
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--check | string | CHECK expression | |
--comment | string | column comment | |
--data | string | the JSON request body; flags given as well override its fields | |
--default | string | default expression, e.g. now() | |
--file | string | read the JSON request body from this file | |
--identity | string | identity column: always or by_default | |
--name | string | column name (required) | |
--nullable | bool | allow NULL (default true) | |
--on-delete | string | no_action, restrict, cascade, set_null or set_default | |
--on-update | string | no_action, restrict, cascade, set_null or set_default | |
--primary-key | bool | the table's primary key | |
--ref-column | string | referenced column | |
--ref-schema | string | schema of the referenced table | |
--ref-table | string | referenced table (a foreign key) | |
--timeout | duration | 15m0s | how long --wait waits |
--type | string | column type, e.g. text, bigint, uuid, timestamptz, jsonb (required) | |
--unique | bool | unique values | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas tables columns alter
Change a column: type, nullability, default, comment, name
Usage
arianet baas tables columns alter [project-id] <table> <column> [flags]
Examples
arianet baas tables columns alter 12 todos title --type varchar(200) --nullable=false
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--comment | string | column comment ("" removes it) | |
--default | string | new default expression | |
--drop-default | bool | remove the default | |
--name | string | new name | |
--nullable | bool | allow NULL | |
--timeout | duration | 15m0s | how long --wait waits |
--type | string | new type | |
--using | string | USING expression for the type change | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas tables columns drop
Drop a column and its data
Usage
arianet baas tables columns drop [project-id] <table> <column> [flags]
Aliases: rm
Examples
arianet baas tables columns drop 12 todos notes --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--cascade | bool | also drop what depends on it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas tables constraints
Add or drop foreign key, unique, check and primary key constraints
Usage
arianet baas tables constraints <command>
Aliases: constraint
Inherited flags: --region (from arianet baas)
Subcommands
arianet baas tables constraints add
Add a constraint
Usage
arianet baas tables constraints add [project-id] <table> [flags]
Examples
arianet baas tables constraints add 12 todos --type unique --column owner,title
arianet baas tables constraints add 12 todos --type foreign_key --column owner --ref-table profiles --ref-column id
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--check | string | CHECK expression | |
--column | stringArray | the constrained columns (repeatable, or comma separated) | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--name | string | constraint name (default: generated) | |
--not-valid | bool | do not check the existing rows | |
--on-delete | string | no_action, restrict, cascade, set_null or set_default | |
--on-update | string | no_action, restrict, cascade, set_null or set_default | |
--ref-column | stringArray | referenced columns (repeatable, or comma separated) | |
--ref-schema | string | schema of the referenced table | |
--ref-table | string | referenced table | |
--timeout | duration | 15m0s | how long --wait waits |
--type | string | foreign_key, unique, check or primary_key (required) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas tables constraints drop
Drop a constraint
Usage
arianet baas tables constraints drop [project-id] <table> <constraint> [flags]
Aliases: rm
Examples
arianet baas tables constraints drop 12 todos todos_owner_fkey --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--cascade | bool | also drop what depends on it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas tables create
Create a table (row level security on unless --rls=false)
Usage
arianet baas tables create [project-id] [flags]
Examples
arianet baas tables create 12 --name todos --column id:bigint:pk:identity --column title:text:notnull \
--column done:boolean:default=false --column created_at:timestamptz:default=now()
arianet baas tables create 12 --file table.json
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--column | stringArray | a column as name:type[:pk][:unique][:notnull][:identity][:default=<expression>] (repeatable) | |
--comment | string | table comment | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--name | string | table name (required) | |
--rls | bool | turn row level security on (default true) | |
--schema | string | schema (default public) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas tables drop
Drop a table and its data
Usage
arianet baas tables drop [project-id] <table> [flags]
Aliases: delete, rm
Examples
arianet baas tables drop 12 todos --yes
arianet baas tables drop 12 app.orders --cascade --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--cascade | bool | also drop what depends on it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas tables get
Show a table: columns, constraints, indexes, policies, triggers
Usage
arianet baas tables get [project-id] <table> [flags]
Aliases: show
Examples
arianet baas tables get 12 todos
arianet baas tables get 12 app.orders -o json
Inherited flags: --region (from arianet baas)
arianet baas tables indexes
List, create or drop a table's indexes
Usage
arianet baas tables indexes <command>
Aliases: index
Inherited flags: --region (from arianet baas)
Subcommands
arianet baas tables indexes create
Create an index
Usage
arianet baas tables indexes create [project-id] <table> [flags]
Examples
arianet baas tables indexes create 12 todos --column owner,created_at --concurrently
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--column | stringArray | indexed columns, in order (required) (repeatable, or comma separated) | |
--concurrently | bool | build without locking writes | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--method | string | btree, hash, gin, gist, brin or spgist | |
--name | string | index name (default: generated) | |
--timeout | duration | 15m0s | how long --wait waits |
--unique | bool | a unique index | |
--wait | bool | wait until the operation finishes | |
--where | string | partial index predicate |
Inherited flags: --region (from arianet baas)
arianet baas tables indexes drop
Drop an index
Usage
arianet baas tables indexes drop [project-id] <table> <index> [flags]
Aliases: rm
Examples
arianet baas tables indexes drop 12 todos todos_owner_created_at_idx --concurrently --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--concurrently | bool | drop without locking writes | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas tables indexes list
List a table's indexes
Usage
arianet baas tables indexes list [project-id] <table> [flags]
Aliases: ls
Examples
arianet baas tables indexes list 12 todos
Inherited flags: --region (from arianet baas)
arianet baas tables list
List a schema's tables and views
Usage
arianet baas tables list [project-id] [flags]
Aliases: ls
Examples
arianet baas tables list 12
arianet baas tables list 12 --schema app
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--schema | string | schema (default public) |
Inherited flags: --region (from arianet baas)
arianet baas tables policies
Create or drop a table's row level security policies
Usage
arianet baas tables policies <command>
Aliases: policy
Inherited flags: --region (from arianet baas)
Subcommands
arianet baas tables policies create
Create a policy (USING and WITH CHECK are SQL expressions)
Usage
arianet baas tables policies create [project-id] <table> [flags]
Examples
arianet baas tables policies create 12 todos --name "own rows" --command ALL --role authenticated \
--using "owner = auth.uid()" --with-check "owner = auth.uid()"
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--command | string | ALL, SELECT, INSERT, UPDATE or DELETE (default ALL) | |
--name | string | policy name (required) | |
--permissive | bool | permissive (default) or, with --permissive=false, restrictive | |
--role | stringArray | roles it applies to (default public) (repeatable, or comma separated) | |
--timeout | duration | 15m0s | how long --wait waits |
--using | string | USING expression | |
--wait | bool | wait until the operation finishes | |
--with-check | string | WITH CHECK expression |
Inherited flags: --region (from arianet baas)
arianet baas tables policies drop
Drop a policy
Usage
arianet baas tables policies drop [project-id] <table> <policy> [flags]
Aliases: rm
Examples
arianet baas tables policies drop 12 todos 'owners read' --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas tables rls
Turn a table's row level security on or off
Usage
arianet baas tables rls <command>
Inherited flags: --region (from arianet baas)
Subcommands
disable: Turn row level security off (every role reads everything it is granted)enable: Turn row level security on
arianet baas tables rls disable
Turn row level security off (every role reads everything it is granted)
Usage
arianet baas tables rls disable [project-id] <table> [flags]
Aliases: off
Examples
arianet baas tables rls disable 12 todos --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas tables rls enable
Turn row level security on
Usage
arianet baas tables rls enable [project-id] <table> [flags]
Aliases: on
Examples
arianet baas tables rls enable 12 todos
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--force | bool | also for the table's owner | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas tables rows
Read and change a table's rows
Usage
arianet baas tables rows <command>
Aliases: row
Inherited flags: --region (from arianet baas)
Subcommands
delete: Delete rows named by their primary keys (at most 100)insert: Insert rows (at most 100)list: Show a page of rowsupdate: Change one row, named by its whole primary key
arianet baas tables rows delete
Delete rows named by their primary keys (at most 100)
Usage
arianet baas tables rows delete [project-id] <table> [flags]
Aliases: rm
Examples
arianet baas tables rows delete 12 todos --key '{"id":1}' --key '{"id":2}'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--key | stringArray | a primary key as a JSON object (required) (repeatable JSON) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas tables rows insert
Insert rows (at most 100)
Usage
arianet baas tables rows insert [project-id] <table> [flags]
Examples
arianet baas tables rows insert 12 todos --row '{"title":"milk"}' --row '{"title":"bread"}'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--row | stringArray | a row as a JSON object (repeatable JSON) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas tables rows list
Show a page of rows
Usage
arianet baas tables rows list [project-id] <table> [flags]
Aliases: ls
Examples
arianet baas tables rows list 12 todos --limit 20 --order created_at.desc --filter 'done.eq.false'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--filter | string | filter, e.g. done.eq.false | |
--limit | string | rows per page | |
--offset | string | skip this many rows | |
--order | string | order, e.g. created_at.desc |
Inherited flags: --region (from arianet baas)
arianet baas tables rows update
Change one row, named by its whole primary key
Usage
arianet baas tables rows update [project-id] <table> [flags]
Examples
arianet baas tables rows update 12 todos --key '{"id":1}' --set '{"done":true}'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--key | string | the primary key as a JSON object (required) | |
--set | string | the new values as a JSON object (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas tables schemas
List the schemas tables can be in
Usage
arianet baas tables schemas [project-id] [flags]
Examples
arianet baas tables schemas 12
Inherited flags: --region (from arianet baas)
arianet baas transfer
Move a project to another Arianet account (it accepts within 7 days)
Usage
arianet baas transfer [project-id] [flags]
Examples
arianet baas transfer 12 --to 123 --confirm abcdefghij0123456789
arianet baas transfer list --direction incoming
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--confirm | string | the project's ref, typed to confirm (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--to | int64 | the account ID to move the project to (required) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
Subcommands
accept: Accept a transfer to your account (billed as a new project of its plan)cancel: Cancel the project's pending transferdecline: Decline a transfer to your accountlist: List pending transfers to or from your accountstatus: Show the project's pending transfer
arianet baas transfer accept
Accept a transfer to your account (billed as a new project of its plan)
Usage
arianet baas transfer accept <transfer-id> [flags]
Examples
arianet baas transfer accept 31 --wait
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas transfer cancel
Cancel the project's pending transfer
Usage
arianet baas transfer cancel [project-id] [flags]
Examples
arianet baas transfer cancel 12 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas transfer decline
Decline a transfer to your account
Usage
arianet baas transfer decline <transfer-id> [flags]
Examples
arianet baas transfer decline 31
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas transfer list
List pending transfers to or from your account
Usage
arianet baas transfer list [flags]
Aliases: ls
Examples
arianet baas transfer list
arianet baas transfer list --direction outgoing
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--direction | string | incoming or outgoing |
Inherited flags: --region (from arianet baas)
arianet baas transfer status
Show the project's pending transfer
Usage
arianet baas transfer status [project-id] [flags]
Examples
arianet baas transfer status 12
Inherited flags: --region (from arianet baas)
arianet baas types
Alias of gen types: generate TypeScript types of the database
Generate a TypeScript Database type of the project's schemas: per schema, Tables with Row (what a select returns), Insert and Update, their Relationships, Views, Functions (Args, Returns), Enums and CompositeTypes, plus the Tables<>, TablesInsert<>, TablesUpdate<> and Enums<> helpers. Pass it to a typed client library as its database type parameter.
In a region without the types endpoint the types are generated here from the table introspection (Tables and Views only).
Usage
arianet baas types [project-id] [flags]
Examples
arianet baas gen types --lang typescript --file src/database.types.ts
arianet baas gen types 12 --schema public,app > types.ts
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--file | string | write to this file instead of standard output | |
--lang | string | ts | output language: typescript (or ts) |
--schema | stringSlice | [public] | schemas to include (repeatable or comma separated) |
Inherited flags: --region (from arianet baas)
arianet baas unlink
Remove this directory's project link
Usage
arianet baas unlink [flags]
Examples
arianet baas unlink
Inherited flags: --region (from arianet baas)
arianet baas usage
Show this month's use against the plan
Usage
arianet baas usage [project-id] [flags]
Examples
arianet baas usage 12
Inherited flags: --region (from arianet baas)
arianet baas vault
Secrets stored encrypted with the project's own key, readable from your SQL
Usage
arianet baas vault <command>
Inherited flags: --region (from arianet baas)
Subcommands
create: Store a secret, encrypted with the project's own keydelete: Delete a secretlist: List the secrets (never their values)reveal: Show a secret's value; recorded in your activity logupdate: Change a secret's name, description or value
arianet baas vault create
Store a secret, encrypted with the project's own key
Usage
arianet baas vault create [project-id] [flags]
Examples
arianet baas vault create 12 --name stripe_key --value-file ./stripe.key
printf %s "$KEY" | arianet baas vault create 12 --name api_key --value-file -
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | what it is for | |
--name | string | secret name | |
--timeout | duration | 15m0s | how long --wait waits |
--value | string | the value (it stays in your shell history; prefer --value-file) | |
--value-file | string | read the value from this file (- for standard input) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas vault delete
Delete a secret
Usage
arianet baas vault delete [project-id] <secret-id> [flags]
Aliases: rm
Examples
arianet baas vault delete 12 9 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas vault list
List the secrets (never their values)
Usage
arianet baas vault list [project-id] [flags]
Aliases: ls
Examples
arianet baas vault list 12
Inherited flags: --region (from arianet baas)
arianet baas vault reveal
Show a secret's value; recorded in your activity log
Usage
arianet baas vault reveal [project-id] <secret-id> [flags]
Examples
arianet baas vault reveal 12 9
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas vault update
Change a secret's name, description or value
Usage
arianet baas vault update [project-id] <secret-id> [flags]
Examples
arianet baas vault update 12 9 --value-file ./payment.key
arianet baas vault update 12 9 --description 'live key'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | what it is for | |
--name | string | secret name | |
--timeout | duration | 15m0s | how long --wait waits |
--value | string | the value (it stays in your shell history; prefer --value-file) | |
--value-file | string | read the value from this file (- for standard input) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas webhooks
Database Webhooks: POST a table's inserts, updates and deletes to a URL
Usage
arianet baas webhooks <command>
Aliases: webhook
Inherited flags: --region (from arianet baas)
Subcommands
create: Create a webhook; its signing secret is shown oncedelete: Delete a webhook, its trigger and its queued eventsdeliveries: Show a webhook's deliveries (7 days)get: Show one webhooklist: List the webhooksupdate: Change a webhook (the flags given; the rest stays)
arianet baas webhooks create
Create a webhook; its signing secret is shown once
Usage
arianet baas webhooks create [project-id] [flags]
Examples
arianet baas webhooks create 12 --name orders --table orders --event INSERT,UPDATE --url https://example.com/hooks/orders
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run | bool | only show the SQL it would run | |
--enabled | bool | send events (default true) | |
--event | stringArray | INSERT, UPDATE and/or DELETE (required) (repeatable, or comma separated) | |
--header | stringArray | a request header (repeatable name=value) | |
--name | string | webhook name (required) | |
--schema | string | the table's schema (default public) | |
--table | string | the table whose changes it sends (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--timeout-ms | int64 | the request timeout in milliseconds | |
--url | string | the https URL it POSTs to (required) | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)
arianet baas webhooks delete
Delete a webhook, its trigger and its queued events
Usage
arianet baas webhooks delete [project-id] <webhook-id> [flags]
Aliases: rm
Examples
arianet baas webhooks delete 12 4 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet baas)
arianet baas webhooks deliveries
Show a webhook's deliveries (7 days)
Usage
arianet baas webhooks deliveries [project-id] <webhook-id> [flags]
Examples
arianet baas webhooks deliveries 12 4 --status failed --limit 20
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--before | string | the next page: deliveries before this ID | |
--limit | string | at most this many | |
--status | string | only retrying, success or failed |
Inherited flags: --region (from arianet baas)
arianet baas webhooks get
Show one webhook
Usage
arianet baas webhooks get [project-id] <webhook-id> [flags]
Aliases: show
Examples
arianet baas webhooks get 12 4
Inherited flags: --region (from arianet baas)
arianet baas webhooks list
List the webhooks
Usage
arianet baas webhooks list [project-id] [flags]
Aliases: ls
Examples
arianet baas webhooks list 12
Inherited flags: --region (from arianet baas)
arianet baas webhooks update
Change a webhook (the flags given; the rest stays)
Usage
arianet baas webhooks update [project-id] <webhook-id> [flags]
Examples
arianet baas webhooks update 12 4 --enabled=false
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run | bool | only show the SQL it would run | |
--enabled | bool | send events (default true) | |
--event | stringArray | INSERT, UPDATE and/or DELETE (repeatable, or comma separated) | |
--header | stringArray | a request header (repeatable name=value) | |
--name | string | webhook name | |
--schema | string | the table's schema (default public) | |
--table | string | the table whose changes it sends | |
--timeout | duration | 15m0s | how long --wait waits |
--timeout-ms | int64 | the request timeout in milliseconds | |
--url | string | the https URL it POSTs to | |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet baas)