# CLI

## Quick Install

Run the install script to download the latest Nullify CLI binary:

```bash
curl -sSfL https://raw.githubusercontent.com/Nullify-Platform/cli/main/install.sh | sh -s -- --host api.<TENANT>.nullify.ai
```

Replace `<TENANT>` with your organization name (e.g. `api.acme.nullify.ai`).

This will:

* Detect your OS and architecture (macOS, Linux; amd64, arm64)
* Download the latest release from [GitHub Releases](https://github.com/Nullify-Platform/cli/releases)
* Verify the SHA256 checksum
* Install the binary to `/usr/local/bin/nullify` (or `~/.local/bin/`)
* Configure the CLI to connect to your Nullify instance

## Manual Installation

Download the latest archive for your platform from [GitHub Releases](https://github.com/Nullify-Platform/cli/releases):

| Platform | Architecture          | Archive                       |
| -------- | --------------------- | ----------------------------- |
| macOS    | Apple Silicon (arm64) | `nullify_darwin_arm64.tar.gz` |
| macOS    | Intel (amd64)         | `nullify_darwin_amd64.tar.gz` |
| Linux    | amd64                 | `nullify_linux_amd64.tar.gz`  |
| Linux    | arm64                 | `nullify_linux_arm64.tar.gz`  |
| Windows  | amd64                 | `nullify_windows_amd64.zip`   |

After downloading:

```bash
tar -xzf nullify_<os>_<arch>.tar.gz
sudo mv nullify /usr/local/bin/nullify
```

## Verify Installation

```bash
nullify --version
```

## Configuration

The CLI connects to your Nullify instance using the `--host` flag or `NULLIFY_HOST` environment variable:

```bash
# Set via flag
nullify --host api.<TENANT>.nullify.ai <command>

# Or set via environment variable
export NULLIFY_HOST=api.<TENANT>.nullify.ai
nullify <command>
```

## Next Steps

* [Authentication Guide](https://docs.nullify.ai/cli/install/authentication) - Log in to your Nullify instance
* [MCP Setup Guide](https://docs.nullify.ai/cli/install/mcp-setup) - Connect your AI coding assistant
