پرش به مطلب اصلی

arianet baas

این مرجع در هر نسخه به طور خودکار از راهنمای خود CLI ساخته می‌شود، پس همیشه با آخرین نسخه arianet یکی است. متن راهنمای هر دستور همان متن انگلیسی است که arianet <command> --help نشان می‌دهد. برای نصب، تنظیم توکن و شروع کار، صفحه رابط خط فرمان را ببینید.

فلگ‌های سراسری با همه دستورهای این صفحه کار می‌کنند.

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.

دسترسی‌های توکن: 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)

نحوه استفاده

arianet baas <command>

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--regionstringregional install to call, e.g. iran-1 (default: the product's default region)

زیردستورها

  • 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)

نحوه استفاده

arianet baas actions <command>

نام‌های دیگر: action

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas actions get <action-id> [flags]

مثال‌ها

arianet baas actions get 812

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas actions list​

List your latest operations

نحوه استفاده

arianet baas actions list [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas actions list --limit 20

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--limitstringat most this many

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas actions wait​

Wait until operations finish; exits non-zero if one fails or the timeout passes

نحوه استفاده

arianet baas actions wait <action-id> [<action-id>...] [flags]

مثال‌ها

arianet baas actions wait 812 813 --timeout 10m

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long to wait

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas advisors [project-id] [flags]

نام‌های دیگر: advisor, lint

مثال‌ها

arianet baas advisors
arianet baas advisors 12 --kind security --run --details

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--detailsboolprint each finding's fix and SQL
--kindstringonly security or performance findings
--runboolrun the checks now (rate limited) instead of showing the last run

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas api​

Send any request to the /baas/v1 API and print the answer as JSON

نحوه استفاده

arianet baas api <method> <path> [flags]

مثال‌ها

arianet baas api GET /openapi.json
arianet baas api POST /some/path --data '{"key":"value"}'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--datastringthe JSON request body
--filestringread the JSON request body from this file

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas api-settings​

Show or change the REST row limit and the JWT expiry

نحوه استفاده

arianet baas api-settings <command>

نام‌های دیگر: api-setting

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

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

arianet baas api-settings get​

Show the API settings

نحوه استفاده

arianet baas api-settings get [project-id] [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas api-settings get 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas api-settings set​

Change the API settings

نحوه استفاده

arianet baas api-settings set [project-id] [flags]

مثال‌ها

arianet baas api-settings set --max-rows 500 --jwt-expiry 7200

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth​

The project's end-user authentication: users, settings, providers, hooks, templates, logs

نحوه استفاده

arianet baas auth <command>

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas auth audit [project-id] [flags]

مثال‌ها

arianet baas auth audit 12 --action login --from 2026-11-01T00:00:00Z
arianet baas auth audit 12 --search ana@example.com

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth hooks​

Auth hooks: custom access token claims, send email or SMS yourself, verification attempts

نحوه استفاده

arianet baas auth hooks <command>

نام‌های دیگر: hook

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas auth hooks disable [project-id] <hook> [flags]

مثال‌ها

arianet baas auth hooks disable 12 custom_access_token

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth hooks list​

List the hooks and which are on

نحوه استفاده

arianet baas auth hooks list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas auth hooks list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth hooks set​

Point an auth hook at a database function or an https URL

نحوه استفاده

arianet baas auth hooks set [project-id] <hook> [flags]

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth providers​

External sign-in providers (OAuth / OpenID Connect)

نحوه استفاده

arianet baas auth providers <command>

نام‌های دیگر: provider

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas auth providers disable [project-id] <provider> [flags]

مثال‌ها

arianet baas auth providers disable 12 custom:corp

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth providers list​

List the providers and which are on

نحوه استفاده

arianet baas auth providers list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas auth providers list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth providers set​

Turn on or change an external sign-in provider (e.g. google, github, custom:<name>)

نحوه استفاده

arianet baas auth providers set [project-id] <provider> [flags]

مثال‌ها

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"

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth secrets​

Secrets of the auth configuration: provider:<name>, smtp, captcha, hook:<kind>

نحوه استفاده

arianet baas auth secrets <command>

نام‌های دیگر: secret

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas auth secrets set [project-id] <name> [flags]

مثال‌ها

arianet baas auth secrets set 12 smtp --value-file ./smtp.password
arianet baas auth secrets set 12 hook:send_email --generate

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth secrets unset​

Remove a secret

نحوه استفاده

arianet baas auth secrets unset [project-id] <name> [flags]

نام‌های دیگر: delete, rm

مثال‌ها

arianet baas auth secrets unset 12 hook:send_email --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth settings​

Show or change how the project's auth treats its users

نحوه استفاده

arianet baas auth settings <command>

نام‌های دیگر: config

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas auth settings get [project-id] [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas auth settings get 12
arianet baas auth settings get 12 --section mfa -o json

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--sectionstringonly general, sessions, mfa, rate_limits, smtp, captcha, providers or hooks

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth settings set​

Change auth settings (only the flags given; --file for providers and hooks too)

نحوه استفاده

arianet baas auth settings set [project-id] [flags]

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth sms​

Show the SMS log: each code sent, its delivery state, line and operator

نحوه استفاده

arianet baas auth sms [project-id] [flags]

مثال‌ها

arianet baas auth sms 12 --phone 09121234567

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--pagestringpage number
--per-pagestringentries per page
--phonestringonly this phone number

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth smtp​

Your own SMTP server (set it with auth settings set --smtp-*)

نحوه استفاده

arianet baas auth smtp <command>

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas auth smtp test [project-id] [flags]

مثال‌ها

arianet baas auth smtp test 12 --to me@example.com

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth templates​

The emails auth sends: confirm sign-up, invite, magic link, recovery, email change

نحوه استفاده

arianet baas auth templates <command>

نام‌های دیگر: emails, template

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas auth templates get [project-id] <kind> [flags]

مثال‌ها

arianet baas auth templates get 12 signup

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth templates list​

List the templates and which are your own

نحوه استفاده

arianet baas auth templates list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas auth templates list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth templates preview​

Render a template with example data (nothing is stored or sent)

نحوه استفاده

arianet baas auth templates preview [project-id] <kind> [flags]

مثال‌ها

arianet baas auth templates preview 12 signup --subject 'Welcome to Shop' --body-file ./signup.html

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth templates reset​

Go back to the platform's message

نحوه استفاده

arianet baas auth templates reset [project-id] <kind> [flags]

مثال‌ها

arianet baas auth templates reset 12 recovery --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth templates set​

Use your own template (signup, invite, magiclink, recovery, email_change, reauthentication)

نحوه استفاده

arianet baas auth templates set [project-id] <kind> [flags]

مثال‌ها

arianet baas auth templates set 12 signup --subject "Confirm your account" --body-file signup.html

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth users​

Manage the project's end users

نحوه استفاده

arianet baas auth users <command>

نام‌های دیگر: user

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas auth users create [project-id] [flags]

مثال‌ها

arianet baas auth users create 12 --email ana@example.com --password 'S3cret-pass' --email-confirm

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth users delete​

Delete a user

نحوه استفاده

arianet baas auth users delete [project-id] <user-id> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas auth users delete 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth users factors​

A user's MFA factors

نحوه استفاده

arianet baas auth users factors <command>

نام‌های دیگر: factor, mfa

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas auth users factors delete [project-id] <user-id> <factor-id> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas auth users factors delete 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40 b2e4c6d8-1a3f-4c5e-8d7b-9f0a1b2c3d4e --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth users factors list​

List a user's MFA factors

نحوه استفاده

arianet baas auth users factors list [project-id] <user-id> [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas auth users factors list 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth users get​

Show one user

نحوه استفاده

arianet baas auth users get [project-id] <user-id> [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas auth users get 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth users list​

List the project's users

نحوه استفاده

arianet baas auth users list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas auth users list 12 --search @example.com --per-page 50

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--pagestringpage number
--per-pagestringusers per page (at most 200)
--searchstringsearch the email, phone or ID

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth users send​

Send the user a magic link (or code) or a password recovery message

نحوه استفاده

arianet baas auth users send [project-id] <user-id> [flags]

مثال‌ها

arianet baas auth users send 12 6f1c... --type recovery

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--typestringmagiclink or recovery (required)
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth users sessions​

A user's sessions

نحوه استفاده

arianet baas auth users sessions <command>

نام‌های دیگر: session

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas auth users sessions list [project-id] <user-id> [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas auth users sessions list 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth users sessions revoke​

End one session

نحوه استفاده

arianet baas auth users sessions revoke [project-id] <user-id> <session-id> [flags]

مثال‌ها

arianet baas auth users sessions revoke 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40 0d9e8f7a-6b5c-4d3e-2f1a-0b9c8d7e6f5a --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth users sessions revoke-all​

End every session of a user (signs them out everywhere)

نحوه استفاده

arianet baas auth users sessions revoke-all [project-id] <user-id> [flags]

مثال‌ها

arianet baas auth users sessions revoke-all 12 6f1c2a9e-4b7d-4e1a-9c3f-2d8b5a7e1f40 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas auth users update​

Change a user: email, phone, password, confirmation, metadata, ban

نحوه استفاده

arianet baas auth users update [project-id] <user-id> [flags]

مثال‌ها

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"}'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas backups​

Backups of the project's database, restore and point-in-time restore

نحوه استفاده

arianet baas backups <command>

نام‌های دیگر: backup

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas backups create [project-id] [flags]

مثال‌ها

arianet baas backups create 12 --wait

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas backups download​

Download a ready backup (a custom-format dump pg_restore reads; - for standard output)

نحوه استفاده

arianet baas backups download [project-id] <backup-id> [local-file] [flags]

مثال‌ها

arianet baas backups download 12 40 shop.dump
pg_restore --list shop.dump

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas backups list​

List the backups and the plan's backup policy

نحوه استفاده

arianet baas backups list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas backups list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas backups pitr​

Restore the project to a point in time (paid plans)

نحوه استفاده

arianet baas backups pitr [project-id] [flags]

نام‌های دیگر: restore-to

مثال‌ها

arianet baas backups pitr 12 --to 2026-11-28T09:30:00Z --confirm abcdefghij0123456789 --wait

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas backups restore​

Restore a backup into the project (traffic paused, a safety backup first)

نحوه استفاده

arianet baas backups restore [project-id] <backup-id> [flags]

مثال‌ها

arianet baas backups restore 12 40 --confirm abcdefghij0123456789 --wait

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--confirmstringthe project's ref, typed to confirm (arianet baas projects get) (required)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas cron​

Run SQL or call a URL on a schedule (Cron jobs)

نحوه استفاده

arianet baas cron <command>

نام‌های دیگر: crons

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas cron create [project-id] [flags]

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas cron delete​

Delete a Cron job

نحوه استفاده

arianet baas cron delete [project-id] <job-id> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas cron delete 12 3 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas cron disable​

Turn a Cron job off

نحوه استفاده

arianet baas cron disable [project-id] <job-id> [flags]

مثال‌ها

arianet baas cron disable 12 3

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas cron enable​

Turn a Cron job on

نحوه استفاده

arianet baas cron enable [project-id] <job-id> [flags]

مثال‌ها

arianet baas cron enable 12 3

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas cron list​

List the Cron jobs

نحوه استفاده

arianet baas cron list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas cron list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas cron preview​

Check a schedule: its shortest interval and next five runs

نحوه استفاده

arianet baas cron preview [project-id] <schedule> [flags]

مثال‌ها

arianet baas cron preview 12 "*/15 * * * *"

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas cron run​

Run a Cron job once, now

نحوه استفاده

arianet baas cron run [project-id] <job-id> [flags]

مثال‌ها

arianet baas cron run 12 3

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas cron runs​

Show a Cron job's runs (7 days)

نحوه استفاده

arianet baas cron runs [project-id] <job-id> [flags]

نام‌های دیگر: history

مثال‌ها

arianet baas cron runs 12 3 --limit 20

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--beforestringthe next page: runs before this ID
--limitstringat most this many runs

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas cron update​

Change a Cron job (the flags given; the rest stays)

نحوه استفاده

arianet baas cron update [project-id] <job-id> [flags]

مثال‌ها

arianet baas cron update 12 3 --schedule "0 4 * * *"

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db​

Migrations (push, pull, diff) and the database: settings, schemas, extensions, enums, functions, triggers, views, import, export

نحوه استفاده

arianet baas db <command>

نام‌های دیگر: database

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas db api-docs [project-id] [flags]

مثال‌ها

arianet baas db api-docs 12
arianet baas db api-docs 12 -o json > api.json

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db api-schemas​

Show or set the schemas the REST API serves

نحوه استفاده

arianet baas db api-schemas <command>

نام‌های دیگر: exposed-schemas

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas db api-schemas get [project-id] [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas db api-schemas get 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db api-schemas set​

Set the schemas the REST API serves (1-20, the default first); the REST runtime restarts

نحوه استفاده

arianet baas db api-schemas set [project-id] [flags]

مثال‌ها

arianet baas db api-schemas set 12 --schema public,app

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--schemastringArraythe served schemas, the default first (required) (repeatable, or comma separated)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db diagram​

Show a schema's tables and foreign keys (-o json for the columns)

نحوه استفاده

arianet baas db diagram [project-id] [flags]

مثال‌ها

arianet baas db diagram 12 --schema public

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--schemastringschema (default public)

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas db diff [project-id] [flags]

مثال‌ها

arianet baas db diff
arianet baas db diff 12 --against schema.sql
arianet baas db diff -o json

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db enums​

List, create, change or drop enumerated types

نحوه استفاده

arianet baas db enums <command>

نام‌های دیگر: enum

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas db enums add-value [project-id] <type> <value> [flags]

مثال‌ها

arianet baas db enums add-value 12 status review --after draft

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--afterstringput it after this value
--beforestringput it before this value
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db enums create​

Create an enumerated type

نحوه استفاده

arianet baas db enums create [project-id] <name> [flags]

مثال‌ها

arianet baas db enums create 12 status --value draft,published,archived

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--commentstringtype comment
--schemastringschema (default public)
--timeoutduration15m0show long --wait waits
--valuestringArraythe values, in order (required) (repeatable, or comma separated)
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db enums drop​

Drop an enumerated type

نحوه استفاده

arianet baas db enums drop [project-id] <type> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas db enums drop 12 status --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--cascadeboolalso drop the columns that use it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db enums list​

List a schema's enumerated types

نحوه استفاده

arianet baas db enums list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas db enums list 12 --schema public

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--schemastringschema (default public)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db enums rename-value​

Rename a value

نحوه استفاده

arianet baas db enums rename-value [project-id] <type> <value> <new-name> [flags]

مثال‌ها

arianet baas db enums rename-value 12 status archived retired

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db export​

Download a table, or the rows of one SELECT, as CSV

نحوه استفاده

arianet baas db export [project-id] [flags]

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db extensions​

List, enable or disable PostgreSQL extensions

نحوه استفاده

arianet baas db extensions <command>

نام‌های دیگر: ext, extension

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas db extensions disable [project-id] <name> [flags]

مثال‌ها

arianet baas db extensions disable 12 pg_trgm --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--cascadeboolalso drop what depends on it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db extensions enable​

Enable an extension (into the extensions schema)

نحوه استفاده

arianet baas db extensions enable [project-id] <name> [flags]

مثال‌ها

arianet baas db extensions enable 12 pg_trgm

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db extensions list​

List the extensions on offer and their state

نحوه استفاده

arianet baas db extensions list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas db extensions list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db functions​

List, create or drop SQL functions (callable at /rest/v1/rpc/<name>)

نحوه استفاده

arianet baas db functions <command>

نام‌های دیگر: fn, function

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas db functions create [project-id] <name> [flags]

مثال‌ها

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'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db functions drop​

Drop a function, named by its OID (db functions list)

نحوه استفاده

arianet baas db functions drop [project-id] <oid> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas db functions drop 12 16842 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--cascadeboolalso drop what depends on it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db functions list​

List a schema's functions

نحوه استفاده

arianet baas db functions list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas db functions list 12 --schema public

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--schemastringschema (default public)

فلگ‌های به‌ارث‌رسیده: --region (از 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).

نحوه استفاده

arianet baas db import [project-id] <table> <file.csv> [flags]

مثال‌ها

arianet baas db import 12 todos todos.csv
arianet baas db import 12 todos data.csv --no-header --column title,done --delimiter ';'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db import-limits​

Show how much one CSV import takes on the project's plan

نحوه استفاده

arianet baas db import-limits [project-id] [flags]

مثال‌ها

arianet baas db import-limits 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db network​

Set the networks allowed to reach the external database endpoint (--any: every address)

نحوه استفاده

arianet baas db network [project-id] [flags]

مثال‌ها

arianet baas db network 12 --allow 203.0.113.0/24 --allow 198.51.100.7/32
arianet baas db network 12 --any

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--allowstringArrayan allowed network in CIDR notation (repeatable, or comma separated)
--anyboolallow every address (no restriction)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db password​

The direct database login's password

نحوه استفاده

arianet baas db password <command>

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas db password reset [project-id] [flags]

مثال‌ها

arianet baas db password reset 12 --confirm abcdefghij0123456789

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--confirmstringthe project's ref, typed to confirm (required)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از 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).

نحوه استفاده

arianet baas db pull [project-id] [flags]

مثال‌ها

arianet baas db pull
arianet baas db pull 12 --schema public,app
arianet baas db pull 12 --file - > schema.sql

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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)

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas db push [project-id] [flags]

مثال‌ها

arianet baas db push
arianet baas db push 12 --dir db/migrations --dry-run

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--dirstringarianet/migrationsdirectory of the migration files
--dry-runboollist what would be applied; change nothing

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db roles​

List the API roles and your database roles

نحوه استفاده

arianet baas db roles [project-id] [flags]

مثال‌ها

arianet baas db roles 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db schemas​

List, create or drop schemas

نحوه استفاده

arianet baas db schemas <command>

نام‌های دیگر: schema

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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.

نحوه استفاده

arianet baas db schemas create [project-id] <name> [flags]

مثال‌ها

arianet baas db schemas create 12 app --grant-api-roles

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--commentstringschema comment
--grant-api-rolesboolgive anon, authenticated and service_role what they have in public
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db schemas drop​

Drop a schema (public and the platform's are protected)

نحوه استفاده

arianet baas db schemas drop [project-id] <schema> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas db schemas drop 12 app --cascade --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--cascadeboolalso drop every object in it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db schemas list​

List the schemas with counts, and which the REST API serves

نحوه استفاده

arianet baas db schemas list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas db schemas list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db settings​

Show the connection strings, SSL, allowed networks, timeout and size

نحوه استفاده

arianet baas db settings [project-id] [flags]

مثال‌ها

arianet baas db settings 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db ssl​

Require SSL on the external database endpoint, or allow plain connections

نحوه استفاده

arianet baas db ssl <command>

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

arianet baas db ssl allow-plain​

Accept connections without SSL too

نحوه استفاده

arianet baas db ssl allow-plain [project-id] [flags]

نام‌های دیگر: off

مثال‌ها

arianet baas db ssl allow-plain 12 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db ssl enforce​

Refuse connections without SSL

نحوه استفاده

arianet baas db ssl enforce [project-id] [flags]

نام‌های دیگر: on

مثال‌ها

arianet baas db ssl enforce 12

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db triggers​

List, create, enable, disable or drop triggers

نحوه استفاده

arianet baas db triggers <command>

نام‌های دیگر: trigger

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas db triggers create [project-id] <table> <name> [flags]

مثال‌ها

arianet baas db triggers create 12 todos set_updated --timing BEFORE --event UPDATE --function touch_updated_at

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db triggers disable​

Disable a trigger

نحوه استفاده

arianet baas db triggers disable [project-id] <table> <trigger> [flags]

مثال‌ها

arianet baas db triggers disable 12 todos set_updated

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db triggers drop​

Drop a trigger

نحوه استفاده

arianet baas db triggers drop [project-id] <table> <trigger> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas db triggers drop 12 todos set_updated --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db triggers enable​

Enable a trigger

نحوه استفاده

arianet baas db triggers enable [project-id] <table> <trigger> [flags]

مثال‌ها

arianet baas db triggers enable 12 todos set_updated

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db triggers list​

List the triggers on a schema's tables

نحوه استفاده

arianet baas db triggers list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas db triggers list 12 --schema public

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--schemastringschema (default public)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db views​

List, create, refresh or drop views and materialized views

نحوه استفاده

arianet baas db views <command>

نام‌های دیگر: view

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas db views create [project-id] <name> [flags]

مثال‌ها

arianet baas db views create 12 open_todos --query 'select * from todos where not done' --security-invoker

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db views drop​

Drop a view

نحوه استفاده

arianet baas db views drop [project-id] <view> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas db views drop 12 open_todos --yes
arianet baas db views drop 12 daily_totals --materialized --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db views list​

List a schema's views

نحوه استفاده

arianet baas db views list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas db views list 12 --schema public

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--schemastringschema (default public)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db views preview​

Run one SELECT read-only and show its first 20 rows (what a view would show)

نحوه استفاده

arianet baas db views preview [project-id] <select> [flags]

مثال‌ها

arianet baas db views preview 12 'select * from todos where not done'

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db views refresh​

Refresh a materialized view

نحوه استفاده

arianet baas db views refresh [project-id] <view> [flags]

مثال‌ها

arianet baas db views refresh 12 daily_totals --concurrently

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--concurrentlyboolstay readable meanwhile (needs a unique index)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas db views security​

Turn a view's security_invoker on or off

نحوه استفاده

arianet baas db views security [project-id] <view> [flags]

مثال‌ها

arianet baas db views security 12 open_todos --invoker=true

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--invokerboolcheck the caller's rights (required)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas domains​

Serve the project at your own hostname (paid plans)

نحوه استفاده

arianet baas domains <command>

نام‌های دیگر: domain

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas domains add [project-id] <hostname> [flags]

مثال‌ها

arianet baas domains add api.example.com

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas domains check​

Check the DNS records now; once both are right the certificate is issued

نحوه استفاده

arianet baas domains check [project-id] <domain-id> [flags]

مثال‌ها

arianet baas domains check 7

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas domains list​

List the custom domains and the DNS records each needs

نحوه استفاده

arianet baas domains list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas domains list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas domains remove​

Remove a custom domain

نحوه استفاده

arianet baas domains remove [project-id] <domain-id> [flags]

نام‌های دیگر: delete, rm

مثال‌ها

arianet baas domains remove 12 7 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas env [project-id] [flags]

مثال‌ها

arianet baas env 12 > .env.local
arianet baas env 12 --format json

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--formatstringdotenv or json (default dotenv; json with -o json)

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas functions <command>

نام‌های دیگر: fn, function

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--dirstringarianet/functionsthe folder holding the function folders

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas functions activate [project-id] <name> <version> [flags]

نام‌های دیگر: rollback

مثال‌ها

arianet baas functions activate 12 hello-world 3 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions config​

Settings of every function of the project

نحوه استفاده

arianet baas functions config <command>

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

زیردستورها

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

arianet baas functions config get​

Show the functions settings

نحوه استفاده

arianet baas functions config get [project-id] [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas functions config get 12

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions config set​

Change the functions settings

نحوه استفاده

arianet baas functions config set [project-id] [flags]

مثال‌ها

arianet baas functions config set 12 --expose-service-key=false

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--expose-service-keyboolfunctions get the service key as an environment variable (required)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions delete​

Delete a function and all its versions

نحوه استفاده

arianet baas functions delete [project-id] <name> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas functions delete 12 hello-world --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از 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.

نحوه استفاده

arianet baas functions deploy [project-id] [name...] [flags]

مثال‌ها

arianet baas functions deploy 12 hello-world
arianet baas functions deploy 12 stripe-webhook --no-verify-jwt
arianet baas functions deploy 12

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--no-verify-jwtboollet anyone call the function, without a JWT
--verify-jwtboolrequire a project JWT again

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از 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.

نحوه استفاده

arianet baas functions download [project-id] <name> [flags]

مثال‌ها

arianet baas functions download 12 hello-world
arianet baas functions download 12 hello-world --version 2 --force

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--forcebooloverwrite files that exist
--versionintthis version instead of the active one

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions get​

Show one function and its latest versions

نحوه استفاده

arianet baas functions get [project-id] <name> [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas functions get 12 hello-world

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions invoke​

Call a deployed function as anon, service_role or nobody and print its answer

نحوه استفاده

arianet baas functions invoke [project-id] <name> [flags]

مثال‌ها

arianet baas functions invoke 12 hello-world --body '{"name":"Ana"}'
arianet baas functions invoke 12 report --method GET --path /daily --role service_role

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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)

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions list​

List the project's functions with the plan's limits and this month's use

نحوه استفاده

arianet baas functions list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas functions list 12

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions logs​

Show the function's invocations and console lines (7 days), newest first

نحوه استفاده

arianet baas functions logs [project-id] <name> [flags]

مثال‌ها

arianet baas functions logs 12 hello-world --kind invocation --limit 50

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--beforestringthe next page: entries before this ID
--kindstringonly log or invocation
--limitstringat most this many

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions new​

Create arianet/functions/<name>/index.ts from a template

نحوه استفاده

arianet baas functions new <name> [flags]

نام‌های دیگر: create

مثال‌ها

arianet baas functions new hello-world

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions secrets​

Manage the secrets every function of the project reads as environment variables

نحوه استفاده

arianet baas functions secrets <command>

نام‌های دیگر: secret

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas functions secrets list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas functions secrets list 12

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از 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.

نحوه استفاده

arianet baas functions secrets set [project-id] [NAME=VALUE...] [flags]

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--env-filestringread NAME=VALUE lines from this file

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions secrets unset​

Delete secrets

نحوه استفاده

arianet baas functions secrets unset [project-id] <NAME>... [flags]

نام‌های دیگر: delete, rm

مثال‌ها

arianet baas functions secrets unset 12 STRIPE_KEY --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از 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.

نحوه استفاده

arianet baas functions serve [name] [flags]

مثال‌ها

arianet baas functions serve hello-world
curl -X POST http://localhost:8000 -H 'Content-Type: application/json' -d '{"name":"Ana"}'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--env-filestringenvironment variables for the run (default: arianet/functions/.env when it exists)
--portint8000the port to announce and pass as PORT

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions source​

List a version's text files, or print one with --file

نحوه استفاده

arianet baas functions source [project-id] <name> [flags]

مثال‌ها

arianet baas functions source 12 hello-world
arianet baas functions source 12 hello-world --version 3 --file index.ts

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--filestringprint this file's text
--versionstringthe version (default: the active one)

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions stats​

Show invocations, errors and the average duration (24h or 7d)

نحوه استفاده

arianet baas functions stats [project-id] <name> [flags]

مثال‌ها

arianet baas functions stats 12 hello-world --range 7d

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--rangestring24h (default) or 7d

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas functions update​

Change a function's settings (who may call it)

نحوه استفاده

arianet baas functions update [project-id] <name> [flags]

مثال‌ها

arianet baas functions update 12 stripe-webhook --verify-jwt=false

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--verify-jwtboola call needs a project JWT (required)
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --dir (از arianet baas functions), --region (از arianet baas)

arianet baas gen​

Generate code from the project's database

نحوه استفاده

arianet baas gen <command>

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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).

نحوه استفاده

arianet baas gen types [project-id] [flags]

مثال‌ها

arianet baas gen types --lang typescript --file src/database.types.ts
arianet baas gen types 12 --schema public,app > types.ts

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--filestringwrite to this file instead of standard output
--langstringtypescriptoutput language: typescript (or ts)
--schemastringSlice[public]schemas to include (repeatable or comma separated)

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas git <command>

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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.

نحوه استفاده

arianet baas git cancel [project-id] <deployment-id> [flags]

مثال‌ها

arianet baas git cancel 31
arianet baas git cancel 12 31 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas git connect [project-id] --provider github|gitlab --repo <owner/name> --token-file <file> [flags]

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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)

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas git deploy [project-id] [--branch <name>] [flags]

مثال‌ها

arianet baas git deploy
arianet baas git deploy --branch feature/checkout --follow
arianet baas git deploy 12 -o json

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--branchstringthe branch to deploy (default: the production branch)
-f, --followboolprint the log until the deployment ends

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas git deployment​

Show one deployment with what each step did

نحوه استفاده

arianet baas git deployment [project-id] <deployment-id> [flags]

نام‌های دیگر: get-deployment

مثال‌ها

arianet baas git deployment 31
arianet baas git deployment 12 31 -o json

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas git deployments​

List deployments from git, newest first

نحوه استفاده

arianet baas git deployments [project-id] [flags]

نام‌های دیگر: deploys

مثال‌ها

arianet baas git deployments
arianet baas git deployments 12 --kind preview --status failed --limit 20

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas git disconnect​

Disconnect the repository: its webhook is removed, queued deployments canceled, previews removed

نحوه استفاده

arianet baas git disconnect [project-id] [flags]

مثال‌ها

arianet baas git disconnect
arianet baas git disconnect 12 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas git logs [project-id] <deployment-id> [flags]

مثال‌ها

arianet baas git logs 31
arianet baas git logs 12 31 --follow

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-f, --followboolkeep printing until the deployment ends

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas git previews​

List the previews: one hostname per branch or pull/merge request (rm is a subcommand)

نحوه استفاده

arianet baas git previews [project-id] [flags]

نام‌های دیگر: preview

مثال‌ها

arianet baas git previews
arianet baas git previews 12 -o json

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas git previews rm [project-id] <alias> [flags]

نام‌های دیگر: delete

مثال‌ها

arianet baas git previews rm feature-checkout
arianet baas git previews rm 12 feature-checkout --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas git promote [project-id] <deployment-id> [flags]

مثال‌ها

arianet baas git promote 34
arianet baas git promote 12 34 --yes --follow

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-f, --followboolprint the new deployment's log until it ends
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas git redeploy [project-id] <deployment-id> [flags]

مثال‌ها

arianet baas git redeploy 31
arianet baas git redeploy 12 31 --follow

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-f, --followboolprint the new deployment's log until it ends

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas git status​

Show the connected repository, its webhook and this month's build minutes

نحوه استفاده

arianet baas git status [project-id] [flags]

نام‌های دیگر: get, show

مثال‌ها

arianet baas git status
arianet baas git status 12 -o json

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas git update [project-id] [flags]

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas keys​

Show, reveal and rotate a project's keys

نحوه استفاده

arianet baas keys <command>

نام‌های دیگر: key

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas keys list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas keys list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas keys reveal​

Show one key (anon, service, publishable, secret, database); recorded in your activity log

نحوه استفاده

arianet baas keys reveal [project-id] <kind> [flags]

مثال‌ها

arianet baas keys reveal 12 anon
arianet baas keys reveal 12 database -o json

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas keys rotate​

Issue new anon and service keys; the previous ones keep working for the overlap

نحوه استفاده

arianet baas keys rotate [project-id] [flags]

مثال‌ها

arianet baas keys rotate 12 --wait

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas link [project-id|ref] [flags]

مثال‌ها

arianet baas link 12
arianet baas link abcdefghij0123456789
arianet baas db push # the linked project

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas logs​

Show the project's request logs (last 7 days) and SQL editor runs

نحوه استفاده

arianet baas logs [project-id] [flags]

مثال‌ها

arianet baas logs 12 --since 1h
arianet baas logs 12 --source auth --status 4 --limit 50

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

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

arianet baas logs get​

Show one log record

نحوه استفاده

arianet baas logs get [project-id] <log-id> [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas logs get 12 9f2b7c

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas logs queries​

Saved logs explorer queries

نحوه استفاده

arianet baas logs queries <command>

نام‌های دیگر: query

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

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

arianet baas logs queries delete​

Delete a saved query

نحوه استفاده

arianet baas logs queries delete [project-id] <query-id> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas logs queries delete 12 4 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas logs queries list​

List the saved queries

نحوه استفاده

arianet baas logs queries list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas logs queries list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas logs queries save​

Save a query

نحوه استفاده

arianet baas logs queries save [project-id] [flags]

نام‌های دیگر: create

مثال‌ها

arianet baas logs queries save 12 --name "auth errors" --filters '{"source":"auth","status":"5"}'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--filtersstringthe filters as a JSON object (source, level, method, q, status...)
--namestringquery name (required)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas migration​

Create migration files and compare them with what the project applied

نحوه استفاده

arianet baas migration <command>

نام‌های دیگر: migrations

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas migration list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas migration list
arianet baas migration list 12 --dir ./db/migrations

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--dirstringarianet/migrationsdirectory of the migration files

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas migration new <name> [flags]

مثال‌ها

arianet baas migration new create_todos

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--dirstringarianet/migrationsdirectory of the migration files

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas plans​

List the plans and their limits

نحوه استفاده

arianet baas plans [flags]

مثال‌ها

arianet baas plans
arianet baas plans -o json

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas projects​

Create and manage projects

نحوه استفاده

arianet baas projects <command>

نام‌های دیگر: project

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas projects actions [project-id] [flags]

مثال‌ها

arianet baas projects actions 12 --limit 10

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--limitstringat most this many

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas projects connect​

Show the endpoint, key previews and the direct database connection

نحوه استفاده

arianet baas projects connect [project-id] [flags]

مثال‌ها

arianet baas projects connect 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas projects create​

Create a project (billed from the moment its database exists)

نحوه استفاده

arianet baas projects create [flags]

مثال‌ها

arianet baas projects create --name shop --plan free --wait

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas projects delete​

Delete a project and all its data

نحوه استفاده

arianet baas projects delete [project-id] [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas projects delete 12 --confirm abcdefghij0123456789

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--confirmstringthe project's ref, typed to confirm (arianet baas projects get) (required)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas projects get​

Show one project

نحوه استفاده

arianet baas projects get [project-id] [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas projects get 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas projects list​

List your projects

نحوه استفاده

arianet baas projects list [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas projects list
arianet baas projects list -o json

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas projects move​

Move a project to another workspace of your account (0: none)

نحوه استفاده

arianet baas projects move [project-id] [flags]

مثال‌ها

arianet baas projects move 12 --workspace 3

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
--workspaceint64the workspace ID (0: no workspace) (required)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas projects pause​

Pause a project: its database refuses connections, its data is kept

نحوه استفاده

arianet baas projects pause [project-id] [flags]

مثال‌ها

arianet baas projects pause 12 --wait

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas projects pause-schedule​

Show when an idle project pauses

نحوه استفاده

arianet baas projects pause-schedule [project-id] [flags]

نام‌های دیگر: idle

مثال‌ها

arianet baas projects pause-schedule 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas projects plan​

Move a project to another plan (billed from now)

نحوه استفاده

arianet baas projects plan [project-id] <plan-code> [flags]

مثال‌ها

arianet baas projects plan 12 pro

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas projects rename​

Rename a project

نحوه استفاده

arianet baas projects rename [project-id] [flags]

مثال‌ها

arianet baas projects rename 12 --name shop-staging

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--namestringnew name (required)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas projects resume​

Resume a paused project

نحوه استفاده

arianet baas projects resume [project-id] [flags]

مثال‌ها

arianet baas projects resume 12 --wait

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از 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).

نحوه استفاده

arianet baas push [project-id] [flags]

مثال‌ها

arianet baas push --dry-run       # what would change
arianet baas push
arianet baas push 12 --dir apps/shop --skip-functions

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas queues​

Message queues in the database

نحوه استفاده

arianet baas queues <command>

نام‌های دیگر: queue

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas queues create [project-id] <name> [flags]

مثال‌ها

arianet baas queues create 12 emails

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas queues delete​

Delete a queue and its messages

نحوه استفاده

arianet baas queues delete [project-id] <queue> [flags]

نام‌های دیگر: drop, rm

مثال‌ها

arianet baas queues delete 12 emails --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas queues delete-message​

Delete one message

نحوه استفاده

arianet baas queues delete-message [project-id] <queue> <message-id> [flags]

مثال‌ها

arianet baas queues delete-message 12 emails 41 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas queues list​

List the queues

نحوه استفاده

arianet baas queues list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas queues list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas queues messages​

Show a queue's messages (or its archive)

نحوه استفاده

arianet baas queues messages [project-id] <queue> [flags]

نام‌های دیگر: read

مثال‌ها

arianet baas queues messages 12 emails --limit 20
arianet baas queues messages 12 emails --archived

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--archivedboolshow the archive instead
--limitstringat most this many messages

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas queues purge​

Delete every message of a queue (the archive stays)

نحوه استفاده

arianet baas queues purge [project-id] <queue> [flags]

مثال‌ها

arianet baas queues purge 12 emails --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas queues send​

Send a message (a JSON value)

نحوه استفاده

arianet baas queues send [project-id] <queue> [flags]

مثال‌ها

arianet baas queues send 12 emails --message '{"to":"ana@example.com"}' --delay 60

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--delayint64seconds before it can be read
--messagestringthe message as JSON (required)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas realtime​

The realtime endpoint and the tables whose changes it sends

نحوه استفاده

arianet baas realtime <command>

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas realtime disable [project-id] <table> [flags]

مثال‌ها

arianet baas realtime disable 12 todos

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas realtime enable​

Send a table's changes to realtime subscribers (Postgres Changes)

نحوه استفاده

arianet baas realtime enable [project-id] <table> [flags]

مثال‌ها

arianet baas realtime enable 12 todos --old-records

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--old-recordsboolinclude the old row in updates and deletes (REPLICA IDENTITY FULL)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas realtime info​

Show the realtime URLs, limits and the tables enabled

نحوه استفاده

arianet baas realtime info [project-id] [flags]

نام‌های دیگر: get, show

مثال‌ها

arianet baas realtime info 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas reports​

Show the API, auth, storage and database report over a range

نحوه استفاده

arianet baas reports [project-id] [flags]

نام‌های دیگر: report

مثال‌ها

arianet baas reports 12 --range 7d
arianet baas reports 12 -o json

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--rangestring1h, 24h (default), 7d or 30d

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas sites <command>

نام‌های دیگر: site

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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>)

نحوه استفاده

arianet baas sites create [project-id] [flags]

مثال‌ها

arianet baas sites create 12 --name shop --spa-fallback

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas sites delete​

Delete a site, its deployments and its custom domains

نحوه استفاده

arianet baas sites delete [project-id] <site> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas sites delete 12 shop
arianet baas sites delete 12 shop --yes # no question (scripts)

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas sites deploy​

Upload a directory as a new deployment of a site and make it live

نحوه استفاده

arianet baas sites deploy [project-id] <dir> --site <name> [flags]

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas sites deployments​

List a site's deployments, newest first (get and delete are subcommands)

نحوه استفاده

arianet baas sites deployments [project-id] [--site <name>] [flags]

نام‌های دیگر: deployment, deploys

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--sitestringthe site (default: the project's only site)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas sites deployments delete [project-id] <deployment-id> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas sites deployments delete 12 5 --site shop --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas), --site (از arianet baas sites deployments)

arianet baas sites deployments get​

Show one deployment

نحوه استفاده

arianet baas sites deployments get [project-id] <deployment-id> [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas sites deployments get 12 7 --site shop

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas), --site (از arianet baas sites deployments)

arianet baas sites domains​

Serve a site at your own hostname

نحوه استفاده

arianet baas sites domains <command>

نام‌های دیگر: domain

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas sites domains add [project-id] <hostname> --site <name> [flags]

مثال‌ها

arianet baas sites domains add www.example.com --site shop

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--sitestringthe site the hostname serves (required)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas sites get​

Show a site with its deployments and domains

نحوه استفاده

arianet baas sites get [project-id] <site> [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas sites get 12 shop
arianet baas sites get 12 shop -o json

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas sites list​

List the project's sites with the plan's limits

نحوه استفاده

arianet baas sites list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas sites list 12
arianet baas sites list # in a linked directory

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas sites rollback​

Make an earlier deployment live (default: the one before the live one)

نحوه استفاده

arianet baas sites rollback [project-id] [deployment-id] --site <name> [flags]

نام‌های دیگر: promote

مثال‌ها

  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.

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--sitestringthe site (required)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas sites update​

Rename a site or change its settings

نحوه استفاده

arianet baas sites update [project-id] <site> [flags]

مثال‌ها

arianet baas sites update 12 shop --clean-urls --header '/assets/* Cache-Control: public, max-age=600'
arianet baas sites update 12 shop --name store

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas snippets​

SQL snippets saved with the project (the SQL editor's)

نحوه استفاده

arianet baas snippets <command>

نام‌های دیگر: snippet

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas snippets create [project-id] [flags]

مثال‌ها

arianet baas snippets create 12 --name 'open todos' --query 'select * from todos where not done'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas snippets delete​

Delete a snippet

نحوه استفاده

arianet baas snippets delete [project-id] <snippet-id> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas snippets delete 12 5 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas snippets list​

List the saved snippets

نحوه استفاده

arianet baas snippets list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas snippets list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas snippets update​

Change a snippet (give both its name and SQL)

نحوه استفاده

arianet baas snippets update [project-id] <snippet-id> [flags]

مثال‌ها

arianet baas snippets update 12 5 --name 'open todos' --file ./open-todos.sql

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-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

فلگ‌های به‌ارث‌رسیده: --region (از 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.

نحوه استفاده

arianet baas sql [project-id] [query] [flags]

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage​

Manage the project's buckets, files, storage policies and S3 keys

نحوه استفاده

arianet baas storage <command>

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas storage buckets [project-id] [flags]

نام‌های دیگر: bucket

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas storage buckets create [project-id] [flags]

مثال‌ها

arianet baas storage buckets create 12 --name avatars --public

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage buckets delete​

Delete an empty bucket

نحوه استفاده

arianet baas storage buckets delete [project-id] <bucket> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas storage buckets delete 12 avatars --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage buckets empty​

Delete every object of a bucket

نحوه استفاده

arianet baas storage buckets empty [project-id] <bucket> [flags]

مثال‌ها

arianet baas storage buckets empty 12 avatars --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage buckets get​

Show one bucket

نحوه استفاده

arianet baas storage buckets get [project-id] <bucket> [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas storage buckets get 12 avatars

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage buckets update​

Change a bucket: public, size limit, allowed types

نحوه استفاده

arianet baas storage buckets update [project-id] <bucket> [flags]

مثال‌ها

arianet baas storage buckets update 12 avatars --public=false --size-limit 5242880 --types image/png,image/jpeg

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage copy​

Copy an object

نحوه استفاده

arianet baas storage copy [project-id] <bucket> <from-path> <to-path> [flags]

مثال‌ها

arianet baas storage copy 12 avatars users/1/me.png backup/me.png

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--to-bucketstringinto this bucket (default: the same; its limits apply)
--upsertboolreplace an object that exists at the destination

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage download​

Download an object (to the object's file name, or - for standard output)

نحوه استفاده

arianet baas storage download [project-id] <bucket> <object-path> [local-file] [flags]

نام‌های دیگر: get

مثال‌ها

arianet baas storage download 12 avatars users/42/me.png
arianet baas storage download 12 exports report.csv - | head

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage ls​

List a folder of a bucket

نحوه استفاده

arianet baas storage ls [project-id] <bucket> [prefix] [flags]

نام‌های دیگر: list

مثال‌ها

arianet baas storage ls 12 avatars
arianet baas storage ls 12 avatars users/42/ --search .png

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--limitintat most this many entries (1-1000)
--offsetintskip this many entries
--searchstringonly names containing this

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage move​

Move or rename an object

نحوه استفاده

arianet baas storage move [project-id] <bucket> <from-path> <to-path> [flags]

مثال‌ها

arianet baas storage move 12 avatars old.png new.png --to-bucket archive

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--to-bucketstringinto this bucket (default: the same; its limits apply)
--upsertboolreplace an object that exists at the destination

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage policies​

Row level security policies of storage: who reads and writes which objects

نحوه استفاده

arianet baas storage policies <command>

نام‌های دیگر: policy

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas storage policies create [project-id] [flags]

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage policies drop​

Drop a storage policy (table: objects or buckets)

نحوه استفاده

arianet baas storage policies drop [project-id] <table> <policy> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas storage policies drop 12 objects 'avatars read' --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage policies list​

List the policies of storage.objects and storage.buckets

نحوه استفاده

arianet baas storage policies list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas storage policies list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage policies preview​

Show the SQL a policy request would run (nothing is run)

نحوه استفاده

arianet baas storage policies preview [project-id] [flags]

مثال‌ها

arianet baas storage policies preview 12 --template public_read --bucket avatars

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage rm​

Delete objects

نحوه استفاده

arianet baas storage rm [project-id] <bucket> <object-path>... [flags]

نام‌های دیگر: delete

مثال‌ها

arianet baas storage rm 12 avatars users/42/me.png users/42/old.png --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage s3-keys​

S3 access keys (service level: they bypass the storage policies)

نحوه استفاده

arianet baas storage s3-keys <command>

نام‌های دیگر: s3, s3-key

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas storage s3-keys create [project-id] [flags]

مثال‌ها

arianet baas storage s3-keys create 12 --description 'backup job'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--descriptionstringwhat the key is for
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage s3-keys list​

List the S3 access keys (never their secrets) and the S3 endpoint

نحوه استفاده

arianet baas storage s3-keys list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas storage s3-keys list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage s3-keys revoke​

Revoke an S3 access key at once

نحوه استفاده

arianet baas storage s3-keys revoke [project-id] <access-key-id> [flags]

نام‌های دیگر: delete, rm

مثال‌ها

arianet baas storage s3-keys revoke 12 ak_7Q2M9XW4 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage sign​

Make a time-limited URL of an object

نحوه استفاده

arianet baas storage sign [project-id] <bucket> <object-path> [flags]

مثال‌ها

arianet baas storage sign 12 invoices 2026/11/42.pdf --expires-in 600

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--expires-inintseconds the URL works (default: the service's)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage upload​

Upload a file (the object path defaults to the file's name)

نحوه استفاده

arianet baas storage upload [project-id] <bucket> <local-file> [object-path] [flags]

نام‌های دیگر: cp, put

مثال‌ها

arianet baas storage upload 12 avatars ./me.png users/42/me.png --upsert

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage upload-url​

Make a signed URL a client can PUT one file to

نحوه استفاده

arianet baas storage upload-url [project-id] <bucket> <object-path> [flags]

مثال‌ها

arianet baas storage upload-url 12 avatars users/42/me.png

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--upsertboolthe upload may replace an object that exists

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage uploads​

Resumable uploads of large files (storage upload --resumable)

نحوه استفاده

arianet baas storage uploads <command>

نام‌های دیگر: upload-session

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

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

arianet baas storage uploads cancel​

Cancel a resumable upload

نحوه استفاده

arianet baas storage uploads cancel [project-id] <upload-id> [flags]

مثال‌ها

arianet baas storage uploads cancel 12 7d3c9a1e --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas storage uploads status​

Show where a resumable upload stands

نحوه استفاده

arianet baas storage uploads status [project-id] <upload-id> [flags]

مثال‌ها

arianet baas storage uploads status 12 7d3c9a1e

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables​

Create, change and drop tables, their columns, indexes, policies and rows

نحوه استفاده

arianet baas tables <command>

نام‌های دیگر: table

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas tables alter [project-id] <table> [flags]

مثال‌ها

arianet baas tables alter 12 todos --name tasks --comment 'what to do'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--commentstringtable comment ("" removes it)
--namestringnew name
--rlsboolrow level security on or off
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables column-types​

List your enum types, for a column's type

نحوه استفاده

arianet baas tables column-types [project-id] [flags]

مثال‌ها

arianet baas tables column-types 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables columns​

Add, change or drop a table's columns

نحوه استفاده

arianet baas tables columns <command>

نام‌های دیگر: column

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas tables columns add [project-id] <table> [flags]

مثال‌ها

arianet baas tables columns add 12 todos --name owner --type uuid --references auth.users.id --on-delete cascade

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables columns alter​

Change a column: type, nullability, default, comment, name

نحوه استفاده

arianet baas tables columns alter [project-id] <table> <column> [flags]

مثال‌ها

arianet baas tables columns alter 12 todos title --type varchar(200) --nullable=false

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables columns drop​

Drop a column and its data

نحوه استفاده

arianet baas tables columns drop [project-id] <table> <column> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas tables columns drop 12 todos notes --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--cascadeboolalso drop what depends on it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables constraints​

Add or drop foreign key, unique, check and primary key constraints

نحوه استفاده

arianet baas tables constraints <command>

نام‌های دیگر: constraint

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

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

arianet baas tables constraints add​

Add a constraint

نحوه استفاده

arianet baas tables constraints add [project-id] <table> [flags]

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables constraints drop​

Drop a constraint

نحوه استفاده

arianet baas tables constraints drop [project-id] <table> <constraint> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas tables constraints drop 12 todos todos_owner_fkey --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--cascadeboolalso drop what depends on it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables create​

Create a table (row level security on unless --rls=false)

نحوه استفاده

arianet baas tables create [project-id] [flags]

مثال‌ها

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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables drop​

Drop a table and its data

نحوه استفاده

arianet baas tables drop [project-id] <table> [flags]

نام‌های دیگر: delete, rm

مثال‌ها

arianet baas tables drop 12 todos --yes
arianet baas tables drop 12 app.orders --cascade --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--cascadeboolalso drop what depends on it
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables get​

Show a table: columns, constraints, indexes, policies, triggers

نحوه استفاده

arianet baas tables get [project-id] <table> [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas tables get 12 todos
arianet baas tables get 12 app.orders -o json

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables indexes​

List, create or drop a table's indexes

نحوه استفاده

arianet baas tables indexes <command>

نام‌های دیگر: index

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

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

arianet baas tables indexes create​

Create an index

نحوه استفاده

arianet baas tables indexes create [project-id] <table> [flags]

مثال‌ها

arianet baas tables indexes create 12 todos --column owner,created_at --concurrently

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables indexes drop​

Drop an index

نحوه استفاده

arianet baas tables indexes drop [project-id] <table> <index> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas tables indexes drop 12 todos todos_owner_created_at_idx --concurrently --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--concurrentlybooldrop without locking writes
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables indexes list​

List a table's indexes

نحوه استفاده

arianet baas tables indexes list [project-id] <table> [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas tables indexes list 12 todos

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables list​

List a schema's tables and views

نحوه استفاده

arianet baas tables list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas tables list 12
arianet baas tables list 12 --schema app

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--schemastringschema (default public)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables policies​

Create or drop a table's row level security policies

نحوه استفاده

arianet baas tables policies <command>

نام‌های دیگر: policy

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas tables policies create [project-id] <table> [flags]

مثال‌ها

arianet baas tables policies create 12 todos --name "own rows" --command ALL --role authenticated \
--using "owner = auth.uid()" --with-check "owner = auth.uid()"

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables policies drop​

Drop a policy

نحوه استفاده

arianet baas tables policies drop [project-id] <table> <policy> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas tables policies drop 12 todos 'owners read' --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables rls​

Turn a table's row level security on or off

نحوه استفاده

arianet baas tables rls <command>

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas tables rls disable [project-id] <table> [flags]

نام‌های دیگر: off

مثال‌ها

arianet baas tables rls disable 12 todos --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables rls enable​

Turn row level security on

نحوه استفاده

arianet baas tables rls enable [project-id] <table> [flags]

نام‌های دیگر: on

مثال‌ها

arianet baas tables rls enable 12 todos

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--forceboolalso for the table's owner
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables rows​

Read and change a table's rows

نحوه استفاده

arianet baas tables rows <command>

نام‌های دیگر: row

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas tables rows delete [project-id] <table> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas tables rows delete 12 todos --key '{"id":1}' --key '{"id":2}'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--keystringArraya primary key as a JSON object (required) (repeatable JSON)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables rows insert​

Insert rows (at most 100)

نحوه استفاده

arianet baas tables rows insert [project-id] <table> [flags]

مثال‌ها

arianet baas tables rows insert 12 todos --row '{"title":"milk"}' --row '{"title":"bread"}'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables rows list​

Show a page of rows

نحوه استفاده

arianet baas tables rows list [project-id] <table> [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas tables rows list 12 todos --limit 20 --order created_at.desc --filter 'done.eq.false'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--filterstringfilter, e.g. done.eq.false
--limitstringrows per page
--offsetstringskip this many rows
--orderstringorder, e.g. created_at.desc

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables rows update​

Change one row, named by its whole primary key

نحوه استفاده

arianet baas tables rows update [project-id] <table> [flags]

مثال‌ها

arianet baas tables rows update 12 todos --key '{"id":1}' --set '{"done":true}'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas tables schemas​

List the schemas tables can be in

نحوه استفاده

arianet baas tables schemas [project-id] [flags]

مثال‌ها

arianet baas tables schemas 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas transfer​

Move a project to another Arianet account (it accepts within 7 days)

نحوه استفاده

arianet baas transfer [project-id] [flags]

مثال‌ها

arianet baas transfer 12 --to 123 --confirm abcdefghij0123456789
arianet baas transfer list --direction incoming

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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)

نحوه استفاده

arianet baas transfer accept <transfer-id> [flags]

مثال‌ها

arianet baas transfer accept 31 --wait

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas transfer cancel​

Cancel the project's pending transfer

نحوه استفاده

arianet baas transfer cancel [project-id] [flags]

مثال‌ها

arianet baas transfer cancel 12 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas transfer decline​

Decline a transfer to your account

نحوه استفاده

arianet baas transfer decline <transfer-id> [flags]

مثال‌ها

arianet baas transfer decline 31

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas transfer list​

List pending transfers to or from your account

نحوه استفاده

arianet baas transfer list [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas transfer list
arianet baas transfer list --direction outgoing

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--directionstringincoming or outgoing

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas transfer status​

Show the project's pending transfer

نحوه استفاده

arianet baas transfer status [project-id] [flags]

مثال‌ها

arianet baas transfer status 12

فلگ‌های به‌ارث‌رسیده: --region (از 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).

نحوه استفاده

arianet baas types [project-id] [flags]

مثال‌ها

arianet baas gen types --lang typescript --file src/database.types.ts
arianet baas gen types 12 --schema public,app > types.ts

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--filestringwrite to this file instead of standard output
--langstringtsoutput language: typescript (or ts)
--schemastringSlice[public]schemas to include (repeatable or comma separated)

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

Remove this directory's project link

نحوه استفاده

arianet baas unlink [flags]

مثال‌ها

arianet baas unlink

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas usage​

Show this month's use against the plan

نحوه استفاده

arianet baas usage [project-id] [flags]

مثال‌ها

arianet baas usage 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas vault​

Secrets stored encrypted with the project's own key, readable from your SQL

نحوه استفاده

arianet baas vault <command>

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas vault create [project-id] [flags]

مثال‌ها

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 -

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas vault delete​

Delete a secret

نحوه استفاده

arianet baas vault delete [project-id] <secret-id> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas vault delete 12 9 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas vault list​

List the secrets (never their values)

نحوه استفاده

arianet baas vault list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas vault list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas vault reveal​

Show a secret's value; recorded in your activity log

نحوه استفاده

arianet baas vault reveal [project-id] <secret-id> [flags]

مثال‌ها

arianet baas vault reveal 12 9

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas vault update​

Change a secret's name, description or value

نحوه استفاده

arianet baas vault update [project-id] <secret-id> [flags]

مثال‌ها

arianet baas vault update 12 9 --value-file ./payment.key
arianet baas vault update 12 9 --description 'live key'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas webhooks​

Database Webhooks: POST a table's inserts, updates and deletes to a URL

نحوه استفاده

arianet baas webhooks <command>

نام‌های دیگر: webhook

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

زیردستورها

  • 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

نحوه استفاده

arianet baas webhooks create [project-id] [flags]

مثال‌ها

arianet baas webhooks create 12 --name orders --table orders --event INSERT,UPDATE --url https://example.com/hooks/orders

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas webhooks delete​

Delete a webhook, its trigger and its queued events

نحوه استفاده

arianet baas webhooks delete [project-id] <webhook-id> [flags]

نام‌های دیگر: rm

مثال‌ها

arianet baas webhooks delete 12 4 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip the confirmation prompt

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas webhooks deliveries​

Show a webhook's deliveries (7 days)

نحوه استفاده

arianet baas webhooks deliveries [project-id] <webhook-id> [flags]

مثال‌ها

arianet baas webhooks deliveries 12 4 --status failed --limit 20

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--beforestringthe next page: deliveries before this ID
--limitstringat most this many
--statusstringonly retrying, success or failed

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas webhooks get​

Show one webhook

نحوه استفاده

arianet baas webhooks get [project-id] <webhook-id> [flags]

نام‌های دیگر: show

مثال‌ها

arianet baas webhooks get 12 4

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas webhooks list​

List the webhooks

نحوه استفاده

arianet baas webhooks list [project-id] [flags]

نام‌های دیگر: ls

مثال‌ها

arianet baas webhooks list 12

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)

arianet baas webhooks update​

Change a webhook (the flags given; the rest stays)

نحوه استفاده

arianet baas webhooks update [project-id] <webhook-id> [flags]

مثال‌ها

arianet baas webhooks update 12 4 --enabled=false

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--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

فلگ‌های به‌ارث‌رسیده: --region (از arianet baas)