|
| 1 | +## stackit beta key-pair create |
| 2 | + |
| 3 | +Creates a key pair |
| 4 | + |
| 5 | +### Synopsis |
| 6 | + |
| 7 | +Creates a key pair. |
| 8 | + |
| 9 | +``` |
| 10 | +stackit beta key-pair create [flags] |
| 11 | +``` |
| 12 | + |
| 13 | +### Examples |
| 14 | + |
| 15 | +``` |
| 16 | + Create a new key pair with public-key "ssh-rsa xxx" |
| 17 | + $ stackit beta key-pair create --public-key `ssh-rsa xxx` |
| 18 | +
|
| 19 | + Create a new key pair with public-key from file "/Users/username/.ssh/id_rsa.pub" |
| 20 | + $ stackit beta key-pair create --public-key `@/Users/username/.ssh/id_rsa.pub` |
| 21 | +
|
| 22 | + Create a new key pair with name "KEY_PAIR_NAME" and public-key "ssh-rsa yyy" |
| 23 | + $ stackit beta key-pair create --name KEY_PAIR_NAME --public-key `ssh-rsa yyy` |
| 24 | +
|
| 25 | + Create a new key pair with public-key "ssh-rsa xxx" and labels "key=value,key1=value1" |
| 26 | + $ stackit beta key-pair create --public-key `ssh-rsa xxx` --labels key=value,key1=value1 |
| 27 | +``` |
| 28 | + |
| 29 | +### Options |
| 30 | + |
| 31 | +``` |
| 32 | + -h, --help Help for "stackit beta key-pair create" |
| 33 | + --labels stringToString Labels are key-value string pairs which can be attached to a key pair. E.g. '--labels key1=value1,key2=value2,...' (default []) |
| 34 | + --name string Key pair name |
| 35 | + --public-key string Public key to be imported (format: ssh-rsa|ssh-ed25519) |
| 36 | +``` |
| 37 | + |
| 38 | +### Options inherited from parent commands |
| 39 | + |
| 40 | +``` |
| 41 | + -y, --assume-yes If set, skips all confirmation prompts |
| 42 | + --async If set, runs the command asynchronously |
| 43 | + -o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"] |
| 44 | + -p, --project-id string Project ID |
| 45 | + --verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info") |
| 46 | +``` |
| 47 | + |
| 48 | +### SEE ALSO |
| 49 | + |
| 50 | +* [stackit beta key-pair](./stackit_beta_key-pair.md) - Provides functionality for SSH key pairs |
| 51 | + |
0 commit comments