> ## Documentation Index
> Fetch the complete documentation index at: https://docs.actual.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the CLI

> Install the Actual CLI with Homebrew, npm or a signed release download, check the install and keep it up to date.

The Actual CLI, `actual`, runs the plan and change checks. The plugin's `actual` skill offers to install it with npm the first time you run `/actual`. Install it yourself to choose the method, or to run the checks in CI.

## Platforms

| Platform | Architectures |
| - | - |
| macOS | Apple Silicon (arm64), Intel (x64) |
| Linux with glibc 2.39 or newer | x64, arm64 |

Windows isn't supported.

On Linux, every install method below puts a prebuilt binary on your machine that needs glibc 2.39 or newer: Ubuntu 24.04, Debian 13, Fedora 40, RHEL 10, or a later release of any of them. Run `ldd --version` to see yours. Ubuntu 22.04, Debian 12, RHEL 9 and Amazon Linux 2023 ship an older glibc, where the arm64 binary exits with ``version `GLIBC_2.39' not found`` and the x64 binary runs but prints ``weak version `GLIBC_2.39' not found`` every time it starts. On those releases, [build from source](#build-from-source).

## Install

### Homebrew

Homebrew is the recommended method:

```bash theme={null}
brew install actual-software/actual/actual
```

Use the tap's full name, here and when you upgrade. A bare `brew install actual` reaches Homebrew's unrelated `actual` cask.

The macOS binaries aren't signed with an Apple Developer ID yet. If Gatekeeper blocks `actual` the first time it runs, remove the quarantine mark:

```bash theme={null}
xattr -d com.apple.quarantine "$(brew --prefix)/bin/actual"
```

### npm

```bash theme={null}
npm install -g @actualai/actual
```

npm installs the prebuilt binary for your platform.

### Download

Download the archive for your platform from the [actual-releases](https://github.com/actual-software/actual-releases/releases) mirror: `actual-darwin-arm64.tar.gz`, `actual-darwin-x64.tar.gz`, `actual-linux-arm64.tar.gz` or `actual-linux-x64.tar.gz`. Extract it and move the binary onto your `PATH`. On Apple Silicon:

```bash theme={null}
curl -fsSLO https://github.com/actual-software/actual-releases/releases/latest/download/actual-darwin-arm64.tar.gz
tar -xzf actual-darwin-arm64.tar.gz
mkdir -p ~/.local/bin
mv ./actual ~/.local/bin/actual
```

Make sure `~/.local/bin` is on your `PATH`. A directory you own lets [`actual self-update`](#self-update) replace the binary later; it refuses one in a directory you can only write with `sudo`, such as `/usr/local/bin`.

If you downloaded the archive in a browser on macOS, remove the quarantine mark before the first run:

```bash theme={null}
xattr -dr com.apple.quarantine ~/.local/bin/actual
```

[Check the download's signature](#check-a-download) before you run it.

### Build from source

Building from source needs a Rust toolchain and a C compiler for the native dependencies:

```bash theme={null}
# macOS: Xcode command-line tools (usually already installed)
xcode-select --install

# Debian or Ubuntu
sudo apt-get install build-essential

cargo install --git https://github.com/actual-software/actual-cli.git actual-cli
```

This is the way to run `actual` on a Linux with a glibc older than 2.39.

## Check a download

Each release from v0.12.0 publishes `SHA256SUMS`, which lists the four archives, on the [actual-cli releases](https://github.com/actual-software/actual-cli/releases) page and the [actual-releases](https://github.com/actual-software/actual-releases/releases) mirror. A member of the signing group then adds `SHA256SUMS.minisig`, a [minisign](https://jedisct1.github.io/minisign/) signature over that list, by hand. A new release can stay unsigned until that step finishes, so if the signature is missing, try again later. Releases through v0.11.0 carry neither file.

Check the signature first, then the checksum:

```bash theme={null}
curl -fsSLO https://github.com/actual-software/actual-releases/releases/latest/download/SHA256SUMS
curl -fsSLO https://github.com/actual-software/actual-releases/releases/latest/download/SHA256SUMS.minisig
curl -fsSL -o actual-release.pub https://raw.githubusercontent.com/actual-software/actual-cli/main/release-keys/primary.pub
minisign -Vm SHA256SUMS -p actual-release.pub
shasum -a 256 --check --ignore-missing SHA256SUMS
```

A good signature prints `Signature and comment signature verified`, then the signed trusted comment. Make sure that comment names the tag of the release you downloaded, because an older release's signature still verifies. If `minisign` reports a different key id, the spare key signed the release; [Release signing](https://github.com/actual-software/actual-cli/blob/main/docs/RELEASE_SIGNING.md) on GitHub has it.

## Check the install

```bash theme={null}
actual --version
actual version
```

`actual version` (CLI 0.9.0 or later) prints the running version, how this copy was installed and the command that upgrades it, with no network request. Add `--check` to ask the npm registry for the latest version (one HTTPS request, at most 3 seconds), or `--json` for one object with `current_version`, `latest_version`, `update_available`, `channel`, `upgrade_command` and `release_url`. `channel` is `homebrew`, `npm` or `other`. A CLI older than 0.9.0 rejects `version` as an unknown subcommand and exits with status 2; use `actual --version` there.

## Updates by install method

Nothing upgrades the CLI on its own. The copy you run tells you when a newer release is out and names the command for how it was installed, which it reads from its own path:

| Installed with | Upgrade command |
| - | - |
| Homebrew | `brew upgrade actual-software/actual/actual` |
| npm | `npm install -g @actualai/actual@latest` |
| A release download | `actual self-update` |
| A build from source | `cargo install -f --git https://github.com/actual-software/actual-cli actual-cli` |

Homebrew and npm keep a record of the files they install, so a copy they own upgrades through them. A copy built from source gets the `cargo install` command wherever it's installed, because it may be built for a system the release builds don't run on.

### The update notice

From CLI 0.9.0, after a command succeeds at a terminal, `actual` may print a notice such as:

```text theme={null}
actual 0.9.0 is available (you have 0.8.0).
To upgrade, run: brew upgrade actual-software/actual/actual
```

No command waits for it. At most once a day, a background copy of `actual` asks the npm registry for the latest version and saves the answer in `~/.actualai/actual/update-check.yaml`, and a later run prints the notice from there. The notice stays quiet when the command fails, when output goes to a pipe, a file or a pager, when `CI` is set, under `--json` and the hook modes the plugin uses, and inside agent sessions the CLI starts itself.

To turn off the notice and every registry request, including the one `actual version --check` makes, use either of these:

```bash theme={null}
export ACTUAL_NO_UPDATE_CHECK=1
actual config set update_check.enabled false
```

### Self-update

`actual self-update` (CLI 0.12.0 or later) replaces a binary you downloaded with the latest signed release:

```bash theme={null}
actual self-update
```

It asks the npm registry for the latest version, downloads that release's `SHA256SUMS` and `SHA256SUMS.minisig` from the [actual-releases](https://github.com/actual-software/actual-releases/releases) mirror, and checks the signature against the release keys built into `actual`, including the tag in the signed comment. It then checks the archive for your platform against `SHA256SUMS`. Nothing on disk changes until both checks pass, and the new binary is renamed over the old one in one step, so a hook starting `actual` at that moment runs the old binary or the new one, never a partial file. A release still waiting for its signature is refused until it's signed.

It refuses, exiting with status 2 and naming another way to upgrade, when:

* Homebrew or npm installed the copy you're running, or it was built from source;
* you can't write the binary or its directory without `sudo`, another user owns the binary, or you run it as root;
* `CI` is set, or update checks are turned off;
* no release build exists for your platform.

A failed download or check exits with status 1 and leaves the old binary as it was.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.