## pyre appliance deploy

Mint an enrolment token and print the command that starts the appliance

### Synopsis

Prints what the computer that will run the appliance needs: the one-time
install step for its OS (the Pyre VM: Lima from pyredata.io, the VM
definition for that OS, the unit that starts it at sign-in -- the same
on Linux, macOS and Windows) and the run command with a fresh enrolment
token inside it. The token is single-use and expires; run the command
soon after.

Which OS: --os, else, at a terminal, a question (Enter = this computer);
in a script, this computer. A block for the wrong OS does not work: the
install lines, paths and the Windows PowerShell form differ per OS.
--rebuild re-enrols an appliance whose computer was rebuilt, keeping the
volume's identity.

```
pyre appliance deploy <volume> [flags]
```

### Examples

```
  pyre appliance deploy backups
  pyre appliance deploy backups --os windows
  pyre appliance deploy backups --rebuild
  pyre appliance deploy backups -o json | jq -r .run_command | sh   # Linux/macOS, hands-off
```

### Options

```
      --cache-mb int   local write cache size in MB (default: the dashboard's default)
  -h, --help           help for deploy
      --os string      linux, macos or windows (default: asked at a terminal, else this computer)
      --rebuild        re-enrol an appliance after its computer was rebuilt
```

### Options inherited from parent commands

```
      --api string       API base URL (default from the profile, or https://api.pyredata.io)
      --ca-cert string   PEM file with an extra CA to trust (self-hosted managers)
      --insecure         skip TLS certificate verification (lab use only)
  -o, --output string    output format: table, json or plain (default "table")
      --profile string   config profile to use (see: pyre config)
  -q, --quiet            print results only, no notices
      --token string     API token (default from the profile; prefer PYRE_TOKEN in scripts)
  -y, --yes              answer yes to every confirmation (for scripts)
```

### SEE ALSO

* [pyre appliance](pyre_appliance.md)	 - The appliance that serves a volume on your computer

