# 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](/cli/install/authentication.md) - Log in to your Nullify instance
* [MCP Setup Guide](/cli/install/mcp-setup.md) - Connect your AI coding assistant


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nullify.ai/cli/install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
