Skip to main content

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

FlagTypeDefaultDescription
--regionstringregional 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 JSON
  • api-settings: Show or change the REST row limit and the JWT expiry
  • auth: The project's end-user authentication: users, settings, providers, hooks, templates, logs
  • backups: Backups of the project's database, restore and point-in-time restore
  • cron: 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, export
  • domains: Serve the project at your own hostname (paid plans)
  • env: Print the URL and anon key your app needs, as .env lines or JSON
  • functions: Write, run, deploy and manage the project's edge functions
  • gen: Generate code from the project's database
  • git: Deploy from a GitHub or GitLab repository: connect, deployments, logs, previews, promote
  • keys: Show, reveal and rotate a project's keys
  • link: Link this directory to a project, so the project ID can be left out here
  • logs: Show the project's request logs (last 7 days) and SQL editor runs
  • migration: Create migration files and compare them with what the project applied
  • plans: List the plans and their limits
  • projects: Create and manage projects
  • push: Apply the backend of a directory: migrations, config.toml and functions (what a git deploy does)
  • queues: Message queues in the database
  • realtime: The realtime endpoint and the tables whose changes it sends
  • reports: Show the API, auth, storage and database report over a range
  • sites: Host static and single-page sites: deploy a build directory, roll back, custom domains
  • snippets: SQL snippets saved with the project (the SQL editor's)
  • sql: Run SQL as the project's owner (one transaction) and print the result
  • storage: Manage the project's buckets, files, storage policies and S3 keys
  • tables: Create, change and drop tables, their columns, indexes, policies and rows
  • transfer: Move a project to another Arianet account (it accepts within 7 days)
  • types: Alias of gen types: generate TypeScript types of the database
  • unlink: Remove this directory's project link
  • usage: Show this month's use against the plan
  • vault: Secrets stored encrypted with the project's own key, readable from your SQL
  • webhooks: 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 operation
  • list: List your latest operations
  • wait: 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

FlagTypeDefaultDescription
--limitstringat 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

FlagTypeDefaultDescription
--timeoutduration15m0show 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

FlagTypeDefaultDescription
--detailsboolprint each finding's fix and SQL
--kindstringonly security or performance findings
--runboolrun 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

FlagTypeDefaultDescription
--datastringthe JSON request body
--filestringread 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

  • get: Show the API settings
  • set: Change the API settings

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

FlagTypeDefaultDescription
--jwt-expiryint64lifetime of issued access tokens in seconds (300-604800)
--max-rowsint64most rows one REST request returns (1-100000)
--timeoutduration15m0show long --wait waits
--waitboolwait 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 first
  • hooks: Auth hooks: custom access token claims, send email or SMS yourself, verification attempts
  • providers: 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 users
  • sms: Show the SMS log: each code sent, its delivery state, line and operator
  • smtp: Your own SMTP server (set it with auth settings set --smtp-*)
  • templates: The emails auth sends: confirm sign-up, invite, magic link, recovery, email change
  • users: 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

FlagTypeDefaultDescription
--actionstringonly this action, e.g. login
--actorstringonly this user's
--fromstringonly after this time (RFC 3339)
--ipstringonly from this address
--pagestringpage number
--per-pagestringentries per page
--searchstringsearch the entries
--tostringonly 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 off
  • list: List the hooks and which are on
  • set: 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--enabledboolthe hook runs
--generate-secretboolmake a new signing secret for an https hook and show it once
--timeoutduration15m0show long --wait waits
--uristringpg-functions://postgres/<schema>/<function> or an https:// URL
--waitboolwait 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 off
  • list: List the providers and which are on
  • set: 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--additional-client-idstringArraymore accepted client IDs (replaces the list) (repeatable, or comma separated)
--client-idstringthe OAuth client ID
--enabledboolsign-in with it is on
--namestringthe name shown for a custom provider
--scopesstringextra scopes, space separated
--secret-filestringread the client secret from this file (- for standard input); stored sealed
--skip-nonce-checkboolaccept ID tokens without a nonce
--timeoutduration15m0show long --wait waits
--urlstringthe issuer URL (custom providers; optional for gitlab and azure)
--waitboolwait 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

  • set: Set a secret of the auth configuration (sealed; never shown again)
  • unset: Remove a secret

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

FlagTypeDefaultDescription
--generateboolmake a hook's signing secret and show it once
--timeoutduration15m0show long --wait waits
--valuestringthe value (it stays in your shell history; prefer --value-file)
--value-filestringread the value from this file (- for standard input)
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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 hooks
  • set: 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

FlagTypeDefaultDescription
--sectionstringonly 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

FlagTypeDefaultDescription
--anonymous-enabledboolanonymous sign-ins
--app-namestringthe app's name in messages
--captcha-enabledboolcheck a CAPTCHA on sign-up and sign-in
--captcha-providerstringhcaptcha or turnstile
--captcha-site-keystringthe CAPTCHA site key (its secret: auth secrets set captcha)
--datastringthe JSON request body; flags given as well override its fields
--disable-signupboolrefuse new sign-ups
--email-confirm-requiredboola new email must be confirmed before sign-in
--email-enabledboolsign-in with email
--filestringread the JSON request body from this file
--jwt-expiryint64access token lifetime in seconds (300-604800)
--languagestringlanguage of the platform's messages: fa or en
--leaked-password-protectionboolrefuse passwords known from leaks
--manual-linkingboolusers may link identities themselves
--mfa-max-factorsint64most factors per user (1-20)
--mfa-phone-enrollboolusers may enroll phone factors
--mfa-phone-verifyboolphone factor codes are accepted
--mfa-totp-enrollboolusers may enroll authenticator apps
--mfa-totp-verifyboolauthenticator app codes are accepted
--otp-expiryint64seconds a one-time code is valid
--otp-lengthint64digits of a one-time code
--password-min-lengthint64shortest password
--password-required-charactersstring"", letters_digits, lower_upper_digits or lower_upper_digits_symbols
--phone-confirm-requiredboola new phone must be confirmed before sign-in
--phone-enabledboolsign-in with a phone number
--rate-anonymous-per-hourint64anonymous sign-ins per hour (0: the plan's)
--rate-emails-per-hourint64emails sent per hour (0: the plan's)
--rate-sign-inint64sign-ins per 5 minutes per address (0: the plan's)
--rate-sms-per-hourint64SMS sent per hour (0: the plan's)
--rate-token-refreshint64token refreshes per 5 minutes (0: the plan's)
--rate-verifyint64verifications per 5 minutes (0: the plan's)
--redirect-urlstringArraythe URLs a sign-in may redirect to (replaces the list) (repeatable, or comma separated)
--secure-email-changeboolan email change is confirmed at both addresses
--secure-password-changeboola password change needs a recent sign-in
--session-inactivity-timeoutint64a session ends after this many idle seconds (0: never)
--session-timeboxint64a session ends after this many seconds (0: never)
--single-sessionboolone session per user (a new sign-in ends the others)
--site-urlstringthe app's URL (the default redirect after sign-in)
--sms-enabledboolsend SMS from the platform's line (within the plan)
--smtp-enabledboolsend email through your own SMTP server
--smtp-hoststringSMTP host
--smtp-portint64SMTP port
--smtp-sender-emailstringsender address
--smtp-sender-namestringsender name
--smtp-userstringSMTP user (its password: auth secrets set smtp)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--pagestringpage number
--per-pagestringentries per page
--phonestringonly 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

FlagTypeDefaultDescription
--hoststringSMTP host
--password-filestringtry this password instead of the stored one (read from the file, - for standard input)
--portint64SMTP port
--sender-emailstringsender address
--sender-namestringsender name
--timeoutduration15m0show long --wait waits
--tostringthe recipient (required)
--userstringSMTP user
--waitboolwait 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 body
  • list: List the templates and which are your own
  • preview: Render a template with example data (nothing is stored or sent)
  • reset: Go back to the platform's message
  • set: 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

FlagTypeDefaultDescription
--bodystringthe HTML body (prefer --body-file)
--body-filestringread the HTML body from this file (- for standard input)
--subjectstringthe subject
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--bodystringthe HTML body (prefer --body-file)
--body-filestringread the HTML body from this file (- for standard input)
--subjectstringthe subject
--timeoutduration15m0show long --wait waits
--waitboolwait 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 user
  • delete: Delete a user
  • factors: A user's MFA factors
  • get: Show one user
  • list: List the project's users
  • send: Send the user a magic link (or code) or a password recovery message
  • sessions: A user's sessions
  • update: 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

FlagTypeDefaultDescription
--emailstringemail address
--email-confirmboolmark the email as confirmed
--passwordstringpassword
--phonestringphone number
--phone-confirmboolmark the phone as confirmed
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

  • delete: Remove an MFA factor (its sessions go back to aal1)
  • list: List a user's MFA factors

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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--pagestringpage number
--per-pagestringusers per page (at most 200)
--searchstringsearch 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--typestringmagiclink or recovery (required)
--waitboolwait 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 sessions
  • revoke: End one session
  • revoke-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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--app-metadatastringapp metadata as a JSON object
--banstringban for this long (e.g. 24h, 876000h), or "none" to lift a ban
--emailstringnew email address
--email-confirmboolmark the email as confirmed
--passwordstringnew password
--phonestringnew phone number
--phone-confirmboolmark the phone as confirmed
--timeoutduration15m0show long --wait waits
--user-metadatastringuser metadata as a JSON object
--waitboolwait 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 now
  • download: Download a ready backup (a custom-format dump pg_restore reads; - for standard output)
  • list: List the backups and the plan's backup policy
  • pitr: 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--confirmstringthe project's ref, typed to confirm (required)
--timeoutduration15m0show long --wait waits
--tostringthe moment to go back to (RFC 3339, e.g. 2026-11-28T09:30:00Z) (required)
--waitboolwait 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

FlagTypeDefaultDescription
--confirmstringthe project's ref, typed to confirm (arianet baas projects get) (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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 URL
  • delete: Delete a Cron job
  • disable: Turn a Cron job off
  • enable: Turn a Cron job on
  • list: List the Cron jobs
  • preview: Check a schedule: its shortest interval and next five runs
  • run: Run a Cron job once, now
  • runs: 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

FlagTypeDefaultDescription
--datastringthe JSON request body; flags given as well override its fields
--enabledboolthe job runs on its schedule (default true)
--filestringread the JSON request body from this file
--http-bodystringthe request body
--http-headerstringArraya request header (repeatable name=value)
--http-methodstringGET, POST, PUT, PATCH or DELETE
--http-timeout-msint64the request timeout in milliseconds
--http-urlstringthe URL to call
--kindstringsql or http (default: from --sql or --http-url)
--namestringjob name
--schedulestringcron schedule, e.g. "*/5 * * * *" or "30 seconds"
--sqlstringthe SQL to run
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--beforestringthe next page: runs before this ID
--limitstringat 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

FlagTypeDefaultDescription
--datastringthe JSON request body; flags given as well override its fields
--enabledboolthe job runs on its schedule (default true)
--filestringread the JSON request body from this file
--http-bodystringthe request body
--http-headerstringArraya request header (repeatable name=value)
--http-methodstringGET, POST, PUT, PATCH or DELETE
--http-timeout-msint64the request timeout in milliseconds
--http-urlstringthe URL to call
--kindstringsql or http (default: from --sql or --http-url)
--namestringjob name
--schedulestringcron schedule, e.g. "*/5 * * * *" or "30 seconds"
--sqlstringthe SQL to run
--timeoutduration15m0show long --wait waits
--waitboolwait 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 serves
  • diagram: 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 project
  • enums: List, create, change or drop enumerated types
  • export: Download a table, or the rows of one SELECT, as CSV
  • extensions: List, enable or disable PostgreSQL extensions
  • functions: 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 plan
  • network: Set the networks allowed to reach the external database endpoint (--any: every address)
  • password: The direct database login's password
  • pull: Write the schema (tables, views, functions, enums, policies...) as a SQL file
  • push: Apply the migration files (*.sql) not applied yet, in name order, in one transaction
  • roles: List the API roles and your database roles
  • schemas: List, create or drop schemas
  • settings: Show the connection strings, SSL, allowed networks, timeout and size
  • ssl: Require SSL on the external database endpoint, or allow plain connections
  • triggers: List, create, enable, disable or drop triggers
  • views: 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

FlagTypeDefaultDescription
--schemastringArraythe served schemas, the default first (required) (repeatable, or comma separated)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--schemastringschema (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

FlagTypeDefaultDescription
--againststringcompare the schema with this file instead of the newest snapshot
--dirstringarianet/migrationsdirectory of the migration files and snapshots
--schemastringSlice[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 type
  • drop: Drop an enumerated type
  • list: List a schema's enumerated types
  • rename-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

FlagTypeDefaultDescription
--afterstringput it after this value
--beforestringput it before this value
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--commentstringtype comment
--schemastringschema (default public)
--timeoutduration15m0show long --wait waits
--valuestringArraythe values, in order (required) (repeatable, or comma separated)
--waitboolwait 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

FlagTypeDefaultDescription
--cascadeboolalso drop the columns that use it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--schemastringschema (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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--namestringfile name the service suggests for a query export
--outstring-write the CSV to this file (- for standard output)
--querystringa SELECT whose rows to export (read-only)
--tablestringthe 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 extension
  • enable: 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

FlagTypeDefaultDescription
--cascadeboolalso drop what depends on it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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 plpgsql
  • drop: 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

FlagTypeDefaultDescription
--argstringArrayan argument as [name]:type[:in|out|inout|variadic][:default=<expression>] (repeatable)
--behaviorstringvolatile, stable or immutable
--bodystringthe function body
--body-filestringread the function body from this file (- for standard input)
--commentstringfunction comment
--datastringthe JSON request body; flags given as well override its fields
--filestringread the JSON request body from this file
--languagestringsql or plpgsql (required)
--or-replaceboolreplace a function with the same arguments
--returnsstringreturn type, e.g. int, setof todos, trigger, void (required)
--returns-setboolreturns a set of rows
--schemastringschema (default public)
--search-pathstringArraythe function's search_path (repeatable, or comma separated)
--security-definerboolrun with the owner's rights
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--cascadeboolalso drop what depends on it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--schemastringschema (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

FlagTypeDefaultDescription
--columnstringArraythe table column of each CSV column, in order (default: the header line)
--delimiterstringfield delimiter, one character (default ,)
--no-headerboolthe 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

FlagTypeDefaultDescription
--allowstringArrayan allowed network in CIDR notation (repeatable, or comma separated)
--anyboolallow 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

FlagTypeDefaultDescription
--confirmstringthe project's ref, typed to confirm (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--dirstringarianet/migrationsdirectory to write the snapshot into
--filestringwrite to this file instead (- for standard output)
--mark-appliedboolrecord the snapshot as applied in the project, so db push skips it
--schemastringSlice[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

FlagTypeDefaultDescription
--dirstringarianet/migrationsdirectory of the migration files
--dry-runboollist 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

FlagTypeDefaultDescription
--commentstringschema comment
--grant-api-rolesboolgive anon, authenticated and service_role what they have in public
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--cascadeboolalso drop every object in it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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 function
  • disable: Disable a trigger
  • drop: Drop a trigger
  • enable: Enable a trigger
  • list: 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

FlagTypeDefaultDescription
--eventstringArrayINSERT, UPDATE, DELETE or TRUNCATE (required) (repeatable, or comma separated)
--functionstringthe trigger function (required)
--function-schemastringthe trigger function's schema (default public)
--orientationstringROW (default) or STATEMENT
--timeoutduration15m0show long --wait waits
--timingstringBEFORE, AFTER or INSTEAD OF (required)
--update-columnstringArrayonly on updates of these columns (repeatable, or comma separated)
--waitboolwait until the operation finishes
--whenstringWHEN 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--schemastringschema (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 SELECT
  • drop: Drop a view
  • list: List a schema's views
  • preview: Run one SELECT read-only and show its first 20 rows (what a view would show)
  • refresh: Refresh a materialized view
  • security: 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

FlagTypeDefaultDescription
--commentstringview comment
--materializedboola materialized view
--or-replaceboolreplace a view with the same name
--querystringthe SELECT (required)
--schemastringschema (default public)
--security-invokerboolcheck the caller's rights (row level security applies)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
--with-databoolfill 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

FlagTypeDefaultDescription
--cascadeboolalso drop what depends on it
--materializedboolit is a materialized view
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--schemastringschema (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

FlagTypeDefaultDescription
--concurrentlyboolstay readable meanwhile (needs a unique index)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--invokerboolcheck the caller's rights (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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 create
  • check: Check the DNS records now; once both are right the certificate is issued
  • list: List the custom domains and the DNS records each needs
  • remove: 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--formatstringdotenv 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

FlagTypeDefaultDescription
--dirstringarianet/functionsthe folder holding the function folders

Inherited flags: --region (from arianet baas)

Subcommands

  • activate: Make an earlier version active again
  • config: Settings of every function of the project
  • delete: Delete a function and all its versions
  • deploy: 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 versions
  • invoke: Call a deployed function as anon, service_role or nobody and print its answer
  • list: List the project's functions with the plan's limits and this month's use
  • logs: Show the function's invocations and console lines (7 days), newest first
  • new: Create arianet/functions/<name>/index.ts from a template
  • secrets: Manage the secrets every function of the project reads as environment variables
  • serve: Run a function on your machine with Deno, restarting on every change
  • source: List a version's text files, or print one with --file
  • stats: 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

  • get: Show the functions settings
  • set: Change the functions settings

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

FlagTypeDefaultDescription
--expose-service-keyboolfunctions get the service key as an environment variable (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--no-verify-jwtboollet anyone call the function, without a JWT
--verify-jwtboolrequire 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

FlagTypeDefaultDescription
--forcebooloverwrite files that exist
--versionintthis 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

FlagTypeDefaultDescription
--bodystringthe request body
--body-filestringread the request body from this file (- for standard input)
--headerstringArraya request header as "Name: value" (repeatable)
--methodstringHTTP method (default POST)
--pathstringpath after the function's URL, with a query if any
--rolestringcall 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

FlagTypeDefaultDescription
--beforestringthe next page: entries before this ID
--kindstringonly log or invocation
--limitstringat 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

FlagTypeDefaultDescription
--env-filestringread 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

FlagTypeDefaultDescription
-y, --yesboolskip 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

FlagTypeDefaultDescription
--env-filestringenvironment variables for the run (default: arianet/functions/.env when it exists)
--portint8000the 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

FlagTypeDefaultDescription
--filestringprint this file's text
--versionstringthe 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

FlagTypeDefaultDescription
--rangestring24h (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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--verify-jwtboola call needs a project JWT (required)
--waitboolwait 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

FlagTypeDefaultDescription
--filestringwrite to this file instead of standard output
--langstringtypescriptoutput language: typescript (or ts)
--schemastringSlice[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 deployment
  • connect: Connect a GitHub or GitLab repository: pushes deploy the project
  • deploy: Deploy a branch's head now (default: the production branch)
  • deployment: Show one deployment with what each step did
  • deployments: List deployments from git, newest first
  • disconnect: Disconnect the repository: its webhook is removed, queued deployments canceled, previews removed
  • logs: Print a deployment's log: the pipeline's steps and the build's output
  • previews: 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 minutes
  • update: 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

FlagTypeDefaultDescription
-y, --yesboolskip 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

FlagTypeDefaultDescription
--base-urlstringthe git host's API (empty: https://api.github.com or https://gitlab.com; GitHub Enterprise .../api/v3 or a self-hosted GitLab)
--build-commandstringthe site's build command (empty: <package manager> run build when package.json has one)
--config-pathstringthe config file (default arianet/config.toml)
--envstringArraya build environment variable NAME=VALUE, not secret (repeatable; replaces the list)
--functions-dirstringthe functions directory (default arianet/functions)
--install-commandstringthe site's install command (empty: from the lock file, e.g. npm ci)
--migrations-dirstringthe migrations directory (default arianet/migrations)
--no-siteboolbuild no site: deploy the backend only
--output-dirstringthe build's output directory (empty: the first of dist, build, out, public)
--package-managerstringauto, npm, pnpm or yarn (auto: from the lock file)
--previewsbooltrueother branches and pull/merge requests get preview deployments
--production-branchstringpushes to this branch deploy production (empty: the repository's default branch)
--providerstringgithub or gitlab (required)
--repostringowner/name (GitHub) or group[/subgroup]/name (GitLab)
--root-dirstringthe app's directory in the repository (a monorepo); every path below is relative to it
--sitestringbuild a site and deploy it to this site (made when missing)
--tokenstringthe repository token as a value (stays in your shell's history: prefer --token-file)
--token-filestringread 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

FlagTypeDefaultDescription
--branchstringthe branch to deploy (default: the production branch)
-f, --followboolprint 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

FlagTypeDefaultDescription
--beforestringthe next page: deployments older than this ID
--branchstringonly this branch
--kindstringonly production or preview
--limitstringat most this many (1-100)
--statusstringonly 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
-f, --followboolkeep 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
-f, --followboolprint the new deployment's log until it ends
-y, --yesboolskip 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

FlagTypeDefaultDescription
-f, --followboolprint 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

FlagTypeDefaultDescription
--base-urlstringthe git host's API (empty: https://api.github.com or https://gitlab.com; GitHub Enterprise .../api/v3 or a self-hosted GitLab)
--build-commandstringthe site's build command (empty: <package manager> run build when package.json has one)
--config-pathstringthe config file (default arianet/config.toml)
--envstringArraya build environment variable NAME=VALUE, not secret (repeatable; replaces the list)
--functions-dirstringthe functions directory (default arianet/functions)
--install-commandstringthe site's install command (empty: from the lock file, e.g. npm ci)
--migrations-dirstringthe migrations directory (default arianet/migrations)
--no-siteboolbuild no site: deploy the backend only
--output-dirstringthe build's output directory (empty: the first of dist, build, out, public)
--package-managerstringauto, npm, pnpm or yarn (auto: from the lock file)
--previewsbooltrueother branches and pull/merge requests get preview deployments
--production-branchstringpushes to this branch deploy production (empty: the repository's default branch)
--providerstringgithub or gitlab
--repostringowner/name (GitHub) or group[/subgroup]/name (GitLab)
--root-dirstringthe app's directory in the repository (a monorepo); every path below is relative to it
--sitestringbuild a site and deploy it to this site (made when missing)
--tokenstringthe repository token as a value (stays in your shell's history: prefer --token-file)
--token-filestringread 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 log
  • rotate: 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

Inherited flags: --region (from arianet baas)

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

FlagTypeDefaultDescription
--beforeint64the next page: entries before this one (printed under the table)
--levelstringonly this level: info, warning or error
--limitintat most this many entries (1-500)
--methodstringonly this HTTP method
--searchstringonly paths containing this
--sincedurationonly entries newer than this, e.g. 30m or 24h
--sourcestringonly this component: gateway, auth, storage, rest, sql, functions or realtime
--statusintonly this status class: 2, 3, 4 or 5
--untilstringonly entries older than this time (RFC 3339)

Inherited flags: --region (from arianet baas)

Subcommands

  • get: Show one log record
  • queries: Saved logs explorer queries

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

  • delete: Delete a saved query
  • list: List the saved queries
  • save: Save a query

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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--filtersstringthe filters as a JSON object (source, level, method, q, status...)
--namestringquery name (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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 only
  • new: 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

FlagTypeDefaultDescription
--dirstringarianet/migrationsdirectory 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

FlagTypeDefaultDescription
--dirstringarianet/migrationsdirectory 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 operations
  • connect: Show the endpoint, key previews and the direct database connection
  • create: Create a project (billed from the moment its database exists)
  • delete: Delete a project and all its data
  • get: Show one project
  • list: List your projects
  • move: Move a project to another workspace of your account (0: none)
  • pause: Pause a project: its database refuses connections, its data is kept
  • pause-schedule: Show when an idle project pauses
  • plan: Move a project to another plan (billed from now)
  • rename: Rename a project
  • resume: 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

FlagTypeDefaultDescription
--limitstringat 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

FlagTypeDefaultDescription
--namestringproject name: 1-64 letters, digits, spaces, dots, dashes or underscores (required)
--planstringplan code (arianet baas plans) (required)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
--workspaceint64workspace 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

FlagTypeDefaultDescription
--confirmstringthe project's ref, typed to confirm (arianet baas projects get) (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
--workspaceint64the 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--namestringnew name (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--configstringarianet/config.tomlthe config file
--dirstring.the app's directory (the paths below are relative to it)
--dry-runboolshow what would change; change nothing
--functions-dirstringarianet/functionsthe functions directory
--migrations-dirstringarianet/migrationsthe migrations directory
--skip-configboolleave config.toml out
--skip-functionsboolleave the functions out
--skip-migrationsboolleave 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 queue
  • delete: Delete a queue and its messages
  • delete-message: Delete one message
  • list: List the queues
  • messages: 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--archivedboolshow the archive instead
--limitstringat 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--delayint64seconds before it can be read
--messagestringthe message as JSON (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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 changes
  • enable: 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--old-recordsboolinclude the old row in updates and deletes (REPLICA IDENTITY FULL)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--rangestring1h, 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 domains
  • deploy: Upload a directory as a new deployment of a site and make it live
  • deployments: List a site's deployments, newest first (get and delete are subcommands)
  • domains: Serve a site at your own hostname
  • get: Show a site with its deployments and domains
  • list: List the project's sites with the plan's limits
  • rollback: 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

FlagTypeDefaultDescription
--clean-urlsboolserve /about from /about.html (and redirect /about.html to /about)
--headerstringArraya header rule '<path> <Name>: <value>' (path exact or a prefix ending in *); replaces the site's header rules (repeatable)
--namestringsite name: 3-40 lowercase letters, digits or -, unique in the region (required)
--redirectstringArraya redirect rule '<from> <to> [301|302|307|308]'; replaces the site's redirect rules (repeatable)
--spa-fallbackboolserve /index.html for paths that are not files (single-page apps)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--createboolcreate the site first when the project has none of that name
--no-promoteboolmake the deployment ready without making it live
--sitestringthe 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

FlagTypeDefaultDescription
--sitestringthe site (default: the project's only site)

Inherited flags: --region (from arianet baas)

Subcommands

  • delete: Delete a deployment and its files (not the live one)
  • get: Show one deployment

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

FlagTypeDefaultDescription
-y, --yesboolskip 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

FlagTypeDefaultDescription
--sitestringthe 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

FlagTypeDefaultDescription
--sitestringthe 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

FlagTypeDefaultDescription
--clean-urlsboolserve /about from /about.html (and redirect /about.html to /about)
--clear-headersboolremove every header rule
--clear-redirectsboolremove every redirect rule
--headerstringArraya header rule '<path> <Name>: <value>' (path exact or a prefix ending in *); replaces the site's header rules (repeatable)
--namestringnew name (the hostname moves at once; custom domains keep serving it)
--redirectstringArraya redirect rule '<from> <to> [301|302|307|308]'; replaces the site's redirect rules (repeatable)
--spa-fallbackboolserve /index.html for paths that are not files (single-page apps)
--timeoutduration15m0show long --wait waits
--waitboolwait 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 snippet
  • delete: Delete a snippet
  • list: List the saved snippets
  • update: 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

FlagTypeDefaultDescription
-f, --filestringread the SQL from this file (- for standard input)
--namestringsnippet name (required)
--querystringthe SQL (or --file)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
-f, --filestringread the SQL from this file (- for standard input)
--namestringsnippet name (required)
--querystringthe SQL (or --file)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
-f, --filestringread the SQL from this file (- for standard input)
--jsonboolprint the service's answer as JSON (same as -o json)
--read-onlyboolrun 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 object
  • download: Download an object (to the object's file name, or - for standard output)
  • ls: List a folder of a bucket
  • move: Move or rename an object
  • policies: Row level security policies of storage: who reads and writes which objects
  • rm: Delete objects
  • s3-keys: S3 access keys (service level: they bypass the storage policies)
  • sign: Make a time-limited URL of an object
  • upload: Upload a file (the object path defaults to the file's name)
  • upload-url: Make a signed URL a client can PUT one file to
  • uploads: 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 bucket
  • delete: Delete an empty bucket
  • empty: Delete every object of a bucket
  • get: Show one bucket
  • update: 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

FlagTypeDefaultDescription
--namestringbucket name (letters, digits, _ . -) (required)
--publicboolobjects can be read without a key
--size-limitint64largest object in bytes
--timeoutduration15m0show long --wait waits
--typesstringArrayallowed content types, e.g. image/png,image/jpeg (repeatable, or comma separated)
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--publicboolobjects can be read without a key
--size-limitint64largest object in bytes
--timeoutduration15m0show long --wait waits
--typesstringArrayallowed content types (repeatable, or comma separated)
--waitboolwait 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

FlagTypeDefaultDescription
--to-bucketstringinto this bucket (default: the same; its limits apply)
--upsertboolreplace 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

FlagTypeDefaultDescription
--limitintat most this many entries (1-1000)
--offsetintskip this many entries
--searchstringonly 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

FlagTypeDefaultDescription
--to-bucketstringinto this bucket (default: the same; its limits apply)
--upsertboolreplace 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 expressions
  • drop: Drop a storage policy (table: objects or buckets)
  • list: List the policies of storage.objects and storage.buckets
  • preview: 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

FlagTypeDefaultDescription
--bucketstringthe bucket the policies are for
--commandstringcustom: ALL, SELECT, INSERT, UPDATE or DELETE
--datastringthe JSON request body; flags given as well override its fields
--filestringread the JSON request body from this file
--namestringpolicy name prefix
--operationstringArraySELECT, INSERT, UPDATE and/or DELETE (default: the template's) (repeatable, or comma separated)
--permissiveboolcustom: permissive (default) or restrictive
--policy-namestringcustom: the policy's name
--rolestringArraycustom: the roles it applies to (repeatable, or comma separated)
--tablestringobjects (default) or buckets
--templatestringpublic_read, authenticated_read, own_folder, owner_only or custom (required)
--timeoutduration15m0show long --wait waits
--usingstringcustom: USING expression
--waitboolwait until the operation finishes
--with-checkstringcustom: 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--bucketstringthe bucket the policies are for
--commandstringcustom: ALL, SELECT, INSERT, UPDATE or DELETE
--datastringthe JSON request body; flags given as well override its fields
--filestringread the JSON request body from this file
--namestringpolicy name prefix
--operationstringArraySELECT, INSERT, UPDATE and/or DELETE (default: the template's) (repeatable, or comma separated)
--permissiveboolcustom: permissive (default) or restrictive
--policy-namestringcustom: the policy's name
--rolestringArraycustom: the roles it applies to (repeatable, or comma separated)
--tablestringobjects (default) or buckets
--templatestringpublic_read, authenticated_read, own_folder, owner_only or custom (required)
--timeoutduration15m0show long --wait waits
--usingstringcustom: USING expression
--waitboolwait until the operation finishes
--with-checkstringcustom: 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

FlagTypeDefaultDescription
-y, --yesboolskip 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 once
  • list: List the S3 access keys (never their secrets) and the S3 endpoint
  • revoke: 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

FlagTypeDefaultDescription
--descriptionstringwhat the key is for
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--expires-inintseconds 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

FlagTypeDefaultDescription
--chunk-sizeint6416resumable upload chunk in MiB (1-64)
--content-typestringcontent type to store (default: from the file extension)
--resumableboolsend a large file in chunks; an interrupted upload continues with --resume
--resumestringcontinue the resumable upload with this ID (printed when it started)
--upsertboolreplace 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

FlagTypeDefaultDescription
--upsertboolthe 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

  • cancel: Cancel a resumable upload
  • status: Show where a resumable upload stands

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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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 name
  • column-types: List your enum types, for a column's type
  • columns: Add, change or drop a table's columns
  • constraints: Add or drop foreign key, unique, check and primary key constraints
  • create: Create a table (row level security on unless --rls=false)
  • drop: Drop a table and its data
  • get: Show a table: columns, constraints, indexes, policies, triggers
  • indexes: List, create or drop a table's indexes
  • list: List a schema's tables and views
  • policies: Create or drop a table's row level security policies
  • rls: Turn a table's row level security on or off
  • rows: Read and change a table's rows
  • schemas: 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

FlagTypeDefaultDescription
--commentstringtable comment ("" removes it)
--namestringnew name
--rlsboolrow level security on or off
--timeoutduration15m0show long --wait waits
--waitboolwait 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 column
  • alter: Change a column: type, nullability, default, comment, name
  • drop: 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

FlagTypeDefaultDescription
--checkstringCHECK expression
--commentstringcolumn comment
--datastringthe JSON request body; flags given as well override its fields
--defaultstringdefault expression, e.g. now()
--filestringread the JSON request body from this file
--identitystringidentity column: always or by_default
--namestringcolumn name (required)
--nullableboolallow NULL (default true)
--on-deletestringno_action, restrict, cascade, set_null or set_default
--on-updatestringno_action, restrict, cascade, set_null or set_default
--primary-keyboolthe table's primary key
--ref-columnstringreferenced column
--ref-schemastringschema of the referenced table
--ref-tablestringreferenced table (a foreign key)
--timeoutduration15m0show long --wait waits
--typestringcolumn type, e.g. text, bigint, uuid, timestamptz, jsonb (required)
--uniqueboolunique values
--waitboolwait 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

FlagTypeDefaultDescription
--commentstringcolumn comment ("" removes it)
--defaultstringnew default expression
--drop-defaultboolremove the default
--namestringnew name
--nullableboolallow NULL
--timeoutduration15m0show long --wait waits
--typestringnew type
--usingstringUSING expression for the type change
--waitboolwait 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

FlagTypeDefaultDescription
--cascadeboolalso drop what depends on it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

  • add: Add a constraint
  • drop: Drop a constraint

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

FlagTypeDefaultDescription
--checkstringCHECK expression
--columnstringArraythe constrained columns (repeatable, or comma separated)
--datastringthe JSON request body; flags given as well override its fields
--filestringread the JSON request body from this file
--namestringconstraint name (default: generated)
--not-validbooldo not check the existing rows
--on-deletestringno_action, restrict, cascade, set_null or set_default
--on-updatestringno_action, restrict, cascade, set_null or set_default
--ref-columnstringArrayreferenced columns (repeatable, or comma separated)
--ref-schemastringschema of the referenced table
--ref-tablestringreferenced table
--timeoutduration15m0show long --wait waits
--typestringforeign_key, unique, check or primary_key (required)
--waitboolwait 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

FlagTypeDefaultDescription
--cascadeboolalso drop what depends on it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--columnstringArraya column as name:type[:pk][:unique][:notnull][:identity][:default=<expression>] (repeatable)
--commentstringtable comment
--datastringthe JSON request body; flags given as well override its fields
--filestringread the JSON request body from this file
--namestringtable name (required)
--rlsboolturn row level security on (default true)
--schemastringschema (default public)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--cascadeboolalso drop what depends on it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

  • create: Create an index
  • drop: Drop an index
  • list: List a table's indexes

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

FlagTypeDefaultDescription
--columnstringArrayindexed columns, in order (required) (repeatable, or comma separated)
--concurrentlyboolbuild without locking writes
--datastringthe JSON request body; flags given as well override its fields
--filestringread the JSON request body from this file
--methodstringbtree, hash, gin, gist, brin or spgist
--namestringindex name (default: generated)
--timeoutduration15m0show long --wait waits
--uniqueboola unique index
--waitboolwait until the operation finishes
--wherestringpartial 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

FlagTypeDefaultDescription
--concurrentlybooldrop without locking writes
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--schemastringschema (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

  • create: Create a policy (USING and WITH CHECK are SQL expressions)
  • drop: Drop a policy

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

FlagTypeDefaultDescription
--commandstringALL, SELECT, INSERT, UPDATE or DELETE (default ALL)
--namestringpolicy name (required)
--permissiveboolpermissive (default) or, with --permissive=false, restrictive
--rolestringArrayroles it applies to (default public) (repeatable, or comma separated)
--timeoutduration15m0show long --wait waits
--usingstringUSING expression
--waitboolwait until the operation finishes
--with-checkstringWITH 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--forceboolalso for the table's owner
--timeoutduration15m0show long --wait waits
--waitboolwait 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 rows
  • update: 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

FlagTypeDefaultDescription
--keystringArraya primary key as a JSON object (required) (repeatable JSON)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--datastringthe JSON request body; flags given as well override its fields
--filestringread the JSON request body from this file
--rowstringArraya row as a JSON object (repeatable JSON)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--filterstringfilter, e.g. done.eq.false
--limitstringrows per page
--offsetstringskip this many rows
--orderstringorder, 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

FlagTypeDefaultDescription
--keystringthe primary key as a JSON object (required)
--setstringthe new values as a JSON object (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--confirmstringthe project's ref, typed to confirm (required)
--timeoutduration15m0show long --wait waits
--toint64the account ID to move the project to (required)
--waitboolwait 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 transfer
  • decline: Decline a transfer to your account
  • list: List pending transfers to or from your account
  • status: 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--directionstringincoming 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

FlagTypeDefaultDescription
--filestringwrite to this file instead of standard output
--langstringtsoutput language: typescript (or ts)
--schemastringSlice[public]schemas to include (repeatable or comma separated)

Inherited flags: --region (from arianet baas)

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 key
  • delete: Delete a secret
  • list: List the secrets (never their values)
  • reveal: Show a secret's value; recorded in your activity log
  • update: 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

FlagTypeDefaultDescription
--descriptionstringwhat it is for
--namestringsecret name
--timeoutduration15m0show long --wait waits
--valuestringthe value (it stays in your shell history; prefer --value-file)
--value-filestringread the value from this file (- for standard input)
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--descriptionstringwhat it is for
--namestringsecret name
--timeoutduration15m0show long --wait waits
--valuestringthe value (it stays in your shell history; prefer --value-file)
--value-filestringread the value from this file (- for standard input)
--waitboolwait 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 once
  • delete: Delete a webhook, its trigger and its queued events
  • deliveries: Show a webhook's deliveries (7 days)
  • get: Show one webhook
  • list: List the webhooks
  • update: 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

FlagTypeDefaultDescription
--dry-runboolonly show the SQL it would run
--enabledboolsend events (default true)
--eventstringArrayINSERT, UPDATE and/or DELETE (required) (repeatable, or comma separated)
--headerstringArraya request header (repeatable name=value)
--namestringwebhook name (required)
--schemastringthe table's schema (default public)
--tablestringthe table whose changes it sends (required)
--timeoutduration15m0show long --wait waits
--timeout-msint64the request timeout in milliseconds
--urlstringthe https URL it POSTs to (required)
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--beforestringthe next page: deliveries before this ID
--limitstringat most this many
--statusstringonly 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

FlagTypeDefaultDescription
--dry-runboolonly show the SQL it would run
--enabledboolsend events (default true)
--eventstringArrayINSERT, UPDATE and/or DELETE (repeatable, or comma separated)
--headerstringArraya request header (repeatable name=value)
--namestringwebhook name
--schemastringthe table's schema (default public)
--tablestringthe table whose changes it sends
--timeoutduration15m0show long --wait waits
--timeout-msint64the request timeout in milliseconds
--urlstringthe https URL it POSTs to
--waitboolwait until the operation finishes

Inherited flags: --region (from arianet baas)