Skip to content

nodus create sshkey

View Markdown

Add an SSH public key, or generate a key pair and add it

nodus create sshkey [NAME] [flags]
nodus create sshkey laptop --from-file ~/.ssh/id_ed25519.pub
nodus create sshkey --generate
--display-name string A label for the console
--dry-run string[="server"] server returns the estimate without creating; client prints the manifest (default "none")
--from-file string OpenSSH public key file to add, or - for standard input
--generate Create a new Ed25519 key pair here and add its public key
-h, --help help for sshkey
--key-file string With --generate: where to write the private key (the public key goes next to it, with .pub) (default "~/.ssh/id_ed25519")
-o, --output string Output format: name, json, yaml, or estimate (with --dry-run=server)
--context string Context from the config file to use
--org string Organization (selects the context for that org)
-p, --project string Project to work in
-v, --verbose Log each API request (never credentials)
  • nodus create - Create resources from manifests or with a typed generator

These invocations run in CI against the CLI’s fake API.

Terminal window
nodus create sshkey laptop --from-file laptop.pub
nodus create sshkey fresh --generate --key-file id_fresh