> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bevor.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Code commands

> List, inspect, and upload code versions for the active project.

<Note>The Bevor CLI is coming soon. This page previews its planned command interface.</Note>

List, inspect, and upload code versions for the active project.

## `bevor code use`

Point `.bevor` at a code version.

```bash theme={null}
bevor code use CODE_ID
```

| Parameter | Type   | Required | Default | Description             |
| --------- | ------ | -------- | ------- | ----------------------- |
| `CODE_ID` | string | Yes      | —       | Code mapping id to use. |

## `bevor code list`

List code versions for the active project. Examples: bevor code list bevor code list -j | jq '.\[].id'

```bash theme={null}
bevor code list [OPTIONS]
```

| Parameter         | Type                                       | Required | Default | Description                                         |
| ----------------- | ------------------------------------------ | -------- | ------- | --------------------------------------------------- |
| `--page`          | integer                                    | No       | None    | Page number to query                                |
| `--status`        | waiting \| processing \| failed \| success | No       | None    | Code status to filter by                            |
| `--page-size, -n` | integer                                    | No       | None    | Results per page.                                   |
| `--json, -j`      | boolean                                    | No       | false   | Output raw JSON.                                    |
| `--all, -a`       | boolean                                    | No       | false   | List code versions for all projects in current team |

## `bevor code get`

Print details for the code version selected in `.bevor` config.

```bash theme={null}
bevor code get [OPTIONS]
```

| Parameter    | Type    | Required | Default | Description      |
| ------------ | ------- | -------- | ------- | ---------------- |
| `--json, -j` | boolean | No       | false   | Output raw JSON. |

## `bevor code push`

Zip and upload a directory as a new code version.

```bash theme={null}
bevor code push [OPTIONS]
```

| Parameter   | Type    | Required | Default | Description                      |
| ----------- | ------- | -------- | ------- | -------------------------------- |
| `--path`    | path    | No       | None    | Source tree root (default: cwd). |
| `--yes, -y` | boolean | No       | false   | Skip confirmation.               |

## `bevor code sync`

If the working tree fingerprint differs from config, push a new code version.

```bash theme={null}
bevor code sync [OPTIONS]
```

| Parameter | Type | Required | Default | Description                      |
| --------- | ---- | -------- | ------- | -------------------------------- |
| `--path`  | path | No       | None    | Source tree root (default: cwd). |

## `bevor code node list`

```bash theme={null}
bevor code node list [OPTIONS]
```

| Parameter       | Type    | Required | Default | Description                                  |
| --------------- | ------- | -------- | ------- | -------------------------------------------- |
| `--entrypoints` | boolean | No       | false   | Only show auditable entry-point functions.   |
| `--file`        | string  | No       | None    | Filter to nodes in this file.                |
| `--no-deps`     | boolean | No       | None    | Filter to nodes under this directory prefix. |
| `--name`        | string  | No       | None    | Filter to nodes by name                      |
| `--node-type`   | string  | No       | None    | Filter to nodes by type                      |
| `--json, -j`    | boolean | No       | false   | Output raw JSON.                             |

## `bevor code node get`

```bash theme={null}
bevor code node get [OPTIONS] NODE_ID
```

| Parameter    | Type    | Required | Default | Description                      |
| ------------ | ------- | -------- | ------- | -------------------------------- |
| `NODE_ID`    | string  | Yes      | —       | Node short id (or full wire id). |
| `--json, -j` | boolean | No       | false   | Output raw JSON.                 |

## `bevor code node content`

Show the source code for a node. Examples: bevor code node content 00

```bash theme={null}
bevor code node content NODE_ID
```

| Parameter | Type   | Required | Default | Description                      |
| --------- | ------ | -------- | ------- | -------------------------------- |
| `NODE_ID` | string | Yes      | —       | Node short id (or full wire id). |

## `bevor code node edges`

```bash theme={null}
bevor code node edges [OPTIONS] NODE_ID
```

| Parameter     | Type    | Required | Default | Description                      |
| ------------- | ------- | -------- | ------- | -------------------------------- |
| `NODE_ID`     | string  | Yes      | —       | Node short id or full wire id.   |
| `--direction` | string  | No       | None    | Edge direction filter: in, out.  |
| `--type`      | string  | No       | None    | Edge type (e.g. calls, defines). |
| `--json, -j`  | boolean | No       | false   | Output raw JSON.                 |

## `bevor code node call-chain`

```bash theme={null}
bevor code node call-chain [OPTIONS] NODE_ID
```

| Parameter    | Type    | Required | Default | Description                          |
| ------------ | ------- | -------- | ------- | ------------------------------------ |
| `NODE_ID`    | string  | Yes      | —       | Node id                              |
| `--json, -j` | boolean | No       | false   | Output raw JSON (default mode only). |

## `bevor code node interactive`

Explore the graph from a node: get, source, optional call-chain (callable nodes only), and edges. Forward jumps (from call-chain or edges) push the current node onto a stack; **Back** pops to the previous node. get and source keep you on the current node.

```bash theme={null}
bevor code node interactive NODE_ID
```

| Parameter | Type   | Required | Default | Description                               |
| --------- | ------ | -------- | ------- | ----------------------------------------- |
| `NODE_ID` | string | Yes      | —       | Node to start from (short id or full id). |
