CH·02CLI reference
gpu keys create
Upload an SSH public key
Upload an SSH public key
Synopsis
Uploads an SSH public key for injection into future instances. Pass the key either inline via --public-key or read it from disk via --public-key-file.
gpu keys create --name <name> (--public-key-file <path> | --public-key <key>) [flags]
Examples
# Read from the standard ed25519 public key
gpu keys create --name laptop --public-key-file ~/.ssh/id_ed25519.pub
# Inline (useful in CI)
gpu keys create --name ci --public-key "ssh-ed25519 AAAAC3... ci@example"
Options
-h, --help help for create
--name string Display name for the key (required)
--public-key string Public key contents (inline)
--public-key-file string Path to a public key file (e.g., ~/.ssh/id_ed25519.pub)
Options inherited from parent commands
--api-base string API base URL (override with GPUAI_API_BASE env) (default "https://api.gpu.ai/v1")
--debug Enable debug logging to stderr
-o, --output string Output format: table|json (default table on TTY, json otherwise)
SEE ALSO
- gpu keys - Manage SSH keys