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

arianet hosting

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

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

arianet hosting​

Manage shared hosting accounts (cPanel / DirectAdmin)

Manage shared hosting: order and manage accounts, DNS records, mailboxes, databases, SSH keys, and follow operations.

The commands call /hosting/v1 on the API host with your API token. Token scopes: hosting:accounts:read (reads), hosting:accounts:write (changes) (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.

دسترسی‌های توکن: hosting:accounts:read (reads), hosting:accounts:write (changes)

نحوه استفاده

arianet hosting <command>

فلگ‌ها

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

زیردستورها

  • accounts: Order and manage hosting accounts
  • actions: Follow asynchronous operations (actions)
  • api: Send any request to the /hosting/v1 API and print the answer as JSON
  • databases: Manage MySQL databases and users
  • datacenters: List the region's hosting datacenters
  • dns: Manage the DNS zone of an account's domain
  • email: Manage mailboxes on an account's domain
  • plans: List hosting plans for sale
  • ssh-keys: Manage SSH keys of an account

arianet hosting accounts​

Order and manage hosting accounts

نحوه استفاده

arianet hosting accounts <command>

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

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

زیردستورها

  • actions: List the account's operations
  • auto-renew: Turn auto-renew on or off
  • change-plan: Move the account to another plan
  • create: Order a hosting account (charged to your wallet)
  • delete: Terminate an account and delete its data
  • get: Show one hosting account
  • list: List your hosting accounts
  • login: Get a one-time login link into the control panel
  • nameservers: Show where the domain must point
  • password: Change the account's control panel / FTP / SSH password
  • renew: Renew a lapsed term
  • traffic: Show the current period's traffic against the quota
  • usage: Show disk and bandwidth use

arianet hosting accounts actions​

List the account's operations

نحوه استفاده

arianet hosting accounts actions <account-id> [flags]

مثال‌ها

arianet hosting accounts actions 305 --limit 10

فلگ‌ها

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

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

arianet hosting accounts auto-renew​

Turn auto-renew on or off

نحوه استفاده

arianet hosting accounts auto-renew <account-id> [flags]

مثال‌ها

arianet hosting accounts auto-renew 305 --enabled
arianet hosting accounts auto-renew 305 --enabled=false

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--enabledboolrenew automatically (--enabled=false turns it off) (required)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

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

arianet hosting accounts change-plan​

Move the account to another plan

نحوه استفاده

arianet hosting accounts change-plan <account-id> [flags]

مثال‌ها

arianet hosting accounts change-plan 305 --plan-id 4 --wait

فلگ‌ها

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

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

arianet hosting accounts create​

Order a hosting account (charged to your wallet)

نحوه استفاده

arianet hosting accounts create [flags]

مثال‌ها

arianet hosting accounts create --datacenter ir-thr-1 --plan-id 3 --term monthly --domain example.com --password 'S3cret!pass'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--contact-emailstringcontact email of the account
--datastringthe JSON request body; flags given as well override its fields
--datacenterstringdatacenter code (arianet hosting datacenters) (required)
--domainstringthe account's main domain (required)
--filestringread the JSON request body from this file
--passwordstringthe control panel password (required)
--plan-idint64plan ID (arianet hosting plans) (required)
--project-idint64project to put it in
--termstringbilling term, e.g. monthly or yearly (required)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

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

arianet hosting accounts delete​

Terminate an account and delete its data

نحوه استفاده

arianet hosting accounts delete <account-id> [flags]

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

مثال‌ها

arianet hosting accounts delete 305 --yes

فلگ‌ها

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

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

arianet hosting accounts get​

Show one hosting account

نحوه استفاده

arianet hosting accounts get <account-id> [flags]

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

مثال‌ها

arianet hosting accounts get 305

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

arianet hosting accounts list​

List your hosting accounts

نحوه استفاده

arianet hosting accounts list [flags]

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

مثال‌ها

arianet hosting accounts list
arianet hosting accounts list -o json

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

arianet hosting accounts login​

Get a one-time login link into the control panel

نحوه استفاده

arianet hosting accounts login <account-id> [flags]

مثال‌ها

arianet hosting accounts login 305

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--targetstringwhere to land, e.g. reseller for a reseller's panel
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

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

arianet hosting accounts nameservers​

Show where the domain must point

نحوه استفاده

arianet hosting accounts nameservers <account-id> [flags]

مثال‌ها

arianet hosting accounts nameservers 305

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

arianet hosting accounts password​

Change the account's control panel / FTP / SSH password

نحوه استفاده

arianet hosting accounts password <account-id> [flags]

مثال‌ها

arianet hosting accounts password 305 --password 'N3w-strong-pass' --wait

فلگ‌ها

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

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

arianet hosting accounts renew​

Renew a lapsed term

نحوه استفاده

arianet hosting accounts renew <account-id> [flags]

مثال‌ها

arianet hosting accounts renew 305 --wait

فلگ‌ها

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

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

arianet hosting accounts traffic​

Show the current period's traffic against the quota

نحوه استفاده

arianet hosting accounts traffic <account-id> [flags]

مثال‌ها

arianet hosting accounts traffic 305

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

arianet hosting accounts usage​

Show disk and bandwidth use

نحوه استفاده

arianet hosting accounts usage <account-id> [flags]

مثال‌ها

arianet hosting accounts usage 305

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

arianet hosting actions​

Follow asynchronous operations (actions)

نحوه استفاده

arianet hosting actions <command>

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

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

زیردستورها

  • get: Show one operation
  • list: List your latest operations
  • wait: Wait until operations finish; exits non-zero if one fails or the timeout passes

arianet hosting actions get​

Show one operation

نحوه استفاده

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

مثال‌ها

arianet hosting actions get 812

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

arianet hosting actions list​

List your latest operations

نحوه استفاده

arianet hosting actions list [flags]

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

مثال‌ها

arianet hosting actions list --limit 20

فلگ‌ها

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

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

arianet hosting actions wait​

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

نحوه استفاده

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

مثال‌ها

arianet hosting actions wait 812 813 --timeout 10m

فلگ‌ها

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

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

arianet hosting api​

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

نحوه استفاده

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

مثال‌ها

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

فلگ‌ها

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

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

arianet hosting databases​

Manage MySQL databases and users

نحوه استفاده

arianet hosting databases <command>

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

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

زیردستورها

arianet hosting databases create​

Create a database

نحوه استفاده

arianet hosting databases create <account-id> [flags]

مثال‌ها

arianet hosting databases create 305 --name shop --wait

فلگ‌ها

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

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

arianet hosting databases delete​

Delete a database

نحوه استفاده

arianet hosting databases delete <account-id> <name> [flags]

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

مثال‌ها

arianet hosting databases delete 305 shop --yes

فلگ‌ها

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

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

arianet hosting databases grant​

Give a user all privileges on a database

نحوه استفاده

arianet hosting databases grant <account-id> <name> [flags]

مثال‌ها

arianet hosting databases grant 305 shop --user shopuser

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--passwordstringthe user's password (panels that create the user here)
--timeoutduration15m0show long --wait waits
--userstringdatabase user (required)
--waitboolwait until the operation finishes

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

arianet hosting databases list​

List databases

نحوه استفاده

arianet hosting databases list <account-id> [flags]

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

مثال‌ها

arianet hosting databases list 305

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

arianet hosting databases user-create​

Create a database user

نحوه استفاده

arianet hosting databases user-create <account-id> [flags]

مثال‌ها

arianet hosting databases user-create 305 --name shopuser --password 'Db-pass-123'

فلگ‌ها

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

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

arianet hosting databases user-delete​

Delete a database user

نحوه استفاده

arianet hosting databases user-delete <account-id> <user> [flags]

مثال‌ها

arianet hosting databases user-delete 305 shopuser --yes

فلگ‌ها

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

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

arianet hosting databases user-password​

Set a database user's password

نحوه استفاده

arianet hosting databases user-password <account-id> <user> [flags]

مثال‌ها

arianet hosting databases user-password 305 shopuser --password 'Db-pass-456'

فلگ‌ها

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

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

arianet hosting databases users​

List database users

نحوه استفاده

arianet hosting databases users <account-id> [flags]

مثال‌ها

arianet hosting databases users 305

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

arianet hosting datacenters​

List the region's hosting datacenters

نحوه استفاده

arianet hosting datacenters [flags]

مثال‌ها

arianet hosting datacenters

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

arianet hosting dns​

Manage the DNS zone of an account's domain

نحوه استفاده

arianet hosting dns <command>

نام‌های دیگر: dns-records

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

زیردستورها

  • add: Add a record
  • delete: Delete a record
  • list: List the zone's records
  • update: Change a record

arianet hosting dns add​

Add a record

نحوه استفاده

arianet hosting dns add <account-id> [flags]

مثال‌ها

arianet hosting dns add 12 --type A --name www --content 203.0.113.10 --ttl 300

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--contentstringrecord value (required)
--namestringrecord name, e.g. www (required)
--priorityint64priority (MX)
--timeoutduration15m0show long --wait waits
--ttlint64TTL in seconds
--typestringrecord type: A, AAAA, CNAME, MX, TXT... (required)
--waitboolwait until the operation finishes

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

arianet hosting dns delete​

Delete a record

نحوه استفاده

arianet hosting dns delete <account-id> <record> [flags]

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

مثال‌ها

arianet hosting dns delete 305 18 --yes

فلگ‌ها

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

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

arianet hosting dns list​

List the zone's records

نحوه استفاده

arianet hosting dns list <account-id> [flags]

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

مثال‌ها

arianet hosting dns list 305

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

arianet hosting dns update​

Change a record

نحوه استفاده

arianet hosting dns update <account-id> <record> [flags]

مثال‌ها

arianet hosting dns update 305 18 --type A --name www --content 203.0.113.10 --ttl 300

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--contentstringrecord value (required)
--namestringrecord name, e.g. www (required)
--priorityint64priority (MX)
--timeoutduration15m0show long --wait waits
--ttlint64TTL in seconds
--typestringrecord type: A, AAAA, CNAME, MX, TXT... (required)
--waitboolwait until the operation finishes

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

arianet hosting email​

Manage mailboxes on an account's domain

نحوه استفاده

arianet hosting email <command>

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

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

زیردستورها

  • add: Add a mailbox
  • delete: Delete a mailbox
  • list: List mailboxes
  • update: Change a mailbox's password and/or quota

arianet hosting email add​

Add a mailbox

نحوه استفاده

arianet hosting email add <account-id> [flags]

مثال‌ها

arianet hosting email add 305 --local-part info --password 'Mail-pass-123' --quota-mb 1024

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--local-partstringthe part before @ (required)
--passwordstringthe mailbox password (required)
--quota-mbint64quota in MB
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

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

arianet hosting email delete​

Delete a mailbox

نحوه استفاده

arianet hosting email delete <account-id> <local-part> [flags]

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

مثال‌ها

arianet hosting email delete 305 info --yes

فلگ‌ها

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

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

arianet hosting email list​

List mailboxes

نحوه استفاده

arianet hosting email list <account-id> [flags]

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

مثال‌ها

arianet hosting email list 305

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

arianet hosting email update​

Change a mailbox's password and/or quota

نحوه استفاده

arianet hosting email update <account-id> <local-part> [flags]

مثال‌ها

arianet hosting email update 305 info --quota-mb 2048

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--passwordstringthe new password
--quota-mbint64the new quota in MB
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

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

arianet hosting plans​

List hosting plans for sale

نحوه استفاده

arianet hosting plans [flags]

مثال‌ها

arianet hosting plans
arianet hosting plans --kind wordpress

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--datacenterstringonly plans of this datacenter
--kindstringshared or reseller

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

arianet hosting ssh-keys​

Manage SSH keys of an account

نحوه استفاده

arianet hosting ssh-keys <command>

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

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

زیردستورها

  • add: Add and authorize a public key
  • delete: Deauthorize and delete a key
  • list: List SSH keys

arianet hosting ssh-keys add​

Add and authorize a public key

نحوه استفاده

arianet hosting ssh-keys add <account-id> [flags]

مثال‌ها

arianet hosting ssh-keys add 305 --name laptop --public-key "$(cat ~/.ssh/id_ed25519.pub)"

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--namestringkey name (required)
--public-keystringthe public key (ssh-ed25519 ...) (required)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes

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

arianet hosting ssh-keys delete​

Deauthorize and delete a key

نحوه استفاده

arianet hosting ssh-keys delete <account-id> <name> [flags]

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

مثال‌ها

arianet hosting ssh-keys delete 305 laptop --yes

فلگ‌ها

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

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

arianet hosting ssh-keys list​

List SSH keys

نحوه استفاده

arianet hosting ssh-keys list <account-id> [flags]

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

مثال‌ها

arianet hosting ssh-keys list 305

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