# coder provisioner start

Run a provisioner daemon

## Usage [#usage]

```console
coder provisioner start [flags]
```

## Options [#options]

### -c, --cache-dir [#-c---cache-dir]

|             |                                       |
| ----------- | ------------------------------------- |
| Type        | <code>string</code>                   |
| Environment | <code>$CODER\_CACHE\_DIRECTORY</code> |
| Default     | <code>\~/.cache/coder</code>          |

Directory to store cached data.

### -t, --tag [#-t---tag]

|             |                                         |
| ----------- | --------------------------------------- |
| Type        | <code>string-array</code>               |
| Environment | <code>$CODER\_PROVISIONERD\_TAGS</code> |

Tags to filter provisioner jobs by.

### --poll-interval [#--poll-interval]

|             |                                                   |
| ----------- | ------------------------------------------------- |
| Type        | <code>duration</code>                             |
| Environment | <code>$CODER\_PROVISIONERD\_POLL\_INTERVAL</code> |
| Default     | <code>1s</code>                                   |

Deprecated and ignored.

### --poll-jitter [#--poll-jitter]

|             |                                                 |
| ----------- | ----------------------------------------------- |
| Type        | <code>duration</code>                           |
| Environment | <code>$CODER\_PROVISIONERD\_POLL\_JITTER</code> |
| Default     | <code>100ms</code>                              |

Deprecated and ignored.

### --psk [#--psk]

|             |                                               |
| ----------- | --------------------------------------------- |
| Type        | <code>string</code>                           |
| Environment | <code>$CODER\_PROVISIONER\_DAEMON\_PSK</code> |

Pre-shared key to authenticate with Coder server.

### --key [#--key]

|             |                                               |
| ----------- | --------------------------------------------- |
| Type        | <code>string</code>                           |
| Environment | <code>$CODER\_PROVISIONER\_DAEMON\_KEY</code> |

Provisioner key to authenticate with Coder server.

### --name [#--name]

|             |                                                |
| ----------- | ---------------------------------------------- |
| Type        | <code>string</code>                            |
| Environment | <code>$CODER\_PROVISIONER\_DAEMON\_NAME</code> |

Name of this provisioner daemon. Defaults to the current hostname without FQDN.

### --verbose [#--verbose]

|             |                                                   |
| ----------- | ------------------------------------------------- |
| Type        | <code>bool</code>                                 |
| Environment | <code>$CODER\_PROVISIONER\_DAEMON\_VERBOSE</code> |
| Default     | <code>false</code>                                |

Output debug-level logs.

### --log-human [#--log-human]

|             |                                                          |
| ----------- | -------------------------------------------------------- |
| Type        | <code>string</code>                                      |
| Environment | <code>$CODER\_PROVISIONER\_DAEMON\_LOGGING\_HUMAN</code> |
| Default     | <code>/dev/stderr</code>                                 |

Output human-readable logs to a given file.

### --log-json [#--log-json]

|             |                                                         |
| ----------- | ------------------------------------------------------- |
| Type        | <code>string</code>                                     |
| Environment | <code>$CODER\_PROVISIONER\_DAEMON\_LOGGING\_JSON</code> |

Output JSON logs to a given file.

### --log-stackdriver [#--log-stackdriver]

|             |                                                                |
| ----------- | -------------------------------------------------------------- |
| Type        | <code>string</code>                                            |
| Environment | <code>$CODER\_PROVISIONER\_DAEMON\_LOGGING\_STACKDRIVER</code> |

Output Stackdriver compatible logs to a given file.

### --log-filter [#--log-filter]

|             |                                                       |
| ----------- | ----------------------------------------------------- |
| Type        | <code>string-array</code>                             |
| Environment | <code>$CODER\_PROVISIONER\_DAEMON\_LOG\_FILTER</code> |

Filter debug logs by matching against a given regex. Use .\* to match all debug logs.

### --prometheus-enable [#--prometheus-enable]

|             |                                         |
| ----------- | --------------------------------------- |
| Type        | <code>bool</code>                       |
| Environment | <code>$CODER\_PROMETHEUS\_ENABLE</code> |
| Default     | <code>false</code>                      |

Serve prometheus metrics on the address defined by prometheus address.

### --prometheus-address [#--prometheus-address]

|             |                                          |
| ----------- | ---------------------------------------- |
| Type        | <code>string</code>                      |
| Environment | <code>$CODER\_PROMETHEUS\_ADDRESS</code> |
| Default     | <code>127.0.0.1:2112</code>              |

The bind address to serve prometheus metrics.

### --experiments [#--experiments]

|             |                                  |
| ----------- | -------------------------------- |
| Type        | <code>string-array</code>        |
| Environment | <code>$CODER\_EXPERIMENTS</code> |
| YAML        | <code>experiments</code>         |

Enable one or more experiments. These are not ready for production. Separate multiple experiments with commas, or enter '\*' to opt-in to all available experiments.

### -O, --org [#-o---org]

|             |                                   |
| ----------- | --------------------------------- |
| Type        | <code>string</code>               |
| Environment | <code>$CODER\_ORGANIZATION</code> |

Select which organization (uuid or name) to use.
