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

arianet vps

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

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

arianet vps​

Manage virtual private servers (VPS)

نحوه استفاده

arianet vps <command>

نام‌های دیگر: server, servers, srv

زیردستورها

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, --limitint20number 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--currencyintcurrency ID to pay with (default: your default wallet)
--hostnamestringhostname for the server
--idempotency-keystringreuse a key to retry an order safely
--no-waitboolreturn as soon as the order is accepted
--osintOS template ID (see: arianet os list)
--passwordstringroot password (default: a random one is generated and shown once)
--planintplan ID (see: arianet plan list)
--regionintregion ID (see: arianet region list)
--ssh-keyintlog in with this SSH key ID instead of a password (see: arianet ssh list)
--timeoutduration15m0slongest time to wait for the server to become active
-y, --yesboolskip confirmation prompt

arianet vps delete​

Delete a VPS

نحوه استفاده

arianet vps delete <id> [flags]

مثال‌ها

arianet vps delete 42
arianet vps delete 42 --yes --wait

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0slongest time to wait with --wait
--waitboolwait until the operation has finished
-y, --yesboolskip 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, --limitint15results per page (max 100)
-p, --pageint1page number
-s, --statusstringfilter 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0slongest time to wait with --wait
--waitboolwait until the operation has finished
-y, --yesboolskip confirmation prompt

arianet vps power-on​

Power on a VPS

نحوه استفاده

arianet vps power-on <id> [flags]

مثال‌ها

arianet vps power-on 42 --wait

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0slongest time to wait with --wait
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--regionstringregional 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 JSON
  • datacenters: List the region's datacenters
  • images: List operating system images
  • plans: List plans for sale
  • servers: 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 operation
  • list: List your latest operations
  • wait: 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--limitstringat 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show 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"}'

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--datastringthe JSON request body
--filestringread 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--datacenterstringonly 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--datacenterstringonly 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 operations
  • console: Get a one-time browser console URL
  • create: Order a server (charged to your wallet)
  • delete: Delete a server and its disk
  • get: Show one server
  • kill: Hard power-off (like pulling the plug)
  • list: List your servers
  • reinstall: 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 server
  • start: Power a server on
  • stop: Shut a server down gracefully
  • traffic: 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--limitstringat 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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-modestringhourly or monthly (required)
--datastringthe JSON request body; flags given as well override its fields
--datacenterstringdatacenter code (arianet vps regional datacenters) (required)
--filestringread the JSON request body from this file
--hostnamestringserver hostname (required)
--imagestringimage (arianet vps regional images) (required)
--passwordstringroot password (default: generated and shown once)
--plan-idint64plan ID (arianet vps regional plans) (required)
--project-idint64project to put it in
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--reasonstringwhy (optional)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--imagestringthe image (required)
--passwordstringroot password (default: generated and shown once)
--timeoutduration15m0show long --wait waits
--waitboolwait until the operation finishes
-y, --yesboolskip 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--passwordstringthe new root password
--timeoutduration15m0show long --wait waits
--waitboolwait 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-idint64the new plan ID (required)
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0show long --wait waits
--waitboolwait 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--fromstringstart (RFC 3339)
--granularitystringhour or day
--tostringend (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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--osintالزامی. OS template ID (see: arianet os list)
--timeoutduration15m0slongest time to wait with --wait
--waitboolwait until the operation has finished
-y, --yesboolskip confirmation prompt

arianet vps rename​

Rename a VPS

نحوه استفاده

arianet vps rename <id> [flags]

مثال‌ها

arianet vps rename 42 --name new-hostname

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--namestringالزامی. 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--timeoutduration15m0slongest time to wait with --wait
--waitboolwait until the operation has finished
-y, --yesboolskip 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

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--disableboolturn protection off
--enableboolturn protection on