Skip to content

Latest commit

 

History

History
91 lines (63 loc) · 1.91 KB

keys.md

File metadata and controls

91 lines (63 loc) · 1.91 KB

heroku keys

add/remove account ssh keys

heroku keys

display your SSH keys

USAGE
  $ heroku keys [--json] [-l]

FLAGS
  -l, --long  display full SSH keys
      --json  output in json format

DESCRIPTION
  display your SSH keys

See code: src/commands/keys/index.ts

heroku keys:add [KEY]

add an SSH key for a user

USAGE
  $ heroku keys:add [KEY] [-y]

ARGUMENTS
  KEY  absolute path to the key located on disk. If omitted, we use the default rsa key.

FLAGS
  -y, --yes  automatically answer yes for all prompts

DESCRIPTION
  add an SSH key for a user

EXAMPLES
  $ heroku keys:add
  Could not find an existing public key.
  Would you like to generate one? [Yn] y
  Generating new SSH public key.
  Uploading SSH public key /.ssh/id_rsa.pub... done
  $ heroku keys:add /my/key.pub
  Uploading SSH public key /my/key.pub... done

See code: src/commands/keys/add.ts

heroku keys:clear

remove all SSH keys for current user

USAGE
  $ heroku keys:clear

DESCRIPTION
  remove all SSH keys for current user

See code: src/commands/keys/clear.ts

heroku keys:remove KEY

remove an SSH key from the user

USAGE
  $ heroku keys:remove KEY

ARGUMENTS
  KEY  email address of the user

DESCRIPTION
  remove an SSH key from the user

EXAMPLES
  $ heroku keys:remove [email protected]
  Removing [email protected] SSH key... done

See code: src/commands/keys/remove.ts