# Install with npm

Source: https://prontaro.com/docs/cli/npm/

Start an HTTPS tunnel in a Node.js project without a separate installer, or add prontaro through npm.

The npm package installs the native `prontaro` CLI binary for Linux, macOS, and Windows (`x64` and `arm64`). It uses the same commands, saved login, and state directory as the standalone installer.

## Run without installing (`npx`)

Run `prontaro` directly with `npx` when you want to test a tunnel or share a local server without installing anything globally:

```bash
npx prontaro login
npx prontaro http 3000
```

`npx prontaro` works just like the installed CLI. If you run `npx prontaro http 3000` before signing in, the CLI prompts you to run `npx prontaro login` first and then repeat the command.

## Install with npm

Install `prontaro` globally so it is available as a regular terminal command, or add it locally as a project dependency:

**Global install**

```bash
npm install -g prontaro
```

**Project-local install**

```bash
npm install --save-dev prontaro
```

With a global install, sign in and check your account status directly:

```bash
prontaro login
prontaro status
```

With a project-local install, run commands through `npx prontaro ...` or your `package.json` scripts. For CI pipelines, containers, and non-interactive authentication via `PRONTARO_KEY`, see [prontaro CLI overview](https://prontaro.com/docs/cli/overview.md).

## Updating and uninstalling

Update an installed package with the command matching how you installed it:

**Global install**

```bash
npm update -g prontaro
```

**Project-local install**

```bash
npm update prontaro
```

When running on demand through `npx` without a local installation, npm fetches newer versions automatically unless you pin a specific version.

To remove an npm installation, sign out if needed and uninstall the package:

**Global install**

```bash
prontaro logout
npm uninstall -g prontaro
```

**Project-local install**

```bash
npm uninstall prontaro
```

## Background services

`prontaro service install` is not supported when `prontaro` is installed via npm or run with `npx`. To run tunnels automatically as a background service, install the CLI with the native installer for [Linux](https://prontaro.com/docs/cli/linux.md), [macOS](https://prontaro.com/docs/cli/macos.md), or [Windows](https://prontaro.com/docs/cli/windows.md).

## Troubleshooting

- **`Missing @prontaro/cli-<os>-<cpu>`:** npm skipped the platform binary package — usually because of `--omit=optional`, a restricted corporate mirror, or a lockfile generated on another OS or architecture. Reinstall without `--omit=optional`, make sure your registry mirrors `@prontaro/*` packages, or use the native installer for [Linux](https://prontaro.com/docs/cli/linux.md), [macOS](https://prontaro.com/docs/cli/macos.md), or [Windows](https://prontaro.com/docs/cli/windows.md).
- **Windows `EBUSY` or `EPERM` when updating:** stop any running tunnels and MCP clients running `prontaro mcp` so Windows releases `prontaro.exe`, then retry the update.
- **Using MCP on Windows with a global npm install:** `@prontaro/mcp` looks for the native `prontaro.exe` binary in `PATH` and does not launch npm’s `prontaro.cmd` shim. Configure `npx -y prontaro mcp` in your MCP client or install the native Windows binary — see [Prontaro MCP server](https://prontaro.com/docs/cli/mcp.md).

## Licensing

The `prontaro` CLI binary is free to use as closed-source software under our [Terms of Service](https://prontaro.com/tos/) (§2); the npm launcher wrapper is licensed under MIT.

## Next steps

- [Open your first HTTPS tunnel in 2 minutes](https://prontaro.com/docs/start/tunnel.md) — expose a local web server over a permanent HTTPS address.
- [Prontaro MCP server](https://prontaro.com/docs/cli/mcp.md) — connect Claude Code, Cursor, or Codex to inspect webhooks and replay requests locally.
- [prontaro CLI command reference](https://prontaro.com/docs/cli/commands.md) — full list of subcommands, global flags, and terminal examples.
- [prontaro CLI overview](https://prontaro.com/docs/cli/overview.md) — authentication methods, CI variables, and native OS installers.
