Skip to main content

keys ls

List all SSH keys.
machine0 keys ls
Alias: keys list

keys get

Show key details.
machine0 keys get <key> [flags]
FlagDescription
--downloadDownload the private key to SSH_KEY_PATH
-f, --forceOverwrite existing file when downloading

keys new

Add a new SSH key.
machine0 keys new <key> [flags]
Alias: keys create
FlagDescription
--type <type>Required. MANAGED or PUBLIC
--publicKeyPath <path>Path to public key file (required for PUBLIC)
--defaultSet as the default key for new VMs
Managed key (server generates the keypair):
machine0 keys new my-key --type MANAGED --default
The private key is saved to ~/.ssh/machine0__my-key. Public key (bring your own):
machine0 keys new my-key --type PUBLIC --publicKeyPath ~/.ssh/id_ed25519.pub

keys update

Update key settings.
machine0 keys update <key> [flags]
FlagDescription
--default <bool>Set as default key (true/false)

keys rm

Delete a key.
machine0 keys rm <key> [flags]
Alias: keys destroy
FlagDescription
-y, --yesSkip confirmation prompt