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>
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--region | string | regional 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 JSONapi-settings: Show or change the REST row limit and the JWT expiryauth: The project's end-user authentication: users, settings, providers, hooks, templates, logsbackups: Backups of the project's database, restore and point-in-time restorecron: Run SQL or call a URL on a schedule (Cron jobs)db: Migrations (push, pull, diff) and the database: settings, schemas, extensions, enums, functions, triggers, views, import, exportdomains: Serve the project at your own hostname (paid plans)env: Print the URL and anon key your app needs, as .env lines or JSONfunctions: Write, run, deploy and manage the project's edge functionsgen: Generate code from the project's databasegit: Deploy from a GitHub or GitLab repository: connect, deployments, logs, previews, promotekeys: Show, reveal and rotate a project's keyslink: Link this directory to a project, so the project ID can be left out herelogs: Show the project's request logs (last 7 days) and SQL editor runsmigration: Create migration files and compare them with what the project appliedplans: List the plans and their limitsprojects: Create and manage projectspush: Apply the backend of a directory: migrations, config.toml and functions (what a git deploy does)queues: Message queues in the databaserealtime: The realtime endpoint and the tables whose changes it sendsreports: Show the API, auth, storage and database report over a rangesites: Host static and single-page sites: deploy a build directory, roll back, custom domainssnippets: SQL snippets saved with the project (the SQL editor's)sql: Run SQL as the project's owner (one transaction) and print the resultstorage: Manage the project's buckets, files, storage policies and S3 keystables: Create, change and drop tables, their columns, indexes, policies and rowstransfer: Move a project to another Arianet account (it accepts within 7 days)types: Alias of gen types: generate TypeScript types of the databaseunlink: Remove this directory's project linkusage: Show this month's use against the planvault: Secrets stored encrypted with the project's own key, readable from your SQLwebhooks: Database Webhooks: POST a table's inserts, updates and deletes to a URL
arianet baas actions
Follow asynchronous operations (actions)
نحوه استفاده
arianet baas actions <command>
نامهای دیگر: action
فلگهای بهارثرسیده: --region (از arianet baas)
زیردستورها
get: Show one operationlist: List your latest operationswait: Wait until operations finish; exits non-zero if one fails or the timeout passes
arianet baas actions get
Show one operation
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--limit | string | at 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--details | bool | print each finding's fix and SQL | |
--kind | string | only security or performance findings | |
--run | bool | run the checks now (rate limited) instead of showing the last run |
فلگهای بهارثرسیده: --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"}'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--data | string | the JSON request body | |
--file | string | read 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)
زیردستورها
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-expiry | int64 | lifetime of issued access tokens in seconds (300-604800) | |
--max-rows | int64 | most rows one REST request returns (1-100000) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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 firsthooks: Auth hooks: custom access token claims, send email or SMS yourself, verification attemptsproviders: External sign-in providers (OAuth / OpenID Connect)secrets: Secrets of the auth configuration: provider:<name>, smtp, captcha, hook:<kind>settings: Show or change how the project's auth treats its userssms: Show the SMS log: each code sent, its delivery state, line and operatorsmtp: Your own SMTP server (set it with auth settings set --smtp-*)templates: The emails auth sends: confirm sign-up, invite, magic link, recovery, email changeusers: Manage the project's end users
arianet baas auth audit
Show the auth events (sign-ins, sign-ups, token refreshes...), newest first
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--action | string | only this action, e.g. login | |
--actor | string | only this user's | |
--from | string | only after this time (RFC 3339) | |
--ip | string | only from this address | |
--page | string | page number | |
--per-page | string | entries per page | |
--search | string | search the entries | |
--to | string | only before this time (RFC 3339) |
فلگهای بهارثرسیده: --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 offlist: List the hooks and which are onset: Point an auth hook at a database function or an https URL
arianet baas auth hooks disable
Turn a hook off
نحوه استفاده
arianet baas auth hooks disable [project-id] <hook> [flags]
مثالها
arianet baas auth hooks disable 12 custom_access_token
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--enabled | bool | the hook runs | |
--generate-secret | bool | make a new signing secret for an https hook and show it once | |
--timeout | duration | 15m0s | how long --wait waits |
--uri | string | pg-functions://postgres/<schema>/<function> or an https:// URL | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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 offlist: List the providers and which are onset: Turn on or change an external sign-in provider (e.g. google, github, custom:<name>)
arianet baas auth providers disable
Turn a provider off
نحوه استفاده
arianet baas auth providers disable [project-id] <provider> [flags]
مثالها
arianet baas auth providers disable 12 custom:corp
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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-id | stringArray | more accepted client IDs (replaces the list) (repeatable, or comma separated) | |
--client-id | string | the OAuth client ID | |
--enabled | bool | sign-in with it is on | |
--name | string | the name shown for a custom provider | |
--scopes | string | extra scopes, space separated | |
--secret-file | string | read the client secret from this file (- for standard input); stored sealed | |
--skip-nonce-check | bool | accept ID tokens without a nonce | |
--timeout | duration | 15m0s | how long --wait waits |
--url | string | the issuer URL (custom providers; optional for gitlab and azure) | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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)
زیردستورها
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--generate | bool | make a hook's signing secret and show it once | |
--timeout | duration | 15m0s | how long --wait waits |
--value | string | the value (it stays in your shell history; prefer --value-file) | |
--value-file | string | read the value from this file (- for standard input) | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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 hooksset: Change auth settings (only the flags given; --file for providers and hooks too)
arianet baas auth settings get
Show the auth settings, providers and hooks
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--section | string | only 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-enabled | bool | anonymous sign-ins | |
--app-name | string | the app's name in messages | |
--captcha-enabled | bool | check a CAPTCHA on sign-up and sign-in | |
--captcha-provider | string | hcaptcha or turnstile | |
--captcha-site-key | string | the CAPTCHA site key (its secret: auth secrets set captcha) | |
--data | string | the JSON request body; flags given as well override its fields | |
--disable-signup | bool | refuse new sign-ups | |
--email-confirm-required | bool | a new email must be confirmed before sign-in | |
--email-enabled | bool | sign-in with email | |
--file | string | read the JSON request body from this file | |
--jwt-expiry | int64 | access token lifetime in seconds (300-604800) | |
--language | string | language of the platform's messages: fa or en | |
--leaked-password-protection | bool | refuse passwords known from leaks | |
--manual-linking | bool | users may link identities themselves | |
--mfa-max-factors | int64 | most factors per user (1-20) | |
--mfa-phone-enroll | bool | users may enroll phone factors | |
--mfa-phone-verify | bool | phone factor codes are accepted | |
--mfa-totp-enroll | bool | users may enroll authenticator apps | |
--mfa-totp-verify | bool | authenticator app codes are accepted | |
--otp-expiry | int64 | seconds a one-time code is valid | |
--otp-length | int64 | digits of a one-time code | |
--password-min-length | int64 | shortest password | |
--password-required-characters | string | "", letters_digits, lower_upper_digits or lower_upper_digits_symbols | |
--phone-confirm-required | bool | a new phone must be confirmed before sign-in | |
--phone-enabled | bool | sign-in with a phone number | |
--rate-anonymous-per-hour | int64 | anonymous sign-ins per hour (0: the plan's) | |
--rate-emails-per-hour | int64 | emails sent per hour (0: the plan's) | |
--rate-sign-in | int64 | sign-ins per 5 minutes per address (0: the plan's) | |
--rate-sms-per-hour | int64 | SMS sent per hour (0: the plan's) | |
--rate-token-refresh | int64 | token refreshes per 5 minutes (0: the plan's) | |
--rate-verify | int64 | verifications per 5 minutes (0: the plan's) | |
--redirect-url | stringArray | the URLs a sign-in may redirect to (replaces the list) (repeatable, or comma separated) | |
--secure-email-change | bool | an email change is confirmed at both addresses | |
--secure-password-change | bool | a password change needs a recent sign-in | |
--session-inactivity-timeout | int64 | a session ends after this many idle seconds (0: never) | |
--session-timebox | int64 | a session ends after this many seconds (0: never) | |
--single-session | bool | one session per user (a new sign-in ends the others) | |
--site-url | string | the app's URL (the default redirect after sign-in) | |
--sms-enabled | bool | send SMS from the platform's line (within the plan) | |
--smtp-enabled | bool | send email through your own SMTP server | |
--smtp-host | string | SMTP host | |
--smtp-port | int64 | SMTP port | |
--smtp-sender-email | string | sender address | |
--smtp-sender-name | string | sender name | |
--smtp-user | string | SMTP user (its password: auth secrets set smtp) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--page | string | page number | |
--per-page | string | entries per page | |
--phone | string | only 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--host | string | SMTP host | |
--password-file | string | try this password instead of the stored one (read from the file, - for standard input) | |
--port | int64 | SMTP port | |
--sender-email | string | sender address | |
--sender-name | string | sender name | |
--timeout | duration | 15m0s | how long --wait waits |
--to | string | the recipient (required) | |
--user | string | SMTP user | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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 bodylist: List the templates and which are your ownpreview: Render a template with example data (nothing is stored or sent)reset: Go back to the platform's messageset: Use your own template (signup, invite, magiclink, recovery, email_change, reauthentication)
arianet baas auth templates get
Print a template's subject and body
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--body | string | the HTML body (prefer --body-file) | |
--body-file | string | read the HTML body from this file (- for standard input) | |
--subject | string | the subject | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--body | string | the HTML body (prefer --body-file) | |
--body-file | string | read the HTML body from this file (- for standard input) | |
--subject | string | the subject | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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 userdelete: Delete a userfactors: A user's MFA factorsget: Show one userlist: List the project's userssend: Send the user a magic link (or code) or a password recovery messagesessions: A user's sessionsupdate: Change a user: email, phone, password, confirmation, metadata, ban
arianet baas auth users create
Create a user
نحوه استفاده
arianet baas auth users create [project-id] [flags]
مثالها
arianet baas auth users create 12 --email ana@example.com --password 'S3cret-pass' --email-confirm
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--email | string | email address | |
--email-confirm | bool | mark the email as confirmed | |
--password | string | password | |
--phone | string | phone number | |
--phone-confirm | bool | mark the phone as confirmed | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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)
زیردستورها
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--page | string | page number | |
--per-page | string | users per page (at most 200) | |
--search | string | search 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--type | string | magiclink or recovery (required) | |
--wait | bool | wait 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 sessionsrevoke: End one sessionrevoke-all: End every session of a user (signs them out everywhere)
arianet baas auth users sessions list
List a user's sessions
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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-metadata | string | app metadata as a JSON object | |
--ban | string | ban for this long (e.g. 24h, 876000h), or "none" to lift a ban | |
--email | string | new email address | |
--email-confirm | bool | mark the email as confirmed | |
--password | string | new password | |
--phone | string | new phone number | |
--phone-confirm | bool | mark the phone as confirmed | |
--timeout | duration | 15m0s | how long --wait waits |
--user-metadata | string | user metadata as a JSON object | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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 nowdownload: Download a ready backup (a custom-format dump pg_restore reads; - for standard output)list: List the backups and the plan's backup policypitr: Restore the project to a point in time (paid plans)restore: Restore a backup into the project (traffic paused, a safety backup first)
arianet baas backups create
Make a manual backup now
نحوه استفاده
arianet baas backups create [project-id] [flags]
مثالها
arianet baas backups create 12 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--confirm | string | the project's ref, typed to confirm (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--to | string | the moment to go back to (RFC 3339, e.g. 2026-11-28T09:30:00Z) (required) | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--confirm | string | the project's ref, typed to confirm (arianet baas projects get) (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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 URLdelete: Delete a Cron jobdisable: Turn a Cron job offenable: Turn a Cron job onlist: List the Cron jobspreview: Check a schedule: its shortest interval and next five runsrun: Run a Cron job once, nowruns: Show a Cron job's runs (7 days)update: Change a Cron job (the flags given; the rest stays)
arianet baas cron create
Create a Cron job that runs SQL or calls a URL
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--data | string | the JSON request body; flags given as well override its fields | |
--enabled | bool | the job runs on its schedule (default true) | |
--file | string | read the JSON request body from this file | |
--http-body | string | the request body | |
--http-header | stringArray | a request header (repeatable name=value) | |
--http-method | string | GET, POST, PUT, PATCH or DELETE | |
--http-timeout-ms | int64 | the request timeout in milliseconds | |
--http-url | string | the URL to call | |
--kind | string | sql or http (default: from --sql or --http-url) | |
--name | string | job name | |
--schedule | string | cron schedule, e.g. "*/5 * * * *" or "30 seconds" | |
--sql | string | the SQL to run | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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 * * * *"
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--before | string | the next page: runs before this ID | |
--limit | string | at 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 * * *"
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--data | string | the JSON request body; flags given as well override its fields | |
--enabled | bool | the job runs on its schedule (default true) | |
--file | string | read the JSON request body from this file | |
--http-body | string | the request body | |
--http-header | stringArray | a request header (repeatable name=value) | |
--http-method | string | GET, POST, PUT, PATCH or DELETE | |
--http-timeout-ms | int64 | the request timeout in milliseconds | |
--http-url | string | the URL to call | |
--kind | string | sql or http (default: from --sql or --http-url) | |
--name | string | job name | |
--schedule | string | cron schedule, e.g. "*/5 * * * *" or "30 seconds" | |
--sql | string | the SQL to run | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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 servesdiagram: Show a schema's tables and foreign keys (-o json for the columns)diff: Compare the migration files and the newest schema snapshot with the projectenums: List, create, change or drop enumerated typesexport: Download a table, or the rows of one SELECT, as CSVextensions: List, enable or disable PostgreSQL extensionsfunctions: List, create or drop SQL functions (callable at /rest/v1/rpc/<name>)import: Import a CSV file into a table in one transaction (a refused row rolls everything back)import-limits: Show how much one CSV import takes on the project's plannetwork: Set the networks allowed to reach the external database endpoint (--any: every address)password: The direct database login's passwordpull: Write the schema (tables, views, functions, enums, policies...) as a SQL filepush: Apply the migration files (*.sql) not applied yet, in name order, in one transactionroles: List the API roles and your database rolesschemas: List, create or drop schemassettings: Show the connection strings, SSL, allowed networks, timeout and sizessl: Require SSL on the external database endpoint, or allow plain connectionstriggers: List, create, enable, disable or drop triggersviews: List, create, refresh or drop views and materialized views
arianet baas db api-docs
Show the REST API reference: every table, view and function it serves (-o json for all of it)
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--schema | stringArray | the served schemas, the default first (required) (repeatable, or comma separated) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--schema | string | schema (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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--against | string | compare the schema with this file instead of the newest snapshot | |
--dir | string | arianet/migrations | directory of the migration files and snapshots |
--schema | stringSlice | [public] | schemas to compare (repeatable or comma separated) |
فلگهای بهارثرسیده: --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 typedrop: Drop an enumerated typelist: List a schema's enumerated typesrename-value: Rename a value
arianet baas db enums add-value
Add a value (at the end, or --before / --after another)
نحوه استفاده
arianet baas db enums add-value [project-id] <type> <value> [flags]
مثالها
arianet baas db enums add-value 12 status review --after draft
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--after | string | put it after this value | |
--before | string | put it before this value | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--comment | string | type comment | |
--schema | string | schema (default public) | |
--timeout | duration | 15m0s | how long --wait waits |
--value | stringArray | the values, in order (required) (repeatable, or comma separated) | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--cascade | bool | also drop the columns that use it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--schema | string | schema (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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--name | string | file name the service suggests for a query export | |
--out | string | - | write the CSV to this file (- for standard output) |
--query | string | a SELECT whose rows to export (read-only) | |
--table | string | the table to export (schema.table; public when no schema) |
فلگهای بهارثرسیده: --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 extensionenable: Enable an extension (into the extensions schema)list: List the extensions on offer and their state
arianet baas db extensions disable
Disable an extension
نحوه استفاده
arianet baas db extensions disable [project-id] <name> [flags]
مثالها
arianet baas db extensions disable 12 pg_trgm --yes
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--cascade | bool | also drop what depends on it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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 plpgsqldrop: Drop a function, named by its OID (db functions list)list: List a schema's functions
arianet baas db functions create
Create a function in sql or plpgsql
نحوه استفاده
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'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--arg | stringArray | an argument as [name]:type[:in|out|inout|variadic][:default=<expression>] (repeatable) | |
--behavior | string | volatile, stable or immutable | |
--body | string | the function body | |
--body-file | string | read the function body from this file (- for standard input) | |
--comment | string | function comment | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--language | string | sql or plpgsql (required) | |
--or-replace | bool | replace a function with the same arguments | |
--returns | string | return type, e.g. int, setof todos, trigger, void (required) | |
--returns-set | bool | returns a set of rows | |
--schema | string | schema (default public) | |
--search-path | stringArray | the function's search_path (repeatable, or comma separated) | |
--security-definer | bool | run with the owner's rights | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--cascade | bool | also drop what depends on it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--schema | string | schema (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 ';'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--column | stringArray | the table column of each CSV column, in order (default: the header line) | |
--delimiter | string | field delimiter, one character (default ,) | |
--no-header | bool | the first line is data, not column names |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--allow | stringArray | an allowed network in CIDR notation (repeatable, or comma separated) | |
--any | bool | allow 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--confirm | string | the project's ref, typed to confirm (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--dir | string | arianet/migrations | directory to write the snapshot into |
--file | string | write to this file instead (- for standard output) | |
--mark-applied | bool | record the snapshot as applied in the project, so db push skips it | |
--schema | stringSlice | [public] | schemas to write (repeatable or comma separated) |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--dir | string | arianet/migrations | directory of the migration files |
--dry-run | bool | list 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--comment | string | schema comment | |
--grant-api-roles | bool | give anon, authenticated and service_role what they have in public | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--cascade | bool | also drop every object in it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --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)
زیردستورها
allow-plain: Accept connections without SSL tooenforce: Refuse connections without SSL
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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 functiondisable: Disable a triggerdrop: Drop a triggerenable: Enable a triggerlist: List the triggers on a schema's tables
arianet baas db triggers create
Create a trigger that calls a trigger function
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--event | stringArray | INSERT, UPDATE, DELETE or TRUNCATE (required) (repeatable, or comma separated) | |
--function | string | the trigger function (required) | |
--function-schema | string | the trigger function's schema (default public) | |
--orientation | string | ROW (default) or STATEMENT | |
--timeout | duration | 15m0s | how long --wait waits |
--timing | string | BEFORE, AFTER or INSTEAD OF (required) | |
--update-column | stringArray | only on updates of these columns (repeatable, or comma separated) | |
--wait | bool | wait until the operation finishes | |
--when | string | WHEN condition |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--schema | string | schema (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 SELECTdrop: Drop a viewlist: List a schema's viewspreview: Run one SELECT read-only and show its first 20 rows (what a view would show)refresh: Refresh a materialized viewsecurity: Turn a view's security_invoker on or off
arianet baas db views create
Create a view or materialized view from one SELECT
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--comment | string | view comment | |
--materialized | bool | a materialized view | |
--or-replace | bool | replace a view with the same name | |
--query | string | the SELECT (required) | |
--schema | string | schema (default public) | |
--security-invoker | bool | check the caller's rights (row level security applies) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
--with-data | bool | fill a materialized view now |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--cascade | bool | also drop what depends on it | |
--materialized | bool | it is a materialized view | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--schema | string | schema (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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--concurrently | bool | stay readable meanwhile (needs a unique index) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--invoker | bool | check the caller's rights (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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 createcheck: Check the DNS records now; once both are right the certificate is issuedlist: List the custom domains and the DNS records each needsremove: Remove a custom domain
arianet baas domains add
Add a custom domain; prints the CNAME and TXT records to create
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--format | string | dotenv 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--dir | string | arianet/functions | the folder holding the function folders |
فلگهای بهارثرسیده: --region (از arianet baas)
زیردستورها
activate: Make an earlier version active againconfig: Settings of every function of the projectdelete: Delete a function and all its versionsdeploy: Bundle and deploy functions (every function folder when no name is given)download: Download a deployed function's code into arianet/functions/get: Show one function and its latest versionsinvoke: Call a deployed function as anon, service_role or nobody and print its answerlist: List the project's functions with the plan's limits and this month's uselogs: Show the function's invocations and console lines (7 days), newest firstnew: Create arianet/functions/<name>/index.ts from a templatesecrets: Manage the secrets every function of the project reads as environment variablesserve: Run a function on your machine with Deno, restarting on every changesource: List a version's text files, or print one with --filestats: Show invocations, errors and the average duration (24h or 7d)update: Change a function's settings (who may call it)
arianet baas functions activate
Make an earlier version active again
نحوه استفاده
arianet baas functions activate [project-id] <name> <version> [flags]
نامهای دیگر: rollback
مثالها
arianet baas functions activate 12 hello-world 3 --yes
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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)
زیردستورها
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-key | bool | functions get the service key as an environment variable (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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-jwt | bool | let anyone call the function, without a JWT | |
--verify-jwt | bool | require 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--force | bool | overwrite files that exist | |
--version | int | this 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--body | string | the request body | |
--body-file | string | read the request body from this file (- for standard input) | |
--header | stringArray | a request header as "Name: value" (repeatable) | |
--method | string | HTTP method (default POST) | |
--path | string | path after the function's URL, with a query if any | |
--role | string | call as anon (default), service_role or none (no Authorization) |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--before | string | the next page: entries before this ID | |
--kind | string | only log or invocation | |
--limit | string | at 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-file | string | read 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, --yes | bool | skip 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-file | string | environment variables for the run (default: arianet/functions/.env when it exists) | |
--port | int | 8000 | the port to announce and pass as PORT |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--file | string | print this file's text | |
--version | string | the 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--range | string | 24h (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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--verify-jwt | bool | a call needs a project JWT (required) | |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--file | string | write to this file instead of standard output | |
--lang | string | typescript | output language: typescript (or ts) |
--schema | stringSlice | [public] | schemas to include (repeatable or comma separated) |
فلگهای بهارثرسیده: --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 deploymentconnect: Connect a GitHub or GitLab repository: pushes deploy the projectdeploy: Deploy a branch's head now (default: the production branch)deployment: Show one deployment with what each step diddeployments: List deployments from git, newest firstdisconnect: Disconnect the repository: its webhook is removed, queued deployments canceled, previews removedlogs: Print a deployment's log: the pipeline's steps and the build's outputpreviews: List the previews: one hostname per branch or pull/merge request (rm is a subcommand)promote: Make a ready preview production (reuses its build, applies its backend)redeploy: Deploy the same commit again (a new deployment)status: Show the connected repository, its webhook and this month's build minutesupdate: Change the connection: branch, paths, site build settings, previews or the token
arianet baas git cancel
Cancel a queued or running deployment
A queued deployment stops at once, a running one at its next step (its build is stopped); the project keeps what it had. Needs the baas:git:manage scope.
نحوه استفاده
arianet baas git cancel [project-id] <deployment-id> [flags]
مثالها
arianet baas git cancel 31
arianet baas git cancel 12 31 --yes
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
-y, --yes | bool | skip 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-url | string | the git host's API (empty: https://api.github.com or https://gitlab.com; GitHub Enterprise .../api/v3 or a self-hosted GitLab) | |
--build-command | string | the site's build command (empty: <package manager> run build when package.json has one) | |
--config-path | string | the config file (default arianet/config.toml) | |
--env | stringArray | a build environment variable NAME=VALUE, not secret (repeatable; replaces the list) | |
--functions-dir | string | the functions directory (default arianet/functions) | |
--install-command | string | the site's install command (empty: from the lock file, e.g. npm ci) | |
--migrations-dir | string | the migrations directory (default arianet/migrations) | |
--no-site | bool | build no site: deploy the backend only | |
--output-dir | string | the build's output directory (empty: the first of dist, build, out, public) | |
--package-manager | string | auto, npm, pnpm or yarn (auto: from the lock file) | |
--previews | bool | true | other branches and pull/merge requests get preview deployments |
--production-branch | string | pushes to this branch deploy production (empty: the repository's default branch) | |
--provider | string | github or gitlab (required) | |
--repo | string | owner/name (GitHub) or group[/subgroup]/name (GitLab) | |
--root-dir | string | the app's directory in the repository (a monorepo); every path below is relative to it | |
--site | string | build a site and deploy it to this site (made when missing) | |
--token | string | the repository token as a value (stays in your shell's history: prefer --token-file) | |
--token-file | string | read the repository token from this file (- for stdin) |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--branch | string | the branch to deploy (default: the production branch) | |
-f, --follow | bool | print 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--before | string | the next page: deployments older than this ID | |
--branch | string | only this branch | |
--kind | string | only production or preview | |
--limit | string | at most this many (1-100) | |
--status | string | only queued, building, deploying, ready, failed, canceled or superseded |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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, --follow | bool | keep 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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, --follow | bool | print the new deployment's log until it ends | |
-y, --yes | bool | skip 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, --follow | bool | print 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-url | string | the git host's API (empty: https://api.github.com or https://gitlab.com; GitHub Enterprise .../api/v3 or a self-hosted GitLab) | |
--build-command | string | the site's build command (empty: <package manager> run build when package.json has one) | |
--config-path | string | the config file (default arianet/config.toml) | |
--env | stringArray | a build environment variable NAME=VALUE, not secret (repeatable; replaces the list) | |
--functions-dir | string | the functions directory (default arianet/functions) | |
--install-command | string | the site's install command (empty: from the lock file, e.g. npm ci) | |
--migrations-dir | string | the migrations directory (default arianet/migrations) | |
--no-site | bool | build no site: deploy the backend only | |
--output-dir | string | the build's output directory (empty: the first of dist, build, out, public) | |
--package-manager | string | auto, npm, pnpm or yarn (auto: from the lock file) | |
--previews | bool | true | other branches and pull/merge requests get preview deployments |
--production-branch | string | pushes to this branch deploy production (empty: the repository's default branch) | |
--provider | string | github or gitlab | |
--repo | string | owner/name (GitHub) or group[/subgroup]/name (GitLab) | |
--root-dir | string | the app's directory in the repository (a monorepo); every path below is relative to it | |
--site | string | build a site and deploy it to this site (made when missing) | |
--token | string | the repository token as a value (stays in your shell's history: prefer --token-file) | |
--token-file | string | read the repository token from this file (- for stdin) |
فلگهای بهارثرسیده: --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 logrotate: Issue new anon and service keys; the previous ones keep working for the overlap
arianet baas keys list
List the project's keys (previews only)
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --region (از arianet baas)
arianet baas link
Link this directory to a project, so the project ID can be left out here
Link the current directory to a project: arianet/.baas/project.json records its ID, ref, name, endpoint and region. Afterwards every baas command run in this directory that takes the project ID as its first argument uses the linked project when the ID is left out; an explicit ID still wins. Without an argument, your only project is linked (or the list is shown). The file holds no secret and can be committed.
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--before | int64 | the next page: entries before this one (printed under the table) | |
--level | string | only this level: info, warning or error | |
--limit | int | at most this many entries (1-500) | |
--method | string | only this HTTP method | |
--search | string | only paths containing this | |
--since | duration | only entries newer than this, e.g. 30m or 24h | |
--source | string | only this component: gateway, auth, storage, rest, sql, functions or realtime | |
--status | int | only this status class: 2, 3, 4 or 5 | |
--until | string | only entries older than this time (RFC 3339) |
فلگهای بهارثرسیده: --region (از arianet baas)
زیردستورها
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)
زیردستورها
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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"}'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--filters | string | the filters as a JSON object (source, level, method, q, status...) | |
--name | string | query name (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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 onlynew: Create an empty migration file named <UTC timestamp>_<name>.sql
arianet baas migration list
List the local migration files and the project's history: applied, pending, changed or remote only
نحوه استفاده
arianet baas migration list [project-id] [flags]
نامهای دیگر: ls
مثالها
arianet baas migration list
arianet baas migration list 12 --dir ./db/migrations
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--dir | string | arianet/migrations | directory 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--dir | string | arianet/migrations | directory 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 operationsconnect: Show the endpoint, key previews and the direct database connectioncreate: Create a project (billed from the moment its database exists)delete: Delete a project and all its dataget: Show one projectlist: List your projectsmove: Move a project to another workspace of your account (0: none)pause: Pause a project: its database refuses connections, its data is keptpause-schedule: Show when an idle project pausesplan: Move a project to another plan (billed from now)rename: Rename a projectresume: Resume a paused project
arianet baas projects actions
List the project's operations
نحوه استفاده
arianet baas projects actions [project-id] [flags]
مثالها
arianet baas projects actions 12 --limit 10
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--limit | string | at 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--name | string | project name: 1-64 letters, digits, spaces, dots, dashes or underscores (required) | |
--plan | string | plan code (arianet baas plans) (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
--workspace | int64 | workspace ID (optional) |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--confirm | string | the project's ref, typed to confirm (arianet baas projects get) (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
--workspace | int64 | the 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--name | string | new name (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--config | string | arianet/config.toml | the config file |
--dir | string | . | the app's directory (the paths below are relative to it) |
--dry-run | bool | show what would change; change nothing | |
--functions-dir | string | arianet/functions | the functions directory |
--migrations-dir | string | arianet/migrations | the migrations directory |
--skip-config | bool | leave config.toml out | |
--skip-functions | bool | leave the functions out | |
--skip-migrations | bool | leave the migrations out |
فلگهای بهارثرسیده: --region (از arianet baas)
arianet baas queues
Message queues in the database
نحوه استفاده
arianet baas queues <command>
نامهای دیگر: queue
فلگهای بهارثرسیده: --region (از arianet baas)
زیردستورها
create: Create a queuedelete: Delete a queue and its messagesdelete-message: Delete one messagelist: List the queuesmessages: Show a queue's messages (or its archive)purge: Delete every message of a queue (the archive stays)send: Send a message (a JSON value)
arianet baas queues create
Create a queue
نحوه استفاده
arianet baas queues create [project-id] <name> [flags]
مثالها
arianet baas queues create 12 emails
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--archived | bool | show the archive instead | |
--limit | string | at 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--delay | int64 | seconds before it can be read | |
--message | string | the message as JSON (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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 changesenable: Send a table's changes to realtime subscribers (Postgres Changes)info: Show the realtime URLs, limits and the tables enabled
arianet baas realtime disable
Stop sending a table's changes
نحوه استفاده
arianet baas realtime disable [project-id] <table> [flags]
مثالها
arianet baas realtime disable 12 todos
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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-records | bool | include the old row in updates and deletes (REPLICA IDENTITY FULL) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--range | string | 1h, 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 domainsdeploy: Upload a directory as a new deployment of a site and make it livedeployments: List a site's deployments, newest first (get and delete are subcommands)domains: Serve a site at your own hostnameget: Show a site with its deployments and domainslist: List the project's sites with the plan's limitsrollback: Make an earlier deployment live (default: the one before the live one)update: Rename a site or change its settings
arianet baas sites create
Create a site (its hostname is <name>.<sites domain>)
نحوه استفاده
arianet baas sites create [project-id] [flags]
مثالها
arianet baas sites create 12 --name shop --spa-fallback
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--clean-urls | bool | serve /about from /about.html (and redirect /about.html to /about) | |
--header | stringArray | a header rule '<path> <Name>: <value>' (path exact or a prefix ending in *); replaces the site's header rules (repeatable) | |
--name | string | site name: 3-40 lowercase letters, digits or -, unique in the region (required) | |
--redirect | stringArray | a redirect rule '<from> <to> [301|302|307|308]'; replaces the site's redirect rules (repeatable) | |
--spa-fallback | bool | serve /index.html for paths that are not files (single-page apps) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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)
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--create | bool | create the site first when the project has none of that name | |
--no-promote | bool | make the deployment ready without making it live | |
--site | string | the site to deploy to (required) |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--site | string | the site (default: the project's only site) |
فلگهای بهارثرسیده: --region (از arianet baas)
زیردستورها
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, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--site | string | the 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.
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--site | string | the 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-urls | bool | serve /about from /about.html (and redirect /about.html to /about) | |
--clear-headers | bool | remove every header rule | |
--clear-redirects | bool | remove every redirect rule | |
--header | stringArray | a header rule '<path> <Name>: <value>' (path exact or a prefix ending in *); replaces the site's header rules (repeatable) | |
--name | string | new name (the hostname moves at once; custom domains keep serving it) | |
--redirect | stringArray | a redirect rule '<from> <to> [301|302|307|308]'; replaces the site's redirect rules (repeatable) | |
--spa-fallback | bool | serve /index.html for paths that are not files (single-page apps) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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 snippetdelete: Delete a snippetlist: List the saved snippetsupdate: Change a snippet (give both its name and SQL)
arianet baas snippets create
Save a SQL snippet
نحوه استفاده
arianet baas snippets create [project-id] [flags]
مثالها
arianet baas snippets create 12 --name 'open todos' --query 'select * from todos where not done'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
-f, --file | string | read the SQL from this file (- for standard input) | |
--name | string | snippet name (required) | |
--query | string | the SQL (or --file) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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, --file | string | read the SQL from this file (- for standard input) | |
--name | string | snippet name (required) | |
--query | string | the SQL (or --file) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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, --file | string | read the SQL from this file (- for standard input) | |
--json | bool | print the service's answer as JSON (same as -o json) | |
--read-only | bool | run in a READ ONLY transaction |
فلگهای بهارثرسیده: --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 objectdownload: Download an object (to the object's file name, or - for standard output)ls: List a folder of a bucketmove: Move or rename an objectpolicies: Row level security policies of storage: who reads and writes which objectsrm: Delete objectss3-keys: S3 access keys (service level: they bypass the storage policies)sign: Make a time-limited URL of an objectupload: Upload a file (the object path defaults to the file's name)upload-url: Make a signed URL a client can PUT one file touploads: Resumable uploads of large files (storage upload --resumable)
arianet baas storage buckets
List buckets (create and delete are subcommands)
نحوه استفاده
arianet baas storage buckets [project-id] [flags]
نامهای دیگر: bucket
فلگهای بهارثرسیده: --region (از arianet baas)
زیردستورها
create: Create a bucketdelete: Delete an empty bucketempty: Delete every object of a bucketget: Show one bucketupdate: Change a bucket: public, size limit, allowed types
arianet baas storage buckets create
Create a bucket
نحوه استفاده
arianet baas storage buckets create [project-id] [flags]
مثالها
arianet baas storage buckets create 12 --name avatars --public
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--name | string | bucket name (letters, digits, _ . -) (required) | |
--public | bool | objects can be read without a key | |
--size-limit | int64 | largest object in bytes | |
--timeout | duration | 15m0s | how long --wait waits |
--types | stringArray | allowed content types, e.g. image/png,image/jpeg (repeatable, or comma separated) | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--public | bool | objects can be read without a key | |
--size-limit | int64 | largest object in bytes | |
--timeout | duration | 15m0s | how long --wait waits |
--types | stringArray | allowed content types (repeatable, or comma separated) | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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-bucket | string | into this bucket (default: the same; its limits apply) | |
--upsert | bool | replace 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--limit | int | at most this many entries (1-1000) | |
--offset | int | skip this many entries | |
--search | string | only 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-bucket | string | into this bucket (default: the same; its limits apply) | |
--upsert | bool | replace 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 expressionsdrop: Drop a storage policy (table: objects or buckets)list: List the policies of storage.objects and storage.bucketspreview: Show the SQL a policy request would run (nothing is run)
arianet baas storage policies create
Create storage policies from a template or your own expressions
نحوه استفاده
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--bucket | string | the bucket the policies are for | |
--command | string | custom: ALL, SELECT, INSERT, UPDATE or DELETE | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--name | string | policy name prefix | |
--operation | stringArray | SELECT, INSERT, UPDATE and/or DELETE (default: the template's) (repeatable, or comma separated) | |
--permissive | bool | custom: permissive (default) or restrictive | |
--policy-name | string | custom: the policy's name | |
--role | stringArray | custom: the roles it applies to (repeatable, or comma separated) | |
--table | string | objects (default) or buckets | |
--template | string | public_read, authenticated_read, own_folder, owner_only or custom (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--using | string | custom: USING expression | |
--wait | bool | wait until the operation finishes | |
--with-check | string | custom: WITH CHECK expression |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--bucket | string | the bucket the policies are for | |
--command | string | custom: ALL, SELECT, INSERT, UPDATE or DELETE | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--name | string | policy name prefix | |
--operation | stringArray | SELECT, INSERT, UPDATE and/or DELETE (default: the template's) (repeatable, or comma separated) | |
--permissive | bool | custom: permissive (default) or restrictive | |
--policy-name | string | custom: the policy's name | |
--role | stringArray | custom: the roles it applies to (repeatable, or comma separated) | |
--table | string | objects (default) or buckets | |
--template | string | public_read, authenticated_read, own_folder, owner_only or custom (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--using | string | custom: USING expression | |
--wait | bool | wait until the operation finishes | |
--with-check | string | custom: WITH CHECK expression |
فلگهای بهارثرسیده: --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, --yes | bool | skip 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 oncelist: List the S3 access keys (never their secrets) and the S3 endpointrevoke: Revoke an S3 access key at once
arianet baas storage s3-keys create
Create an S3 access key; its secret is shown once
نحوه استفاده
arianet baas storage s3-keys create [project-id] [flags]
مثالها
arianet baas storage s3-keys create 12 --description 'backup job'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--description | string | what the key is for | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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-in | int | seconds 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-size | int64 | 16 | resumable upload chunk in MiB (1-64) |
--content-type | string | content type to store (default: from the file extension) | |
--resumable | bool | send a large file in chunks; an interrupted upload continues with --resume | |
--resume | string | continue the resumable upload with this ID (printed when it started) | |
--upsert | bool | replace an object that exists |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--upsert | bool | the 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)
زیردستورها
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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 namecolumn-types: List your enum types, for a column's typecolumns: Add, change or drop a table's columnsconstraints: Add or drop foreign key, unique, check and primary key constraintscreate: Create a table (row level security on unless --rls=false)drop: Drop a table and its dataget: Show a table: columns, constraints, indexes, policies, triggersindexes: List, create or drop a table's indexeslist: List a schema's tables and viewspolicies: Create or drop a table's row level security policiesrls: Turn a table's row level security on or offrows: Read and change a table's rowsschemas: List the schemas tables can be in
arianet baas tables alter
Change a table's comment, row level security or name
نحوه استفاده
arianet baas tables alter [project-id] <table> [flags]
مثالها
arianet baas tables alter 12 todos --name tasks --comment 'what to do'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--comment | string | table comment ("" removes it) | |
--name | string | new name | |
--rls | bool | row level security on or off | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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 columnalter: Change a column: type, nullability, default, comment, namedrop: 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--check | string | CHECK expression | |
--comment | string | column comment | |
--data | string | the JSON request body; flags given as well override its fields | |
--default | string | default expression, e.g. now() | |
--file | string | read the JSON request body from this file | |
--identity | string | identity column: always or by_default | |
--name | string | column name (required) | |
--nullable | bool | allow NULL (default true) | |
--on-delete | string | no_action, restrict, cascade, set_null or set_default | |
--on-update | string | no_action, restrict, cascade, set_null or set_default | |
--primary-key | bool | the table's primary key | |
--ref-column | string | referenced column | |
--ref-schema | string | schema of the referenced table | |
--ref-table | string | referenced table (a foreign key) | |
--timeout | duration | 15m0s | how long --wait waits |
--type | string | column type, e.g. text, bigint, uuid, timestamptz, jsonb (required) | |
--unique | bool | unique values | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--comment | string | column comment ("" removes it) | |
--default | string | new default expression | |
--drop-default | bool | remove the default | |
--name | string | new name | |
--nullable | bool | allow NULL | |
--timeout | duration | 15m0s | how long --wait waits |
--type | string | new type | |
--using | string | USING expression for the type change | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--cascade | bool | also drop what depends on it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --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)
زیردستورها
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--check | string | CHECK expression | |
--column | stringArray | the constrained columns (repeatable, or comma separated) | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--name | string | constraint name (default: generated) | |
--not-valid | bool | do not check the existing rows | |
--on-delete | string | no_action, restrict, cascade, set_null or set_default | |
--on-update | string | no_action, restrict, cascade, set_null or set_default | |
--ref-column | stringArray | referenced columns (repeatable, or comma separated) | |
--ref-schema | string | schema of the referenced table | |
--ref-table | string | referenced table | |
--timeout | duration | 15m0s | how long --wait waits |
--type | string | foreign_key, unique, check or primary_key (required) | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--cascade | bool | also drop what depends on it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--column | stringArray | a column as name:type[:pk][:unique][:notnull][:identity][:default=<expression>] (repeatable) | |
--comment | string | table comment | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--name | string | table name (required) | |
--rls | bool | turn row level security on (default true) | |
--schema | string | schema (default public) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--cascade | bool | also drop what depends on it | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --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)
زیردستورها
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--column | stringArray | indexed columns, in order (required) (repeatable, or comma separated) | |
--concurrently | bool | build without locking writes | |
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--method | string | btree, hash, gin, gist, brin or spgist | |
--name | string | index name (default: generated) | |
--timeout | duration | 15m0s | how long --wait waits |
--unique | bool | a unique index | |
--wait | bool | wait until the operation finishes | |
--where | string | partial index predicate |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--concurrently | bool | drop without locking writes | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--schema | string | schema (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)
زیردستورها
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()"
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--command | string | ALL, SELECT, INSERT, UPDATE or DELETE (default ALL) | |
--name | string | policy name (required) | |
--permissive | bool | permissive (default) or, with --permissive=false, restrictive | |
--role | stringArray | roles it applies to (default public) (repeatable, or comma separated) | |
--timeout | duration | 15m0s | how long --wait waits |
--using | string | USING expression | |
--wait | bool | wait until the operation finishes | |
--with-check | string | WITH CHECK expression |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--force | bool | also for the table's owner | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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 rowsupdate: Change one row, named by its whole primary key
arianet baas tables rows delete
Delete rows named by their primary keys (at most 100)
نحوه استفاده
arianet baas tables rows delete [project-id] <table> [flags]
نامهای دیگر: rm
مثالها
arianet baas tables rows delete 12 todos --key '{"id":1}' --key '{"id":2}'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--key | stringArray | a primary key as a JSON object (required) (repeatable JSON) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --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"}'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--data | string | the JSON request body; flags given as well override its fields | |
--file | string | read the JSON request body from this file | |
--row | stringArray | a row as a JSON object (repeatable JSON) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--filter | string | filter, e.g. done.eq.false | |
--limit | string | rows per page | |
--offset | string | skip this many rows | |
--order | string | order, e.g. created_at.desc |
فلگهای بهارثرسیده: --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}'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--key | string | the primary key as a JSON object (required) | |
--set | string | the new values as a JSON object (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--confirm | string | the project's ref, typed to confirm (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--to | int64 | the account ID to move the project to (required) | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --region (از arianet baas)
زیردستورها
accept: Accept a transfer to your account (billed as a new project of its plan)cancel: Cancel the project's pending transferdecline: Decline a transfer to your accountlist: List pending transfers to or from your accountstatus: Show the project's pending transfer
arianet baas transfer accept
Accept a transfer to your account (billed as a new project of its plan)
نحوه استفاده
arianet baas transfer accept <transfer-id> [flags]
مثالها
arianet baas transfer accept 31 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--direction | string | incoming 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--file | string | write to this file instead of standard output | |
--lang | string | ts | output language: typescript (or ts) |
--schema | stringSlice | [public] | schemas to include (repeatable or comma separated) |
فلگهای بهارثرسیده: --region (از arianet baas)
arianet baas unlink
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 keydelete: Delete a secretlist: List the secrets (never their values)reveal: Show a secret's value; recorded in your activity logupdate: Change a secret's name, description or value
arianet baas vault create
Store a secret, encrypted with the project's own key
نحوه استفاده
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 -
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--description | string | what it is for | |
--name | string | secret name | |
--timeout | duration | 15m0s | how long --wait waits |
--value | string | the value (it stays in your shell history; prefer --value-file) | |
--value-file | string | read the value from this file (- for standard input) | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--description | string | what it is for | |
--name | string | secret name | |
--timeout | duration | 15m0s | how long --wait waits |
--value | string | the value (it stays in your shell history; prefer --value-file) | |
--value-file | string | read the value from this file (- for standard input) | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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 oncedelete: Delete a webhook, its trigger and its queued eventsdeliveries: Show a webhook's deliveries (7 days)get: Show one webhooklist: List the webhooksupdate: Change a webhook (the flags given; the rest stays)
arianet baas webhooks create
Create a webhook; its signing secret is shown once
نحوه استفاده
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-run | bool | only show the SQL it would run | |
--enabled | bool | send events (default true) | |
--event | stringArray | INSERT, UPDATE and/or DELETE (required) (repeatable, or comma separated) | |
--header | stringArray | a request header (repeatable name=value) | |
--name | string | webhook name (required) | |
--schema | string | the table's schema (default public) | |
--table | string | the table whose changes it sends (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--timeout-ms | int64 | the request timeout in milliseconds | |
--url | string | the https URL it POSTs to (required) | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--before | string | the next page: deliveries before this ID | |
--limit | string | at most this many | |
--status | string | only 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-run | bool | only show the SQL it would run | |
--enabled | bool | send events (default true) | |
--event | stringArray | INSERT, UPDATE and/or DELETE (repeatable, or comma separated) | |
--header | stringArray | a request header (repeatable name=value) | |
--name | string | webhook name | |
--schema | string | the table's schema (default public) | |
--table | string | the table whose changes it sends | |
--timeout | duration | 15m0s | how long --wait waits |
--timeout-ms | int64 | the request timeout in milliseconds | |
--url | string | the https URL it POSTs to | |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --region (از arianet baas)