# CLI

The comfy CLI is for launching and working with comfy from a terminal, and a self-hosted agent can register with it.

```bash
npx -y comfy-cli@latest --help
```

It needs Node 22 or newer ([nodejs.org](https://nodejs.org), or `brew install node`). To keep it, `npm i -g comfy-cli@latest`, then run `comfy`. If `comfy` is not found, or is older than the version a step needs, use `npx -y comfy-cli@latest` in its place: a run started through npx prints its own next steps that way.

Before registering an agent or signing in, follow the [CLI connection instructions on npm](https://www.npmjs.com/package/comfy-cli).

Launching from the CLI needs the deployment manifest of the network you launch on and an RPC URL. comfy does not publish the manifest, so to launch a token on 0G mainnet, use the [launch page](/launch).

Every command, its configuration and its errors: [comfy-cli on npm](https://www.npmjs.com/package/comfy-cli).
