Skip to content

Commit

Permalink
Merge pull request #54 from caliban0/serverDocFix
Browse files Browse the repository at this point in the history
Fix server creation docs.
  • Loading branch information
zalmarge authored Oct 25, 2024
2 parents e7a309d + 016303d commit 1ed5986
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/cherryctl_server_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ Create a server.

### Synopsis

Create a server in speficied project.
Create a server in specified project.

```
cherryctl server create -p <project_id> --plan <plan_slug> --hostname --region <region_slug> [--image <image_slug>] [--ssh-keys <ssh_key_ids>] [--ip-addresses <ip_addresses_ids>] [--os-partition-size <size>] [--userdata-file <filepath>] [--tags] [--spot-instance] [flags]
cherryctl server create -p <project_id> --plan <plan_slug> --region <region_slug> [--hostname <hostname>] [--image <image_slug>] [--ssh-keys <ssh_key_ids>] [--ip-addresses <ip_addresses_ids>] [--os-partition-size <size>] [--userdata-file <filepath>] [--tags] [--spot-instance] [flags]
```

### Examples

```
# Provisions a E5-1620v4 server in EU-Nord-1 location running on a Ubuntu 20.04:
cherryctl server create -p <project_id> --plan e5_1620v4 -h staging-server-1 --image ubuntu_20_04 --region eu_nord_1
cherryctl server create -p <project_id> --plan e5_1620v4 --hostname staging-server-1 --image ubuntu_20_04 --region eu_nord_1
```

### Options
Expand Down
6 changes: 3 additions & 3 deletions internal/servers/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ func (c *Client) Create() *cobra.Command {
)

createServerCmd := &cobra.Command{
Use: `create -p <project_id> --plan <plan_slug> --hostname --region <region_slug> [--image <image_slug>] [--ssh-keys <ssh_key_ids>] [--ip-addresses <ip_addresses_ids>] [--os-partition-size <size>] [--userdata-file <filepath>] [--tags] [--spot-instance]`,
Use: `create -p <project_id> --plan <plan_slug> --region <region_slug> [--hostname <hostname>] [--image <image_slug>] [--ssh-keys <ssh_key_ids>] [--ip-addresses <ip_addresses_ids>] [--os-partition-size <size>] [--userdata-file <filepath>] [--tags] [--spot-instance]`,
Short: "Create a server.",
Long: "Create a server in speficied project.",
Long: "Create a server in specified project.",
Example: ` # Provisions a E5-1620v4 server in EU-Nord-1 location running on a Ubuntu 20.04:
cherryctl server create -p <project_id> --plan e5_1620v4 -h staging-server-1 --image ubuntu_20_04 --region eu_nord_1`,
cherryctl server create -p <project_id> --plan e5_1620v4 --hostname staging-server-1 --image ubuntu_20_04 --region eu_nord_1`,

RunE: func(cmd *cobra.Command, args []string) error {
cmd.SilenceUsage = true
Expand Down

0 comments on commit 1ed5986

Please sign in to comment.