Skip to main content

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

FlagTypeDefaultDescription
--regionstringregional install to call, e.g. iran-1 (default: the product's default region)

Subcommands

  • 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

Usage

arianet hosting accounts <command>

Aliases: account

Inherited flags: --region (from arianet hosting)

Subcommands

  • 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

Usage

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

Examples

arianet hosting accounts actions 305 --limit 10

Flags

FlagTypeDefaultDescription
--limitstringat 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

FlagTypeDefaultDescription
--enabledboolrenew automatically (--enabled=false turns it off) (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--plan-idint64the new plan ID (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--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

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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--targetstringwhere to land, e.g. reseller for a reseller's panel
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--passwordstringthe new password (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait 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 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

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

FlagTypeDefaultDescription
--limitstringat 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

FlagTypeDefaultDescription
--timeoutduration15m0show 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

FlagTypeDefaultDescription
--datastringthe JSON request body
--filestringread 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

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

FlagTypeDefaultDescription
--namestringdatabase name (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--passwordstringthe user's password (panels that create the user here)
--timeoutduration15m0show long --wait waits
--userstringdatabase user (required)
--waitboolwait 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

FlagTypeDefaultDescription
--namestringuser name (required)
--passwordstringthe user's password (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--passwordstringthe new password (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

  • 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

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

FlagTypeDefaultDescription
--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

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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--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

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 mailbox
  • delete: Delete a mailbox
  • list: List mailboxes
  • update: 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

FlagTypeDefaultDescription
--local-partstringthe part before @ (required)
--passwordstringthe mailbox password (required)
--quota-mbint64quota in MB
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

FlagTypeDefaultDescription
--passwordstringthe new password
--quota-mbint64the new quota in MB
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--datacenterstringonly plans of this datacenter
--kindstringshared 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

  • 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

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

FlagTypeDefaultDescription
--namestringkey name (required)
--public-keystringthe public key (ssh-ed25519 ...) (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

FlagTypeDefaultDescription
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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)