CLI

Installing the CLI

How to install, upgrade and troubleshoot the solidafy command-line tool on macOS, Linux and Windows. The CLI is a single self-contained file: you do not need Node, Bun, npm, Docker or administrator rights.

Supported platforms

PlatformBuild
macOS, Apple Siliconsolidafy-darwin-arm64
macOS, Intelsolidafy-darwin-x64
Linux, x86_64solidafy-linux-x64
Linux, arm64solidafy-linux-arm64
Windows, x64solidafy-windows-x64.exe

The installers pick the right build for your machine. Every release, its SHA256SUMS file and the install scripts themselves are public at github.com/solidafy/cli-releases, so you can read all of it before you run any of it.

macOS and Linux

bash
curl -fsSL https://github.com/solidafy/cli-releases/releases/latest/download/install.sh | sh

The script:

  1. Works out your operating system and CPU architecture.
  2. Downloads the matching binary and the published SHA256SUMS file.
  3. Checks the binary's SHA-256 against the published checksum. If the checksum is missing or does not match, it stops and installs nothing.
  4. Moves the verified binary to ~/.solidafy/bin/solidafy.

It needs curl, awk, and either sha256sum or shasum, which almost every system already has.

The script does not edit your shell profile. If ~/.solidafy/bin is not on your PATH yet, it prints the line to add. Put it in ~/.zshrc on macOS or ~/.bashrc on most Linux distributions:

bash
export PATH="$HOME/.solidafy/bin:$PATH"

Then open a new terminal.

Windows

In PowerShell:

powershell
irm https://github.com/solidafy/cli-releases/releases/latest/download/install.ps1 | iex

This does the same download and checksum check, and installs solidafy.exe into %LOCALAPPDATA%\Solidafy\bin. Only x64 Windows is supported.

If that folder is not on your user PATH, the installer prints the command that adds it:

powershell
[Environment]::SetEnvironmentVariable('Path', [Environment]::GetEnvironmentVariable('Path','User') + ';' + "$env:LOCALAPPDATA\Solidafy\bin", 'User')

Then open a new terminal.

Check the install

bash
solidafy --version
solidafy --help

--help lists every command. solidafy <command> --help shows the subcommands and flags of one command.

Installing a specific version or to another folder

Both installers read these environment variables:

VariableDefaultWhat it changes
SOLIDAFY_VERSIONlatestThe release tag to install, for example cli-v0.2.0.
SOLIDAFY_INSTALL_DIR~/.solidafy/bin (macOS, Linux), %LOCALAPPDATA%\Solidafy\bin (Windows)Where the binary goes.
SOLIDAFY_REPOsolidafy/cli-releasesThe GitHub repository to download releases from.
SOLIDAFY_BASE_URLhttps://github.com/<repo>/releasesThe releases address to download from, for example a mirror inside your network. It must serve the same latest/download/<file> and download/<tag>/<file> paths as GitHub releases.

On macOS and Linux, set the variable for the sh that runs the script (not for curl):

bash
curl -fsSL https://github.com/solidafy/cli-releases/releases/latest/download/install.sh | SOLIDAFY_VERSION=cli-v0.2.0 sh

On Windows, set it in the session first:

powershell
$env:SOLIDAFY_VERSION = 'cli-v0.2.0'
irm https://github.com/solidafy/cli-releases/releases/latest/download/install.ps1 | iex

If you install to a folder that needs administrator rights, such as /usr/local/bin, run the script with the rights to write there.

Upgrading

There are two separate things to keep up to date, and their names are close:

To do thisRun
Upgrade the CLI itselfThe install command again. It replaces the binary in place.
Refresh the files inside a project to match the installed CLIsolidafy update, from inside the project.

solidafy update does not upgrade the CLI. It rewrites the files the CLI owns in your project: the bundled guides in docs/, the files in examples/, the agent skills in .claude/skills/, the solidafy entry in .claude/settings.json (other keys in that file are kept), and CLAUDE.md, which it regenerates. It also deletes a top-level AGENT.md and the whole .claude/agents/ folder if your project has them. Keep your own notes outside all of these. Run solidafy update after every upgrade.

The CLI does not check for new versions on its own.

Troubleshooting

solidafy: command not found

The install folder is not on your PATH. Add the export PATH=... line the installer printed to your shell profile (~/.zshrc on macOS, ~/.bashrc on most Linux) and open a new terminal. On Windows, run the SetEnvironmentVariable command above and open a new terminal.

macOS stops the CLI from running

If you downloaded the binary with a browser instead of the install command, macOS quarantines it and refuses to run it, often with no useful message. The curl ... | sh command is not affected. To clear the flag on a copy you already have:

bash
xattr -d com.apple.quarantine /path/to/solidafy

Windows SmartScreen warns about the file

The Windows executable is not code-signed yet, so SmartScreen may warn the first time it runs. The installer has already checked the file against the published SHA-256 checksum.

checksum mismatch during install

The installer stopped before writing anything, which is what it is meant to do. Try again. If it keeps happening, tell us rather than working around it.

Environment '<name>' not found

You are in a project whose active environment has no credentials on this machine. This is normal after cloning a project, because the .env files are not committed. Add them:

bash
solidafy env add <name> --pat sk_pat_...

See Working with environments.

Not in a Solidafy project

Most commands need to run inside a project, meaning a folder (or a subfolder of one) that contains solidafy.json. Change into your project, or create one with solidafy init.

A command prints a long stack trace

The message at the top is the one that matters. The rest is detail you can ignore.