
# Install the ctx CLI

## Install globally

```bash
npm install -g @promptowl/contextnest-cli
```

The package installs with a **flattened dependency tree** — its runtime dependencies are bundled/flattened so a global install pulls a self-contained CLI rather than a deep `node_modules` graph.

## Or run directly with npx

```bash
npx @promptowl/contextnest-cli@latest init
```

## Verify

```bash
ctx --version
```

You should see a version string (e.g. `2.2.0`).

## Two identical binaries

The package exposes two commands that are the same tool: `ctx` (short, used throughout the docs) and `contextnest` (long form). Use whichever you prefer:

```bash
ctx --help
contextnest --help
```
