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

# jnc tree

> Show a tree of workspace dependencies.

# jnc tree

Displays a tree view of workspace dependencies. Direct dependencies specified in the manifest are highlighted in green. Conda package versions are shown in yellow and PyPI versions in blue.

## Usage

```bash theme={null}
jnc tree [OPTIONS] [REGEX]
```

**Alias:** `t`

## Arguments

| Argument  | Description                                                     |
| --------- | --------------------------------------------------------------- |
| `[REGEX]` | Optional regular expression to filter which packages are shown. |

## Options

| Option                  | Short | Description                                                                            |
| ----------------------- | ----- | -------------------------------------------------------------------------------------- |
| `--environment <ENV>`   | `-e`  | The environment to show the tree for. Defaults to the default environment.             |
| `--platform <PLATFORM>` | `-p`  | The platform to show the tree for. Defaults to the current platform.                   |
| `--invert`              | `-i`  | Invert the tree to show what depends on the given package (requires a regex argument). |
| `--frozen`              |       | Use the lock file as-is. Do not update it if it is out of date.                        |
| `--locked`              |       | Require the lock file to be up-to-date. Abort if it is not.                            |
| `--no-install`          |       | Do not install the environment, only check the lock file.                              |

## Global Options

| Option                   | Short | Description                                    |
| ------------------------ | ----- | ---------------------------------------------- |
| `--manifest-path <PATH>` | `-m`  | Path to `jnc.toml` or the workspace directory. |

## Examples

Show the full dependency tree:

```bash theme={null}
jnc tree
```

Filter to a specific package and its dependencies:

```bash theme={null}
jnc tree numpy
```

Show what depends on a specific package (inverted tree):

```bash theme={null}
jnc tree --invert openssl
```

Show the tree for a specific environment:

```bash theme={null}
jnc tree --environment test
```

Show the tree for a different platform:

```bash theme={null}
jnc tree --platform linux-aarch64
```
