arianet hosting
This reference is generated from the CLI's own help on every release, so it always matches the latest arianet. The command help is the same text arianet <command> --help prints. For installation, configuration and a guided start, see the CLI page.
The global flags work with every command on this page.
arianet 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.
Token scopes: hosting:accounts:read (reads), hosting:accounts:write (changes)
Usage
arianet hosting <command>
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--region | string | regional install to call, e.g. iran-1 (default: the product's default region) |
Subcommands
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
Usage
arianet hosting accounts <command>
Aliases: account
Inherited flags: --region (from arianet hosting)
Subcommands
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
Usage
arianet hosting accounts actions <account-id> [flags]
Examples
arianet hosting accounts actions 305 --limit 10
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--limit | string | at most this many |
Inherited flags: --region (from arianet hosting)
arianet hosting accounts auto-renew
Turn auto-renew on or off
Usage
arianet hosting accounts auto-renew <account-id> [flags]
Examples
arianet hosting accounts auto-renew 305 --enabled
arianet hosting accounts auto-renew 305 --enabled=false
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--enabled | bool | renew automatically (--enabled=false turns it off) (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet hosting)
arianet hosting accounts change-plan
Move the account to another plan
Usage
arianet hosting accounts change-plan <account-id> [flags]
Examples
arianet hosting accounts change-plan 305 --plan-id 4 --wait
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--plan-id | int64 | the new plan ID (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet hosting)
arianet hosting accounts create
Order a hosting account (charged to your wallet)
Usage
arianet hosting accounts create [flags]
Examples
arianet hosting accounts create --datacenter ir-thr-1 --plan-id 3 --term monthly --domain example.com --password 'S3cret!pass'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--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 |
Inherited flags: --region (from arianet hosting)
arianet hosting accounts delete
Terminate an account and delete its data
Usage
arianet hosting accounts delete <account-id> [flags]
Aliases: rm
Examples
arianet hosting accounts delete 305 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet hosting)
arianet hosting accounts get
Show one hosting account
Usage
arianet hosting accounts get <account-id> [flags]
Aliases: show
Examples
arianet hosting accounts get 305
Inherited flags: --region (from arianet hosting)
arianet hosting accounts list
List your hosting accounts
Usage
arianet hosting accounts list [flags]
Aliases: ls
Examples
arianet hosting accounts list
arianet hosting accounts list -o json
Inherited flags: --region (from arianet hosting)
arianet hosting accounts login
Get a one-time login link into the control panel
Usage
arianet hosting accounts login <account-id> [flags]
Examples
arianet hosting accounts login 305
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--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 |
Inherited flags: --region (from arianet hosting)
arianet hosting accounts nameservers
Show where the domain must point
Usage
arianet hosting accounts nameservers <account-id> [flags]
Examples
arianet hosting accounts nameservers 305
Inherited flags: --region (from arianet hosting)
arianet hosting accounts password
Change the account's control panel / FTP / SSH password
Usage
arianet hosting accounts password <account-id> [flags]
Examples
arianet hosting accounts password 305 --password 'N3w-strong-pass' --wait
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--password | string | the new password (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet hosting)
arianet hosting accounts renew
Renew a lapsed term
Usage
arianet hosting accounts renew <account-id> [flags]
Examples
arianet hosting accounts renew 305 --wait
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet hosting)
arianet hosting accounts traffic
Show the current period's traffic against the quota
Usage
arianet hosting accounts traffic <account-id> [flags]
Examples
arianet hosting accounts traffic 305
Inherited flags: --region (from arianet hosting)
arianet hosting accounts usage
Show disk and bandwidth use
Usage
arianet hosting accounts usage <account-id> [flags]
Examples
arianet hosting accounts usage 305
Inherited flags: --region (from arianet hosting)
arianet hosting actions
Follow asynchronous operations (actions)
Usage
arianet hosting actions <command>
Aliases: action
Inherited flags: --region (from arianet hosting)
Subcommands
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
Usage
arianet hosting actions get <action-id> [flags]
Examples
arianet hosting actions get 812
Inherited flags: --region (from arianet hosting)
arianet hosting actions list
List your latest operations
Usage
arianet hosting actions list [flags]
Aliases: ls
Examples
arianet hosting actions list --limit 20
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--limit | string | at most this many |
Inherited flags: --region (from arianet hosting)
arianet hosting actions wait
Wait until operations finish; exits non-zero if one fails or the timeout passes
Usage
arianet hosting actions wait <action-id> [<action-id>...] [flags]
Examples
arianet hosting actions wait 812 813 --timeout 10m
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long to wait |
Inherited flags: --region (from arianet hosting)
arianet hosting api
Send any request to the /hosting/v1 API and print the answer as JSON
Usage
arianet hosting api <method> <path> [flags]
Examples
arianet hosting api GET /openapi.json
arianet hosting api POST /some/path --data '{"key":"value"}'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--data | string | the JSON request body | |
--file | string | read the JSON request body from this file |
Inherited flags: --region (from arianet hosting)
arianet hosting databases
Manage MySQL databases and users
Usage
arianet hosting databases <command>
Aliases: db
Inherited flags: --region (from arianet hosting)
Subcommands
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
Usage
arianet hosting databases create <account-id> [flags]
Examples
arianet hosting databases create 305 --name shop --wait
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | database name (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet hosting)
arianet hosting databases delete
Delete a database
Usage
arianet hosting databases delete <account-id> <name> [flags]
Aliases: rm
Examples
arianet hosting databases delete 305 shop --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet hosting)
arianet hosting databases grant
Give a user all privileges on a database
Usage
arianet hosting databases grant <account-id> <name> [flags]
Examples
arianet hosting databases grant 305 shop --user shopuser
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--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 |
Inherited flags: --region (from arianet hosting)
arianet hosting databases list
List databases
Usage
arianet hosting databases list <account-id> [flags]
Aliases: ls
Examples
arianet hosting databases list 305
Inherited flags: --region (from arianet hosting)
arianet hosting databases user-create
Create a database user
Usage
arianet hosting databases user-create <account-id> [flags]
Examples
arianet hosting databases user-create 305 --name shopuser --password 'Db-pass-123'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--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 |
Inherited flags: --region (from arianet hosting)
arianet hosting databases user-delete
Delete a database user
Usage
arianet hosting databases user-delete <account-id> <user> [flags]
Examples
arianet hosting databases user-delete 305 shopuser --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet hosting)
arianet hosting databases user-password
Set a database user's password
Usage
arianet hosting databases user-password <account-id> <user> [flags]
Examples
arianet hosting databases user-password 305 shopuser --password 'Db-pass-456'
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--password | string | the new password (required) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
Inherited flags: --region (from arianet hosting)
arianet hosting databases users
List database users
Usage
arianet hosting databases users <account-id> [flags]
Examples
arianet hosting databases users 305
Inherited flags: --region (from arianet hosting)
arianet hosting datacenters
List the region's hosting datacenters
Usage
arianet hosting datacenters [flags]
Examples
arianet hosting datacenters
Inherited flags: --region (from arianet hosting)
arianet hosting dns
Manage the DNS zone of an account's domain
Usage
arianet hosting dns <command>
Aliases: dns-records
Inherited flags: --region (from arianet hosting)
Subcommands
arianet hosting dns add
Add a record
Usage
arianet hosting dns add <account-id> [flags]
Examples
arianet hosting dns add 12 --type A --name www --content 203.0.113.10 --ttl 300
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--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 |
Inherited flags: --region (from arianet hosting)
arianet hosting dns delete
Delete a record
Usage
arianet hosting dns delete <account-id> <record> [flags]
Aliases: rm
Examples
arianet hosting dns delete 305 18 --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet hosting)
arianet hosting dns list
List the zone's records
Usage
arianet hosting dns list <account-id> [flags]
Aliases: ls
Examples
arianet hosting dns list 305
Inherited flags: --region (from arianet hosting)
arianet hosting dns update
Change a record
Usage
arianet hosting dns update <account-id> <record> [flags]
Examples
arianet hosting dns update 305 18 --type A --name www --content 203.0.113.10 --ttl 300
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--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 |
Inherited flags: --region (from arianet hosting)
arianet hosting email
Manage mailboxes on an account's domain
Usage
arianet hosting email <command>
Aliases: mailboxes
Inherited flags: --region (from arianet hosting)
Subcommands
add: Add a mailboxdelete: Delete a mailboxlist: List mailboxesupdate: Change a mailbox's password and/or quota
arianet hosting email add
Add a mailbox
Usage
arianet hosting email add <account-id> [flags]
Examples
arianet hosting email add 305 --local-part info --password 'Mail-pass-123' --quota-mb 1024
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--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 |
Inherited flags: --region (from arianet hosting)
arianet hosting email delete
Delete a mailbox
Usage
arianet hosting email delete <account-id> <local-part> [flags]
Aliases: rm
Examples
arianet hosting email delete 305 info --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet hosting)
arianet hosting email list
List mailboxes
Usage
arianet hosting email list <account-id> [flags]
Aliases: ls
Examples
arianet hosting email list 305
Inherited flags: --region (from arianet hosting)
arianet hosting email update
Change a mailbox's password and/or quota
Usage
arianet hosting email update <account-id> <local-part> [flags]
Examples
arianet hosting email update 305 info --quota-mb 2048
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--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 |
Inherited flags: --region (from arianet hosting)
arianet hosting plans
List hosting plans for sale
Usage
arianet hosting plans [flags]
Examples
arianet hosting plans
arianet hosting plans --kind wordpress
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--datacenter | string | only plans of this datacenter | |
--kind | string | shared or reseller |
Inherited flags: --region (from arianet hosting)
arianet hosting ssh-keys
Manage SSH keys of an account
Usage
arianet hosting ssh-keys <command>
Aliases: ssh-key
Inherited flags: --region (from arianet hosting)
Subcommands
arianet hosting ssh-keys add
Add and authorize a public key
Usage
arianet hosting ssh-keys add <account-id> [flags]
Examples
arianet hosting ssh-keys add 305 --name laptop --public-key "$(cat ~/.ssh/id_ed25519.pub)"
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--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 |
Inherited flags: --region (from arianet hosting)
arianet hosting ssh-keys delete
Deauthorize and delete a key
Usage
arianet hosting ssh-keys delete <account-id> <name> [flags]
Aliases: rm
Examples
arianet hosting ssh-keys delete 305 laptop --yes
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
Inherited flags: --region (from arianet hosting)
arianet hosting ssh-keys list
List SSH keys
Usage
arianet hosting ssh-keys list <account-id> [flags]
Aliases: ls
Examples
arianet hosting ssh-keys list 305
Inherited flags: --region (from arianet hosting)