Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/stackit_beta.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ stackit beta [flags]
### SEE ALSO

* [stackit](./stackit.md) - Manage STACKIT resources using the command line
* [stackit beta key-pair](./stackit_beta_key-pair.md) - Provides functionality for Keypairs
* [stackit beta network](./stackit_beta_network.md) - Provides functionality for networks
* [stackit beta network-area](./stackit_beta_network-area.md) - Provides functionality for STACKIT Network Area (SNA)
* [stackit beta network-interface](./stackit_beta_network-interface.md) - Provides functionality for network interfaces
Expand Down
37 changes: 37 additions & 0 deletions docs/stackit_beta_key-pair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## stackit beta key-pair

Provides functionality for Keypairs

### Synopsis

Provides functionality for Keypairs

```
stackit beta key-pair [flags]
```

### Options

```
-h, --help Help for "stackit beta key-pair"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
* [stackit beta key-pair create](./stackit_beta_key-pair_create.md) - Create a keypair
* [stackit beta key-pair delete](./stackit_beta_key-pair_delete.md) - Delete a keypair
* [stackit beta key-pair describe](./stackit_beta_key-pair_describe.md) - Describe a keypair
* [stackit beta key-pair list](./stackit_beta_key-pair_list.md) - Lists all SSH Keypairs
* [stackit beta key-pair update](./stackit_beta_key-pair_update.md) - Update key pair

51 changes: 51 additions & 0 deletions docs/stackit_beta_key-pair_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## stackit beta key-pair create

Create a keypair

### Synopsis

Create a keypair.

```
stackit beta key-pair create [flags]
```

### Examples

```
Create a new key-pair with public-key "ssh-rsa xxx"
$ stackit beta key-pair create --public-key ssh-rsa xxx

Create a new key-pair with public-key from file "/Users/username/.ssh/id_rsa.pub"
$ stackit beta key-pair create --public-key @/Users/username/.ssh/id_rsa.pub

Create a new key-pair with name "KEYPAIR_NAME" and public-key "ssh-rsa yyy"
$ stackit beta key-pair create --name KEYPAIR_NAME --public-key ssh-rsa yyy

Create a new key-pair with public-key "ssh-rsa xxx" and labels "key=value,key1=value1"
$ stackit beta key-pair create --public-key ssh-rsa xxx --labels key=value,key1=value1
```

### Options

```
-h, --help Help for "stackit beta key-pair create"
--labels stringToString Labels are key-value string pairs which can be attached to a server. E.g. '--labels key1=value1,key2=value2,...' (default [])
--name string Name of the key which will be created
--public-key string Public key which should be add (format: ssh-rsa|sha-ed25519)
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta key-pair](./stackit_beta_key-pair.md) - Provides functionality for Keypairs

39 changes: 39 additions & 0 deletions docs/stackit_beta_key-pair_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## stackit beta key-pair delete

Delete a keypair

### Synopsis

Delete a keypair.

```
stackit beta key-pair delete [flags]
```

### Examples

```
Delete keypair with name "XXX"
$ stackit beta keypair delete XXX
```

### Options

```
-h, --help Help for "stackit beta key-pair delete"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta key-pair](./stackit_beta_key-pair.md) - Provides functionality for Keypairs

43 changes: 43 additions & 0 deletions docs/stackit_beta_key-pair_describe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## stackit beta key-pair describe

Describe a keypair

### Synopsis

Describe a keypair.

```
stackit beta key-pair describe [flags]
```

### Examples

```
Get details about a keypair named "KEYPAIR_NAME"
$ stackit beta keypair describe KEYPAIR_NAME

Get only the SSH public key of a keypair with the name "KEYPAIR_NAME"
$ stackit beta keypair describe KEYPAIR_NAME --public-key
```

### Options

```
-h, --help Help for "stackit beta key-pair describe"
--public-key Show only the public key
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta key-pair](./stackit_beta_key-pair.md) - Provides functionality for Keypairs

50 changes: 50 additions & 0 deletions docs/stackit_beta_key-pair_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
## stackit beta key-pair list

Lists all SSH Keypairs

### Synopsis

Lists all SSH Keypairs.

```
stackit beta key-pair list [flags]
```

### Examples

```
Lists all ssh keypairs
$ stackit beta key-pair list

Lists all ssh keypairs which contains the label xxx
$ stackit beta key-pair list --label-selector xxx

Lists all ssh keypairs in JSON format
$ stackit beta key-pair list --output-format json

Lists up to 10 ssh keypairs
$ stackit beta key-pair list --limit 10
```

### Options

```
-h, --help Help for "stackit beta key-pair list"
--label-selector string Filter by label
--limit int Number of SSH keypairs to list
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta key-pair](./stackit_beta_key-pair.md) - Provides functionality for Keypairs

40 changes: 40 additions & 0 deletions docs/stackit_beta_key-pair_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## stackit beta key-pair update

Update key pair

### Synopsis

Update key pair.

```
stackit beta key-pair update [flags]
```

### Examples

```
Update the labels of a keypair KEYPAIR_NAME with "key=value,key1=value1"
$ stackit beta key-pair update --labels key=value,key1=value1
```

### Options

```
-h, --help Help for "stackit beta key-pair update"
--labels stringToString Labels are key-value string pairs which can be attached to a server. E.g. '--labels key1=value1,key2=value2,...' (default [])
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit beta key-pair](./stackit_beta_key-pair.md) - Provides functionality for Keypairs

2 changes: 2 additions & 0 deletions internal/cmd/beta/beta.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package beta
import (
"fmt"

keypair "github.com/stackitcloud/stackit-cli/internal/cmd/beta/key-pair"
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/network"
networkArea "github.com/stackitcloud/stackit-cli/internal/cmd/beta/network-area"
networkinterface "github.com/stackitcloud/stackit-cli/internal/cmd/beta/network-interface"
Expand Down Expand Up @@ -48,4 +49,5 @@ func addSubcommands(cmd *cobra.Command, p *print.Printer) {
cmd.AddCommand(volume.NewCmd(p))
cmd.AddCommand(networkinterface.NewCmd(p))
cmd.AddCommand(publicip.NewCmd(p))
cmd.AddCommand(keypair.NewCmd(p))
}
Loading