arianet vps
این مرجع در هر نسخه به طور خودکار از راهنمای خود CLI ساخته میشود، پس همیشه با آخرین نسخه arianet یکی است. متن راهنمای هر دستور همان متن انگلیسی است که arianet <command> --help نشان میدهد. برای نصب، تنظیم توکن و شروع کار، صفحه رابط خط فرمان را ببینید.
فلگهای سراسری با همه دستورهای این صفحه کار میکنند.
arianet vps
Manage virtual private servers (VPS)
نحوه استفاده
arianet vps <command>
نامهای دیگر: server, servers, srv
زیردستورها
actions: Show the operation history of a VPScreate: Create a new VPSdelete: Delete a VPSget: Get details of a VPSlist: List your VPSpower-off: Power off a VPSpower-on: Power on a VPSregional: Manage regional VPS servers (e.g. iran-1) through /vps/v1reinstall: Reinstall the OS on a VPSrename: Rename a VPSrestart: Restart a VPSstatus: Get the current status of a VPStoggle-protection: Turn deletion protection on or off
arianet vps actions
Show the operation history of a VPS
Show the operations performed on a VPS (create, restart, reinstall, ...), newest first, with their outcome.
نحوه استفاده
arianet vps actions <id> [flags]
مثالها
arianet vps actions 42
arianet vps actions 42 --limit 50 --output json
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
-l, --limit | int | 20 | number of operations to show |
arianet vps create
Create a new VPS
Create a new VPS.
If --plan, --region or --os is omitted, an interactive wizard guides you through the choice.
Authentication: pass --ssh-key <id> to log in with a stored SSH key, or --password to set the root password yourself. With neither, a strong random root password is generated and printed once - save it.
The command waits until the VPS is active (up to --timeout). Use --no-wait to return as soon as the order is accepted.
Every order carries an idempotency key, so a retry after a network failure can never buy a second VPS. If the command is interrupted before it can tell you the outcome, re-run it with the same --idempotency-key it printed.
نحوه استفاده
arianet vps create [flags]
مثالها
arianet vps create # interactive wizard
arianet vps create --plan 5 --region 1 --os 3 --hostname web-01
arianet vps create --plan 5 --region 1 --os 3 --hostname web-01 --ssh-key 2
arianet vps create --plan 5 --region 1 --os 3 --no-wait --yes --output json
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--currency | int | currency ID to pay with (default: your default wallet) | |
--hostname | string | hostname for the server | |
--idempotency-key | string | reuse a key to retry an order safely | |
--no-wait | bool | return as soon as the order is accepted | |
--os | int | OS template ID (see: arianet os list) | |
--password | string | root password (default: a random one is generated and shown once) | |
--plan | int | plan ID (see: arianet plan list) | |
--region | int | region ID (see: arianet region list) | |
--ssh-key | int | log in with this SSH key ID instead of a password (see: arianet ssh list) | |
--timeout | duration | 15m0s | longest time to wait for the server to become active |
-y, --yes | bool | skip confirmation prompt |
arianet vps delete
Delete a VPS
نحوه استفاده
arianet vps delete <id> [flags]
مثالها
arianet vps delete 42
arianet vps delete 42 --yes --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | longest time to wait with --wait |
--wait | bool | wait until the operation has finished | |
-y, --yes | bool | skip confirmation prompt |
arianet vps get
Get details of a VPS
نحوه استفاده
arianet vps get <id> [flags]
مثالها
arianet vps get 42
arianet vps get 42 --output json
arianet vps list
List your VPS
List your VPS.
Without --status, active and suspended VPS are shown. Other statuses include creating, pending, failed, terminated, powering_on, powering_off, restarting and reinstalling_os.
نحوه استفاده
arianet vps list [flags]
مثالها
arianet vps list
arianet vps list --status active
arianet vps list --status terminated
arianet vps list --page 2 --limit 20
arianet vps list --output json
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
-l, --limit | int | 15 | results per page (max 100) |
-p, --page | int | 1 | page number |
-s, --status | string | filter by status (default: active and suspended) |
arianet vps power-off
Power off a VPS
نحوه استفاده
arianet vps power-off <id> [flags]
مثالها
arianet vps power-off 42 --yes --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | longest time to wait with --wait |
--wait | bool | wait until the operation has finished | |
-y, --yes | bool | skip confirmation prompt |
arianet vps power-on
Power on a VPS
نحوه استفاده
arianet vps power-on <id> [flags]
مثالها
arianet vps power-on 42 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | longest time to wait with --wait |
--wait | bool | wait until the operation has finished |
arianet vps regional
Manage regional VPS servers (e.g. iran-1) through /vps/v1
Manage VPS servers of the regional VPS product (iran-1): order, power, reinstall, resize, console and traffic.
The commands call /vps/v1 on the API host with your API token. Token scopes: vps:servers:read (reads), vps:servers: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.
دسترسیهای توکن: vps:servers:read (reads), vps:servers:write (changes)
نحوه استفاده
arianet vps regional <command>
نامهای دیگر: region-vps
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--region | string | regional install to call, e.g. iran-1 (default: the product's default region) |
زیردستورها
actions: Follow asynchronous operations (actions)api: Send any request to the /vps/v1 API and print the answer as JSONdatacenters: List the region's datacentersimages: List operating system imagesplans: List plans for saleservers: Order and manage servers
arianet vps regional actions
Follow asynchronous operations (actions)
نحوه استفاده
arianet vps regional actions <command>
نامهای دیگر: action
فلگهای بهارثرسیده: --region (از arianet vps regional)
زیردستورها
get: Show one operationlist: List your latest operationswait: Wait until operations finish; exits non-zero if one fails or the timeout passes
arianet vps regional actions get
Show one operation
نحوه استفاده
arianet vps regional actions get <action-id> [flags]
مثالها
arianet vps regional actions get 812
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional actions list
List your latest operations
نحوه استفاده
arianet vps regional actions list [flags]
نامهای دیگر: ls
مثالها
arianet vps regional actions list --limit 20
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--limit | string | at most this many |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional actions wait
Wait until operations finish; exits non-zero if one fails or the timeout passes
نحوه استفاده
arianet vps regional actions wait <action-id> [<action-id>...] [flags]
مثالها
arianet vps regional actions wait 812 813 --timeout 10m
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long to wait |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional api
Send any request to the /vps/v1 API and print the answer as JSON
نحوه استفاده
arianet vps regional api <method> <path> [flags]
مثالها
arianet vps regional api GET /openapi.json
arianet vps regional 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 vps regional)
arianet vps regional datacenters
List the region's datacenters
نحوه استفاده
arianet vps regional datacenters [flags]
مثالها
arianet vps regional datacenters
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional images
List operating system images
نحوه استفاده
arianet vps regional images [flags]
مثالها
arianet vps regional images --datacenter 2
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--datacenter | string | only images of this datacenter |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional plans
List plans for sale
نحوه استفاده
arianet vps regional plans [flags]
مثالها
arianet vps regional plans --datacenter 2
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--datacenter | string | only plans of this datacenter |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers
Order and manage servers
نحوه استفاده
arianet vps regional servers <command>
نامهای دیگر: server
فلگهای بهارثرسیده: --region (از arianet vps regional)
زیردستورها
actions: List the server's operationsconsole: Get a one-time browser console URLcreate: Order a server (charged to your wallet)delete: Delete a server and its diskget: Show one serverkill: Hard power-off (like pulling the plug)list: List your serversreinstall: Reinstall from an image (the disk is wiped)reset-password: Set the root password (generated when not given)resize: Move to another plan (disks only grow)restart: Restart a serverstart: Power a server onstop: Shut a server down gracefullytraffic: Show network traffic and the period's quota
arianet vps regional servers actions
List the server's operations
نحوه استفاده
arianet vps regional servers actions <server-id> [flags]
مثالها
arianet vps regional servers actions 501 --limit 10
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--limit | string | at most this many |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers console
Get a one-time browser console URL
نحوه استفاده
arianet vps regional servers console <server-id> [flags]
مثالها
arianet vps regional servers console 501 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers create
Order a server (charged to your wallet)
نحوه استفاده
arianet vps regional servers create [flags]
مثالها
arianet vps regional servers create --datacenter thr-1 --plan-id 4 --image ubuntu-24.04 --hostname web-1 --billing-mode hourly --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--billing-mode | string | hourly or monthly (required) | |
--data | string | the JSON request body; flags given as well override its fields | |
--datacenter | string | datacenter code (arianet vps regional datacenters) (required) | |
--file | string | read the JSON request body from this file | |
--hostname | string | server hostname (required) | |
--image | string | image (arianet vps regional images) (required) | |
--password | string | root password (default: generated and shown once) | |
--plan-id | int64 | plan ID (arianet vps regional plans) (required) | |
--project-id | int64 | project to put it in | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers delete
Delete a server and its disk
نحوه استفاده
arianet vps regional servers delete <server-id> [flags]
نامهای دیگر: rm
مثالها
arianet vps regional servers delete 501 --reason 'no longer needed' --yes
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--reason | string | why (optional) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers get
Show one server
نحوه استفاده
arianet vps regional servers get <server-id> [flags]
نامهای دیگر: show
مثالها
arianet vps regional servers get 501
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers kill
Hard power-off (like pulling the plug)
نحوه استفاده
arianet vps regional servers kill <server-id> [flags]
مثالها
arianet vps regional servers kill 501 --yes
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers list
List your servers
نحوه استفاده
arianet vps regional servers list [flags]
نامهای دیگر: ls
مثالها
arianet vps regional servers list
arianet vps regional servers list -o json
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers reinstall
Reinstall from an image (the disk is wiped)
نحوه استفاده
arianet vps regional servers reinstall <server-id> [flags]
مثالها
arianet vps regional servers reinstall 501 --image 7 --yes --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--image | string | the image (required) | |
--password | string | root password (default: generated and shown once) | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes | |
-y, --yes | bool | skip the confirmation prompt |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers reset-password
Set the root password (generated when not given)
نحوه استفاده
arianet vps regional servers reset-password <server-id> [flags]
مثالها
arianet vps regional servers reset-password 501 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--password | string | the new root password | |
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers resize
Move to another plan (disks only grow)
نحوه استفاده
arianet vps regional servers resize <server-id> [flags]
مثالها
arianet vps regional servers resize 501 --plan-id 9 --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 vps regional)
arianet vps regional servers restart
Restart a server
نحوه استفاده
arianet vps regional servers restart <server-id> [flags]
مثالها
arianet vps regional servers restart 501 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers start
Power a server on
نحوه استفاده
arianet vps regional servers start <server-id> [flags]
مثالها
arianet vps regional servers start 501 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers stop
Shut a server down gracefully
نحوه استفاده
arianet vps regional servers stop <server-id> [flags]
مثالها
arianet vps regional servers stop 501 --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | how long --wait waits |
--wait | bool | wait until the operation finishes |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps regional servers traffic
Show network traffic and the period's quota
نحوه استفاده
arianet vps regional servers traffic <server-id> [flags]
مثالها
arianet vps regional servers traffic 501 --granularity day --from 2026-11-01T00:00:00Z
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--from | string | start (RFC 3339) | |
--granularity | string | hour or day | |
--to | string | end (RFC 3339) |
فلگهای بهارثرسیده: --region (از arianet vps regional)
arianet vps reinstall
Reinstall the OS on a VPS
نحوه استفاده
arianet vps reinstall <id> [flags]
مثالها
arianet vps reinstall 42 --os 3
arianet vps reinstall 42 --os 3 --yes --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--os | int | الزامی. OS template ID (see: arianet os list) | |
--timeout | duration | 15m0s | longest time to wait with --wait |
--wait | bool | wait until the operation has finished | |
-y, --yes | bool | skip confirmation prompt |
arianet vps rename
Rename a VPS
نحوه استفاده
arianet vps rename <id> [flags]
مثالها
arianet vps rename 42 --name new-hostname
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--name | string | الزامی. new name (1-30 characters) |
arianet vps restart
Restart a VPS
نحوه استفاده
arianet vps restart <id> [flags]
مثالها
arianet vps restart 42
arianet vps restart 42 --yes --wait
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--timeout | duration | 15m0s | longest time to wait with --wait |
--wait | bool | wait until the operation has finished | |
-y, --yes | bool | skip confirmation prompt |
arianet vps status
Get the current status of a VPS
نحوه استفاده
arianet vps status <id> [flags]
مثالها
arianet vps status 42
arianet vps status 42 --output json
arianet vps toggle-protection
Turn deletion protection on or off
Turn deletion protection on or off.
With --enable or --disable the state is set explicitly (safe to repeat in scripts). With neither, the current state is flipped.
نحوه استفاده
arianet vps toggle-protection <id> [flags]
مثالها
arianet vps toggle-protection 42 --enable
arianet vps toggle-protection 42 --disable
arianet vps toggle-protection 42
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--disable | bool | turn protection off | |
--enable | bool | turn protection on |