Creates a key pair
Creates a key pair.
stackit key-pair create [flags]
Create a new key pair with public-key "ssh-rsa xxx"
$ stackit 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 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 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 key-pair create --public-key `ssh-rsa xxx` --labels key=value,key1=value1
-h, --help Help for "stackit 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)
-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
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
- stackit key-pair - Provides functionality for SSH key pairs