From 1f8a159e9407f8183a44e3dcdbdc1678bbf61df4 Mon Sep 17 00:00:00 2001 From: Andrius Jucius Date: Wed, 14 Sep 2022 13:18:18 +0300 Subject: [PATCH 1/2] [ADD] --api-url argument flag to change default API url --- docs/cherryctl.md | 1 + docs/cherryctl_completion.md | 1 + docs/cherryctl_completion_bash.md | 1 + docs/cherryctl_completion_fish.md | 1 + docs/cherryctl_completion_powershell.md | 1 + docs/cherryctl_completion_zsh.md | 1 + docs/cherryctl_docs.md | 1 + docs/cherryctl_image.md | 1 + docs/cherryctl_image_list.md | 1 + docs/cherryctl_init.md | 1 + docs/cherryctl_ip.md | 1 + docs/cherryctl_ip_assign.md | 1 + docs/cherryctl_ip_create.md | 1 + docs/cherryctl_ip_delete.md | 1 + docs/cherryctl_ip_get.md | 1 + docs/cherryctl_ip_list.md | 1 + docs/cherryctl_ip_unassign.md | 1 + docs/cherryctl_ip_update.md | 1 + docs/cherryctl_plan.md | 1 + docs/cherryctl_plan_list.md | 1 + docs/cherryctl_project.md | 1 + docs/cherryctl_project_create.md | 1 + docs/cherryctl_project_delete.md | 1 + docs/cherryctl_project_get.md | 1 + docs/cherryctl_project_list.md | 1 + docs/cherryctl_project_update.md | 1 + docs/cherryctl_region.md | 1 + docs/cherryctl_region_get.md | 1 + docs/cherryctl_region_list.md | 1 + docs/cherryctl_server.md | 1 + docs/cherryctl_server_create.md | 1 + docs/cherryctl_server_delete.md | 1 + docs/cherryctl_server_get.md | 1 + docs/cherryctl_server_list.md | 1 + docs/cherryctl_server_reboot.md | 1 + docs/cherryctl_server_reinstall.md | 1 + docs/cherryctl_server_start.md | 1 + docs/cherryctl_server_stop.md | 1 + docs/cherryctl_server_update.md | 1 + docs/cherryctl_ssh-key.md | 1 + docs/cherryctl_ssh-key_create.md | 1 + docs/cherryctl_ssh-key_delete.md | 1 + docs/cherryctl_ssh-key_get.md | 1 + docs/cherryctl_ssh-key_list.md | 1 + docs/cherryctl_ssh-key_update.md | 1 + docs/cherryctl_storage.md | 1 + docs/cherryctl_storage_attach.md | 1 + docs/cherryctl_storage_create.md | 1 + docs/cherryctl_storage_delete.md | 1 + docs/cherryctl_storage_detach.md | 1 + docs/cherryctl_storage_get.md | 1 + docs/cherryctl_storage_list.md | 1 + docs/cherryctl_storage_update.md | 1 + docs/cherryctl_team.md | 1 + docs/cherryctl_team_create.md | 1 + docs/cherryctl_team_delete.md | 1 + docs/cherryctl_team_get.md | 1 + docs/cherryctl_team_list.md | 1 + docs/cherryctl_team_update.md | 1 + docs/cherryctl_user.md | 1 + docs/cherryctl_user_get.md | 1 + internal/cli/cli.go | 9 ++++++++- 62 files changed, 69 insertions(+), 1 deletion(-) diff --git a/docs/cherryctl.md b/docs/cherryctl.md index 70d089e..0896002 100644 --- a/docs/cherryctl.md +++ b/docs/cherryctl.md @@ -9,6 +9,7 @@ cherryctl is a command line interface for Cherry Servers API ### Options ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -h, --help help for cherryctl diff --git a/docs/cherryctl_completion.md b/docs/cherryctl_completion.md index 72f9c4d..14933ae 100644 --- a/docs/cherryctl_completion.md +++ b/docs/cherryctl_completion.md @@ -17,6 +17,7 @@ See each sub-command's help for details on how to use the generated script. ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_completion_bash.md b/docs/cherryctl_completion_bash.md index a20051c..cfa97e9 100644 --- a/docs/cherryctl_completion_bash.md +++ b/docs/cherryctl_completion_bash.md @@ -40,6 +40,7 @@ cherryctl completion bash ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_completion_fish.md b/docs/cherryctl_completion_fish.md index 243fe60..c953ca7 100644 --- a/docs/cherryctl_completion_fish.md +++ b/docs/cherryctl_completion_fish.md @@ -31,6 +31,7 @@ cherryctl completion fish [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_completion_powershell.md b/docs/cherryctl_completion_powershell.md index 2376bcb..ddc6514 100644 --- a/docs/cherryctl_completion_powershell.md +++ b/docs/cherryctl_completion_powershell.md @@ -28,6 +28,7 @@ cherryctl completion powershell [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_completion_zsh.md b/docs/cherryctl_completion_zsh.md index cd22e4b..0bc2d01 100644 --- a/docs/cherryctl_completion_zsh.md +++ b/docs/cherryctl_completion_zsh.md @@ -42,6 +42,7 @@ cherryctl completion zsh [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_docs.md b/docs/cherryctl_docs.md index 30173cd..183b080 100644 --- a/docs/cherryctl_docs.md +++ b/docs/cherryctl_docs.md @@ -26,6 +26,7 @@ cherryctl docs ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_image.md b/docs/cherryctl_image.md index ced5cb9..1184967 100644 --- a/docs/cherryctl_image.md +++ b/docs/cherryctl_image.md @@ -15,6 +15,7 @@ Image operations: list. ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_image_list.md b/docs/cherryctl_image_list.md index c78ba80..2b7773c 100644 --- a/docs/cherryctl_image_list.md +++ b/docs/cherryctl_image_list.md @@ -27,6 +27,7 @@ cherryctl image list --plan [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_init.md b/docs/cherryctl_init.md index 49e8d68..8399822 100644 --- a/docs/cherryctl_init.md +++ b/docs/cherryctl_init.md @@ -29,6 +29,7 @@ cherryctl init ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_ip.md b/docs/cherryctl_ip.md index 02f441d..c2c7100 100644 --- a/docs/cherryctl_ip.md +++ b/docs/cherryctl_ip.md @@ -15,6 +15,7 @@ IP address operations: get, list, create, update, assign, unassign and remove. ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_ip_assign.md b/docs/cherryctl_ip_assign.md index 2abc6a5..f84ccd1 100644 --- a/docs/cherryctl_ip_assign.md +++ b/docs/cherryctl_ip_assign.md @@ -30,6 +30,7 @@ cherryctl ip assign ID {--target-hostname | --target-id | ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_ip_create.md b/docs/cherryctl_ip_create.md index 7c9a43b..a2bae85 100644 --- a/docs/cherryctl_ip_create.md +++ b/docs/cherryctl_ip_create.md @@ -34,6 +34,7 @@ cherryctl ip create [-p ] --region [--target-hostname ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_ip_delete.md b/docs/cherryctl_ip_delete.md index bdcc646..81b9204 100644 --- a/docs/cherryctl_ip_delete.md +++ b/docs/cherryctl_ip_delete.md @@ -32,6 +32,7 @@ cherryctl ip delete ID [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_ip_get.md b/docs/cherryctl_ip_get.md index a7e46a2..b684ce2 100644 --- a/docs/cherryctl_ip_get.md +++ b/docs/cherryctl_ip_get.md @@ -26,6 +26,7 @@ cherryctl ip get ID [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_ip_list.md b/docs/cherryctl_ip_list.md index 4b4a77d..b4335f5 100644 --- a/docs/cherryctl_ip_list.md +++ b/docs/cherryctl_ip_list.md @@ -28,6 +28,7 @@ cherryctl ip list [-p ] [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_ip_unassign.md b/docs/cherryctl_ip_unassign.md index 30d71d8..5daf03c 100644 --- a/docs/cherryctl_ip_unassign.md +++ b/docs/cherryctl_ip_unassign.md @@ -26,6 +26,7 @@ cherryctl ip unassign ID [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_ip_update.md b/docs/cherryctl_ip_update.md index 477209a..c6c6d1e 100644 --- a/docs/cherryctl_ip_update.md +++ b/docs/cherryctl_ip_update.md @@ -29,6 +29,7 @@ cherryctl ip update ID [--ptr-record ] [--a-record ] [--tags ] [fl ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_plan.md b/docs/cherryctl_plan.md index c25f35a..27199af 100644 --- a/docs/cherryctl_plan.md +++ b/docs/cherryctl_plan.md @@ -15,6 +15,7 @@ Plan operations: get, list. ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_plan_list.md b/docs/cherryctl_plan_list.md index 5eba37d..a930a92 100644 --- a/docs/cherryctl_plan_list.md +++ b/docs/cherryctl_plan_list.md @@ -29,6 +29,7 @@ cherryctl plan list [-t ] [--region-id ] [--type ] [ ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_project.md b/docs/cherryctl_project.md index 78a18b5..c182b8e 100644 --- a/docs/cherryctl_project.md +++ b/docs/cherryctl_project.md @@ -15,6 +15,7 @@ Project operations: get, list, create, update and delete. ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_project_create.md b/docs/cherryctl_project_create.md index e9bc1e0..a45f172 100644 --- a/docs/cherryctl_project_create.md +++ b/docs/cherryctl_project_create.md @@ -29,6 +29,7 @@ cherryctl project create [-t ] --name [--bgp ] [fl ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_project_delete.md b/docs/cherryctl_project_delete.md index 517b5cd..05ed341 100644 --- a/docs/cherryctl_project_delete.md +++ b/docs/cherryctl_project_delete.md @@ -33,6 +33,7 @@ cherryctl project delete ID [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_project_get.md b/docs/cherryctl_project_get.md index e5379f9..efcb8a9 100644 --- a/docs/cherryctl_project_get.md +++ b/docs/cherryctl_project_get.md @@ -27,6 +27,7 @@ cherryctl project get ID [-p ] [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_project_list.md b/docs/cherryctl_project_list.md index 1c03340..77f09ae 100644 --- a/docs/cherryctl_project_list.md +++ b/docs/cherryctl_project_list.md @@ -27,6 +27,7 @@ cherryctl project list [-p ] [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_project_update.md b/docs/cherryctl_project_update.md index 200cd7d..9bcc526 100644 --- a/docs/cherryctl_project_update.md +++ b/docs/cherryctl_project_update.md @@ -29,6 +29,7 @@ cherryctl project update ID [-p ] [--name ] [--bgp --plan --hostname --region ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_server_delete.md b/docs/cherryctl_server_delete.md index 10e5008..f32136d 100644 --- a/docs/cherryctl_server_delete.md +++ b/docs/cherryctl_server_delete.md @@ -32,6 +32,7 @@ cherryctl server delete ID [-f] [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_server_get.md b/docs/cherryctl_server_get.md index 531cb1b..dd55142 100644 --- a/docs/cherryctl_server_get.md +++ b/docs/cherryctl_server_get.md @@ -27,6 +27,7 @@ cherryctl server get {ID | HOSTNAME} [-p ] [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_server_list.md b/docs/cherryctl_server_list.md index 41a1cbe..db0a9e2 100644 --- a/docs/cherryctl_server_list.md +++ b/docs/cherryctl_server_list.md @@ -28,6 +28,7 @@ cherryctl server list [-p ] [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_server_reboot.md b/docs/cherryctl_server_reboot.md index 8ed40fc..dbde6ce 100644 --- a/docs/cherryctl_server_reboot.md +++ b/docs/cherryctl_server_reboot.md @@ -26,6 +26,7 @@ cherryctl server reboot ID [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_server_reinstall.md b/docs/cherryctl_server_reinstall.md index 5a08134..3788ebe 100644 --- a/docs/cherryctl_server_reinstall.md +++ b/docs/cherryctl_server_reinstall.md @@ -31,6 +31,7 @@ cherryctl server reinstall ID --hostname --image --passw ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_server_start.md b/docs/cherryctl_server_start.md index d145e1e..f200242 100644 --- a/docs/cherryctl_server_start.md +++ b/docs/cherryctl_server_start.md @@ -26,6 +26,7 @@ cherryctl server start ID [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_server_stop.md b/docs/cherryctl_server_stop.md index 36cbe2b..e6d0a49 100644 --- a/docs/cherryctl_server_stop.md +++ b/docs/cherryctl_server_stop.md @@ -26,6 +26,7 @@ cherryctl server stop ID [flags] ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_server_update.md b/docs/cherryctl_server_update.md index 0ebeb13..7e65b74 100644 --- a/docs/cherryctl_server_update.md +++ b/docs/cherryctl_server_update.md @@ -29,6 +29,7 @@ cherryctl server update ID [--name ] [--hostname ] [--tag ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_ssh-key.md b/docs/cherryctl_ssh-key.md index d06232e..20f5f4e 100644 --- a/docs/cherryctl_ssh-key.md +++ b/docs/cherryctl_ssh-key.md @@ -15,6 +15,7 @@ Ssh-key operations: get, list, update, delete. ### Options inherited from parent commands ``` + --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) diff --git a/docs/cherryctl_ssh-key_create.md b/docs/cherryctl_ssh-key_create.md index c003849..c4d6bc3 100644 --- a/docs/cherryctl_ssh-key_create.md +++ b/docs/cherryctl_ssh-key_create.md @@ -28,6 +28,7 @@ cherryctl ssh-key create --key --label ] [--tags ] [fl ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_plan.md b/docs/cherryctl_plan.md index e31a6b0..1a067be 100644 --- a/docs/cherryctl_plan.md +++ b/docs/cherryctl_plan.md @@ -17,6 +17,7 @@ Plan operations: get, list. ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_plan_list.md b/docs/cherryctl_plan_list.md index 6c921fe..bbd0a82 100644 --- a/docs/cherryctl_plan_list.md +++ b/docs/cherryctl_plan_list.md @@ -31,6 +31,7 @@ cherryctl plan list [-t ] [--region-id ] [--type ] [ ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_project.md b/docs/cherryctl_project.md index 72c37d6..8f8dfec 100644 --- a/docs/cherryctl_project.md +++ b/docs/cherryctl_project.md @@ -17,6 +17,7 @@ Project operations: get, list, create, update and delete. ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_project_create.md b/docs/cherryctl_project_create.md index 431691b..bf52f36 100644 --- a/docs/cherryctl_project_create.md +++ b/docs/cherryctl_project_create.md @@ -31,6 +31,7 @@ cherryctl project create [-t ] --name [--bgp ] [fl ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_project_delete.md b/docs/cherryctl_project_delete.md index 05ed341..9eac09b 100644 --- a/docs/cherryctl_project_delete.md +++ b/docs/cherryctl_project_delete.md @@ -35,6 +35,7 @@ cherryctl project delete ID [flags] ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_project_get.md b/docs/cherryctl_project_get.md index efcb8a9..f992cda 100644 --- a/docs/cherryctl_project_get.md +++ b/docs/cherryctl_project_get.md @@ -29,6 +29,7 @@ cherryctl project get ID [-p ] [flags] ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_project_list.md b/docs/cherryctl_project_list.md index 781dc00..d59fa57 100644 --- a/docs/cherryctl_project_list.md +++ b/docs/cherryctl_project_list.md @@ -29,6 +29,7 @@ cherryctl project list [-p ] [flags] ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_project_update.md b/docs/cherryctl_project_update.md index 9bcc526..be2d231 100644 --- a/docs/cherryctl_project_update.md +++ b/docs/cherryctl_project_update.md @@ -31,6 +31,7 @@ cherryctl project update ID [-p ] [--name ] [--bgp --plan --hostname --region ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_server_delete.md b/docs/cherryctl_server_delete.md index 6fc1c33..8bb9a28 100644 --- a/docs/cherryctl_server_delete.md +++ b/docs/cherryctl_server_delete.md @@ -34,6 +34,7 @@ cherryctl server delete ID [-f] [flags] ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_server_get.md b/docs/cherryctl_server_get.md index 61e03a1..6806dec 100644 --- a/docs/cherryctl_server_get.md +++ b/docs/cherryctl_server_get.md @@ -29,6 +29,7 @@ cherryctl server get {ID | HOSTNAME} [-p ] [flags] ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_server_list.md b/docs/cherryctl_server_list.md index 9560866..8fb7720 100644 --- a/docs/cherryctl_server_list.md +++ b/docs/cherryctl_server_list.md @@ -30,6 +30,7 @@ cherryctl server list [-p ] [flags] ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_server_reboot.md b/docs/cherryctl_server_reboot.md index 94bf972..ba4ff35 100644 --- a/docs/cherryctl_server_reboot.md +++ b/docs/cherryctl_server_reboot.md @@ -28,6 +28,7 @@ cherryctl server reboot ID [flags] ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_server_reinstall.md b/docs/cherryctl_server_reinstall.md index 81962b4..6cf6b1d 100644 --- a/docs/cherryctl_server_reinstall.md +++ b/docs/cherryctl_server_reinstall.md @@ -33,6 +33,7 @@ cherryctl server reinstall ID --hostname --image --passw ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_server_start.md b/docs/cherryctl_server_start.md index d959351..1a1536d 100644 --- a/docs/cherryctl_server_start.md +++ b/docs/cherryctl_server_start.md @@ -28,6 +28,7 @@ cherryctl server start ID [flags] ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_server_stop.md b/docs/cherryctl_server_stop.md index d87e710..a32e46e 100644 --- a/docs/cherryctl_server_stop.md +++ b/docs/cherryctl_server_stop.md @@ -28,6 +28,7 @@ cherryctl server stop ID [flags] ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_server_update.md b/docs/cherryctl_server_update.md index af3a6ad..9e1ca62 100644 --- a/docs/cherryctl_server_update.md +++ b/docs/cherryctl_server_update.md @@ -31,6 +31,7 @@ cherryctl server update ID [--name ] [--hostname ] [--tag ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_ssh-key.md b/docs/cherryctl_ssh-key.md index 620b1cb..cd7cc54 100644 --- a/docs/cherryctl_ssh-key.md +++ b/docs/cherryctl_ssh-key.md @@ -17,6 +17,7 @@ Ssh-key operations: get, list, update, delete. ``` --api-url string Override default API endpoint (default "https://api.cherryservers.com/v1/") --config string Path to JSON or YAML configuration file + --context string Specify a custom context name (default "default") --fields strings Comma separated object field names to output in result. Fields can be used for list and get actions. -o, --output string Output format (*table, json, yaml) --token string API Token (CHERRY_AUTH_TOKEN) diff --git a/docs/cherryctl_ssh-key_create.md b/docs/cherryctl_ssh-key_create.md index c4d6bc3..ef127f5 100644 --- a/docs/cherryctl_ssh-key_create.md +++ b/docs/cherryctl_ssh-key_create.md @@ -30,6 +30,7 @@ cherryctl ssh-key create --key --label