# ccp visualize



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

Create and preview local interactive canvases

```text
Usage: ccp visualize [OPTIONS] <COMMAND>
```

| Argument   | Type or values | Default | Parser environment variable | Description |
| ---------- | -------------- | ------- | --------------------------- | ----------- |
| --help, -h | flag           | —       | —                           | Print help  |

## `ccp visualize init` [#ccp-visualize-init]

Create a local React canvas. Does not publish or log in

```text
Usage: ccp visualize init [OPTIONS] --title <TITLE> <PATH>
```

| Argument     | Type or values          | Default   | Parser environment variable | Description                                  |
| ------------ | ----------------------- | --------- | --------------------------- | -------------------------------------------- |
| path         | path                    | —         | —                           |                                              |
| --title      | text                    | —         | —                           |                                              |
| --format     | explainer, canvas, note | explainer | —                           |                                              |
| --project    | text                    | —         | —                           |                                              |
| --chat       | text                    | —         | —                           |                                              |
| --no-install | flag                    | false     | —                           | Write source without installing dependencies |
| --help, -h   | flag                    | —         | —                           | Print help                                   |

## `ccp visualize dev` [#ccp-visualize-dev]

Run a protected loopback preview; emits versioned JSON events

```text
Usage: ccp visualize dev [OPTIONS] <PATH>
```

| Argument   | Type or values | Default | Parser environment variable | Description |
| ---------- | -------------- | ------- | --------------------------- | ----------- |
| path       | path           | —       | —                           |             |
| --help, -h | flag           | —       | —                           | Print help  |

## `ccp visualize typecheck` [#ccp-visualize-typecheck]

Typecheck local source using the toolchain Node and installed TypeScript

```text
Usage: ccp visualize typecheck [OPTIONS] <PATH>
```

| Argument   | Type or values | Default | Parser environment variable | Description |
| ---------- | -------------- | ------- | --------------------------- | ----------- |
| path       | path           | —       | —                           |             |
| --help, -h | flag           | —       | —                           | Print help  |

## `ccp visualize content` [#ccp-visualize-content]

Read editable content and its revision, or conditionally replace one part from stdin

```text
Usage: ccp visualize content [OPTIONS] <PATH>
```

| Argument   | Type or values | Default | Parser environment variable | Description                        |
| ---------- | -------------- | ------- | --------------------------- | ---------------------------------- |
| --json     | flag           | false   | —                           | Emit the structured content result |
| path       | path           | —       | —                           |                                    |
| --part     | diagram, note  | —       | —                           |                                    |
| --revision | text           | —       | —                           |                                    |
| --help, -h | flag           | —       | —                           | Print help                         |

## `ccp visualize inspect` [#ccp-visualize-inspect]

Read validated Canvas metadata as JSON

```text
Usage: ccp visualize inspect [OPTIONS] <PATH>
```

| Argument   | Type or values | Default | Parser environment variable | Description |
| ---------- | -------------- | ------- | --------------------------- | ----------- |
| path       | path           | —       | —                           |             |
| --json     | flag           | false   | —                           |             |
| --help, -h | flag           | —       | —                           | Print help  |

## Example [#example]

```bash
ccp visualize inspect ./canvas
```

## 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 |
