# ccp dev



{/* Generated by scripts/sync-cli-reference.ts */}

Start a local dev server to test an App

```text
Usage: ccp dev [OPTIONS] [PATH]
```

| Argument                | Type or values | Default | Parser environment variable | Description                                                                                                           |
| ----------------------- | -------------- | ------- | --------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| path                    | path           | —       | —                           | Path to a file or a directory containing an App                                                                       |
| --client, -c            | path           | —       | —                           | Path to a client-side script                                                                                          |
| --public-dir, -p        | path           | —       | —                           | Path to a public directory to serve assets from                                                                       |
| --port                  | integer        | —       | —                           | Port to start dev server on (default: 8000)                                                                           |
| --hostname              | text           | —       | —                           | Hostname to start dev server on (default: 0.0.0.0)                                                                    |
| --env, -e               | path           | —       | —                           | Path to a custom environment variables file to use                                                                    |
| --allow-code-generation | flag           | false   | —                           | Allow code generation from strings using `eval` / `new Function`                                                      |
| --prod, --production    | flag           | false   | —                           | Force `process.env.NODE_ENV` to be "production"                                                                       |
| --headless              | flag           | false   | —                           | Suppress styled banners and screen clears; emit one-line `[dev] ...` logs only. Auto-enabled when stdout is not a TTY |
| --json                  | flag           | false   | —                           | Emit versioned JSON Lines events on stdout; diagnostics stay on stderr                                                |
| --no-env                | flag           | false   | —                           | Do not read a .env file. Mutually exclusive with --env                                                                |
| --help, -h              | flag           | —       | —                           | Print help                                                                                                            |

## Example [#example]

```bash
ccp dev
```

## Global options [#global-options]

Set `CCP_CONTEXT` to choose a named context. An explicit `--context` takes precedence. See [organization selection](/docs/ccp/organizations) for organization defaults.

| Argument  | Type or values | Default | Parser environment variable | Description                                         |
| --------- | -------------- | ------- | --------------------------- | --------------------------------------------------- |
| --context | text           | —       | —                           | Select a developer context from \~/.ccp/config.toml |
