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>
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--region | string | regional install to call, e.g. iran-1 (default: the product's default region) |
زیردستورها
accounts: Order and manage hosting accountsactions: Follow asynchronous operations (actions)api: Send any request to the /hosting/v1 API and print the answer as JSONdatabases: Manage MySQL databases and usersdatacenters: List the region's hosting datacentersdns: Manage the DNS zone of an account's domainemail: Manage mailboxes on an account's domainplans: List hosting plans for salessh-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 operationsauto-renew: Turn auto-renew on or offchange-plan: Move the account to another plancreate: Order a hosting account (charged to your wallet)delete: Terminate an account and delete its dataget: Show one hosting accountlist: List your hosting accountslogin: Get a one-time login link into the control panelnameservers: Show where the domain must pointpassword: Change the account's control panel / FTP / SSH passwordrenew: Renew a lapsed termtraffic: Show the current period's traffic against the quotausage: 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--limit | string | at 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--enabled | bool | renew automatically (--enabled=false turns it off) (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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-id | int64 | the new plan ID (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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-email | string | contact email of the account | |
--data | string | the JSON request body; flags given as well override its fields | |
--datacenter | string | datacenter code (arianet hosting datacenters) (required) | |
--domain | string | the account's main domain (required) | |
--file | string | read the JSON request body from this file | |
--password | string | the control panel password (required) | |
--plan-id | int64 | plan ID (arianet hosting plans) (required) | |
--project-id | int64 | project to put it in | |
--term | string | billing term, e.g. monthly or yearly (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--target | string | where to land, e.g. reseller for a reseller's panel | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--password | string | the new password (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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 operationlist: List your latest operationswait: 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--limit | string | at 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how 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"}'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--data | string | the JSON request body | |
--file | string | read 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)
زیردستورها
create: Create a databasedelete: Delete a databasegrant: Give a user all privileges on a databaselist: List databasesuser-create: Create a database useruser-delete: Delete a database useruser-password: Set a database user's passwordusers: List database users
arianet hosting databases create
Create a database
نحوه استفاده
arianet hosting databases create <account-id> [flags]
مثالها
arianet hosting databases create 305 --name shop --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--name | string | database name (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--password | string | the user's password (panels that create the user here) | |
--timeout | duration | 15m0s | how long --wait waits |
--user | string | database user (required) | |
--wait | bool | wait 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'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--name | string | user name (required) | |
--password | string | the user's password (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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'
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--password | string | the new password (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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)
زیردستورها
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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--content | string | record value (required) | |
--name | string | record name, e.g. www (required) | |
--priority | int64 | priority (MX) | |
--timeout | duration | 15m0s | how long --wait waits |
--ttl | int64 | TTL in seconds | |
--type | string | record type: A, AAAA, CNAME, MX, TXT... (required) | |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--content | string | record value (required) | |
--name | string | record name, e.g. www (required) | |
--priority | int64 | priority (MX) | |
--timeout | duration | 15m0s | how long --wait waits |
--ttl | int64 | TTL in seconds | |
--type | string | record type: A, AAAA, CNAME, MX, TXT... (required) | |
--wait | bool | wait 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 mailboxdelete: Delete a mailboxlist: List mailboxesupdate: 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-part | string | the part before @ (required) | |
--password | string | the mailbox password (required) | |
--quota-mb | int64 | quota in MB | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--password | string | the new password | |
--quota-mb | int64 | the new quota in MB | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--datacenter | string | only plans of this datacenter | |
--kind | string | shared 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)
زیردستورها
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)"
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--name | string | key name (required) | |
--public-key | string | the public key (ssh-ed25519 ...) (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait 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
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip 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)