# Install the CLI

Install the published npm package. Do not substitute an unofficial binary or `curl | sh` installer.

## Prerequisites

- Node.js 22+.

```sh
npm install --global appbarn-cli
appbarn --version
```

## Expected result

`appbarn --version` reports the installed package version and `appbarn config show` works without a token.

::: details AI prompt — Install the CLI (Copilot, Codex, Cursor)

```text
Inspect the Node.js toolchain and install the official appbarn-cli npm package using Node.js 22+. Choose global or project-local installation to fit this repository; ask if both are reasonable. Do not install unofficial binaries or curl-piped scripts. Verify appbarn --version and appbarn config show and report the version. Do not request or store Automation Tokens.
```

:::

## Common failures

If installation fails, confirm Node.js 22+ and use the current npm package release.

## Related

- [Configure](/cli/configure)
- [Environment variables](/reference/environment-variables)
