# Install and sign in

> Install the vantuly CLI and sign in to deploy from a terminal or an AI agent.

Source: https://vantuly.com/docs/cli

The `vantuly` CLI deploys a folder from your computer to one of your team's servers, from a terminal or from an AI agent (Claude Code, Codex, OpenCode, Cursor). The site goes live on a free `https://NAME.vantuly.site` address at once; add your own domain whenever you like.

:::tip[Before you start]
You need:

1. **A Vantuly account with a verified email address.** [Sign up](https://app.vantuly.com) if you don't have one; you can't approve the CLI sign-in until your email is confirmed.
2. **At least one ready server in your team.** [Connect a server](/docs/start/connect-server) first: the CLI deploys to it, it does not create servers.
3. **Node.js 18 or newer** for the npm install or `npx`. Without Node.js, use [Homebrew, pip or the install script](#install).
4. **A built site, for static sites.** Astro, Vite and similar projects must be built on your computer first (`npm run build`); Node.js and Python apps are built on the server.
:::

## Install

Needs Node.js 18 or newer. Works on macOS, Linux and Windows.

```sh
npm install -g vantuly
```
Needs Node.js 18 or newer. Works on macOS, Linux and Windows.

```sh
pnpm add -g vantuly
```
macOS and Linux, no Node.js needed.

```sh
brew install vantuly/tap/vantuly
```
Needs Python 3. Works on macOS, Linux and Windows; the package holds the binary itself, no Node.js needed.

```sh
pip install vantuly
```
macOS and Linux, no Node.js needed. Installs the binary to `~/.local/bin/vantuly` without root.

```sh
curl -fsSL https://app.vantuly.com/cli.sh | sh
```

`VANTULY_INSTALL_DIR` picks another folder and `VANTULY_VERSION=v1.2.3` a version. If the script says so, add the folder to your `PATH`. A self-hosted panel serves its own script at `<panel>/cli.sh`.
With Node.js, use the **npm** tab; with Python, the **pip** tab. Without either, download `vantuly-windows-amd64.exe` (or `vantuly-windows-arm64.exe`) from `https://cli.vantuly.com/<version>/`, rename it to `vantuly.exe` and put it in a folder on your `PATH`. The newest version number is in [cli.vantuly.com/latest](https://cli.vantuly.com/latest).

npm, Homebrew and the install script download the binary from `cli.vantuly.com` and refuse it if its SHA-256 doesn't match the release's `checksums.txt`. The pip package has one wheel per platform with the binary inside, checked by pip.

### Or run it without installing

```sh
npx -y vantuly <command>
```

npx always runs the newest version. In the examples on these pages, read `vantuly` as `npx -y vantuly`.

### Check that it works

```sh
vantuly --version
```

```text
vantuly v0.2.1 (commit 22c6bdf, built 2026-10-31T06:50:37Z)
```

### Update and uninstall

| Installed with | Update | Uninstall |
|---|---|---|
| npm | `npm install -g vantuly@latest` | `npm uninstall -g vantuly` |
| pnpm | `pnpm add -g vantuly@latest` | `pnpm remove -g vantuly` |
| Homebrew | `brew upgrade vantuly` | `brew uninstall vantuly` |
| pip | `pip install -U vantuly` | `pip uninstall vantuly` |
| Install script | run the install line again | `rm ~/.local/bin/vantuly` |

`vantuly logout` before uninstalling revokes your token. Downloaded binaries are cached in `~/.cache/vantuly`; your sign-in is in `~/.config/vantuly`. Delete both folders to remove everything.

## Sign in

```sh
vantuly login
```

The CLI prints a code and a link and opens your browser. There you confirm your password, pick the team, check that the code matches the one in the terminal, and approve. The terminal then prints who you are signed in as. The code is valid once, for 10 minutes. Your email address must be verified before you can approve.

You get a **deploy token**. It is bound to that one team, expires after 90 days, and can only list servers and sites, create sites, deploy, roll back, add domains and set environment variables. It cannot delete anything, open a terminal, change the firewall, read environment values back, or touch members, billing or other tokens.

```sh
vantuly whoami     # user, team, token scope and expiry
vantuly logout     # revokes the token and forgets it
```

More options:

```sh
vantuly login --full                            # a full-access token (every team) instead
vantuly login --url https://panel.example.com   # a self-hosted panel
```

For CI and sandboxes, set `VANTULY_TOKEN` (and `VANTULY_URL` for a self-hosted panel) instead of running `login`. They win over the saved sign-in, and `logout` never revokes a token that came from `VANTULY_TOKEN`.

## Security

- The sign-in is saved in `~/.config/vantuly/auth.json` with mode 0600 (under `$XDG_CONFIG_HOME/vantuly` when that is set).
- `vantuly logout` revokes the token at once; so does removing it in the panel under **Settings → API tokens**.
- Every deploy appears in the team's activity log, so what a person or an agent did is visible and can be rolled back.

Next: [deploy a site](/docs/cli/deploy).
