# spin ssh-key

**Spinbox is experimental: APIs change and data may be lost.** What is built and what proves it is on [Status](https://spin-stack.github.io/website/reference/status.md); what Spinbox does not do is on [Limitations](https://spin-stack.github.io/website/overview/limitations.md).

> spin ssh-key: Manage SSH keys.

<!-- Generated by tools/refgen from spin:cmd/cli. Edit the source, not this file. -->

```
The public keys registered with your account: a registry to pick from, and nothing more.

A key registered here logs in to no workspace on its own. A workspace lets in only the keys its
owner's word lists - 'spin workspace keys add <workspace> <key>' signs one in, with the
workspace's anchor - and a passkey the terminal page registers is added here for that.

Usage:
  spin ssh-key [flags]
  spin ssh-key [command]

Available Commands:
  add         Upload an SSH public key to your account
  delete      Delete an SSH key from your account
  list        List your uploaded SSH public keys

Flags:
  -h, --help   help for ssh-key

Global Flags:
      --config string    config file (default is $HOME/.spin/config.yaml)
  -o, --output string    text for a person, or json: one document of what the API answered, and no prose (default "text")
      --profile string   named profile to use; SPIN_PROFILE names it when this flag does not (default "default")

Use "spin ssh-key [command] --help" for more information about a command.
```

### spin ssh-key add

```
Upload an SSH public key that will be added to all your workspaces.

Examples:
  spin ssh-key add laptop ~/.ssh/id_ed25519.pub
  spin ssh-key add work-key /path/to/key.pub
  spin ssh-key add mykey - < key.pub  # Read from stdin

Usage:
  spin ssh-key add <name> <public-key-file> [flags]

Flags:
  -h, --help   help for add

Global Flags:
      --config string    config file (default is $HOME/.spin/config.yaml)
  -o, --output string    text for a person, or json: one document of what the API answered, and no prose (default "text")
      --profile string   named profile to use; SPIN_PROFILE names it when this flag does not (default "default")
```

### spin ssh-key delete

```
Delete an SSH key from your account

Usage:
  spin ssh-key delete <key-id> [flags]

Flags:
  -h, --help   help for delete
  -y, --yes    Skip confirmation

Global Flags:
      --config string    config file (default is $HOME/.spin/config.yaml)
  -o, --output string    text for a person, or json: one document of what the API answered, and no prose (default "text")
      --profile string   named profile to use; SPIN_PROFILE names it when this flag does not (default "default")
```

### spin ssh-key list

```
List your uploaded SSH public keys

Usage:
  spin ssh-key list [flags]

Flags:
  -h, --help   help for list

Global Flags:
      --config string    config file (default is $HOME/.spin/config.yaml)
  -o, --output string    text for a person, or json: one document of what the API answered, and no prose (default "text")
      --profile string   named profile to use; SPIN_PROFILE names it when this flag does not (default "default")
```
