Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Below you can find a list of the STACKIT services already available in the CLI (
| Service | CLI Commands | Status |
| ---------------------------------- |----------------------------------------------------------------------------------------------------------------------| ------------------------- |
| Observability | `observability` | :white_check_mark: |
| Infrastructure as a Service (IaaS) | `beta network-area` <br/> `beta network` <br/> `beta volume` <br/> `beta network-interface` <br/> `beta public-ip` | :white_check_mark: (beta) |
| Infrastructure as a Service (IaaS) | `beta network-area` <br/> `beta network` <br/> `beta volume` <br/> `beta network-interface` <br/> `beta public-ip` <br/> `beta key-pair` | :white_check_mark: (beta) |
| Authorization | `project`, `organization` | :white_check_mark: |
| DNS | `dns` | :white_check_mark: |
| Kubernetes Engine (SKE) | `ske` | :white_check_mark: |
Expand Down
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 SSH key pairs
* [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 SSH key pairs

### Synopsis

Provides functionality for SSH key pairs

```
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) - Creates a key pair
* [stackit beta key-pair delete](./stackit_beta_key-pair_delete.md) - Deletes a key pair
* [stackit beta key-pair describe](./stackit_beta_key-pair_describe.md) - Describes a key pair
* [stackit beta key-pair list](./stackit_beta_key-pair_list.md) - Lists all key pairs
* [stackit beta key-pair update](./stackit_beta_key-pair_update.md) - Updates a 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

Creates a key pair

### Synopsis

Creates a key pair.

```
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 "KEY_PAIR_NAME" and public-key "ssh-rsa yyy"
$ stackit beta key-pair create --name KEY_PAIR_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 key pair. E.g. '--labels key1=value1,key2=value2,...' (default [])
--name string Key pair name
--public-key string Public key to be imported (format: ssh-rsa|ssh-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 SSH key pairs

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

Deletes a key pair

### Synopsis

Deletes a key pair.

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

### Examples

```
Delete key pair with name "KEY_PAIR_NAME"
$ stackit beta key-pair delete KEY_PAIR_NAME
```

### 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 SSH key pairs

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

Describes a key pair

### Synopsis

Describes a key pair.

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

### Examples

```
Get details about a key pair with name "KEY_PAIR_NAME"
$ stackit beta key-pair describe KEY_PAIR_NAME

Get only the SSH public key of a key pair with name "KEY_PAIR_NAME"
$ stackit beta key-pair describe KEY_PAIR_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 SSH key pairs

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 key pairs

### Synopsis

Lists all key pairs.

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

### Examples

```
Lists all key pairs
$ stackit beta key-pair list

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

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

Lists up to 10 key pairs
$ 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 key pairs 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 SSH key pairs

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

Updates a key pair

### Synopsis

Updates a key pair.

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

### Examples

```
Update the labels of a key pair with name "KEY_PAIR_NAME" with "key=value,key1=value1"
$ stackit beta key-pair update KEY_PAIR_NAME --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 SSH key pairs

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
Loading