arianet ssh
این مرجع در هر نسخه به طور خودکار از راهنمای خود CLI ساخته میشود، پس همیشه با آخرین نسخه arianet یکی است. متن راهنمای هر دستور همان متن انگلیسی است که arianet <command> --help نشان میدهد. برای نصب، تنظیم توکن و شروع کار، صفحه رابط خط فرمان را ببینید.
فلگهای سراسری با همه دستورهای این صفحه کار میکنند.
arianet ssh
Manage SSH keys
نحوه استفاده
arianet ssh <command>
نامهای دیگر: ssh-key, ssh-keys
زیردستورها
add: Add an SSH keydelete: Delete an SSH keyget: Get details of an SSH keylist: List your SSH keysupdate: Update an SSH key
arianet ssh add
Add an SSH key
نحوه استفاده
arianet ssh add [flags]
مثالها
arianet ssh add --name my-laptop --key-file ~/.ssh/id_ed25519.pub --region 1
arianet ssh add --name my-laptop --key "ssh-ed25519 AAAA..." --region 1
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--key | string | public key content (ssh-ed25519 AAAA...) | |
--key-file | string | path to public key file (e.g. ~/.ssh/id_ed25519.pub) | |
--name | string | الزامی. label for this SSH key | |
--region | int | الزامی. region ID the key belongs to (see: arianet region list) |
arianet ssh delete
Delete an SSH key
نحوه استفاده
arianet ssh delete <id> [flags]
مثالها
arianet ssh delete 3
arianet ssh delete 3 --yes
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
-y, --yes | bool | skip confirmation prompt |
arianet ssh get
Get details of an SSH key
نحوه استفاده
arianet ssh get <id> [flags]
مثالها
arianet ssh get 3
arianet ssh get 3 --output json
arianet ssh list
List your SSH keys
نحوه استفاده
arianet ssh list [flags]
مثالها
arianet ssh list
arianet ssh list --page 2 --limit 20
arianet ssh list --output json
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
-l, --limit | int | 15 | results per page (max 100) |
-p, --page | int | 1 | page number |
arianet ssh update
Update an SSH key
نحوه استفاده
arianet ssh update <id> [flags]
مثالها
arianet ssh update 3 --name new-label
فلگها
| فلگ | نوع | پیشفرض | توضیح |
|---|---|---|---|
--name | string | الزامی. new label for the SSH key |