Skip to content

Installation

Recon ships as a single binary named recon. Every release publishes prebuilt archives for three targets, an install script that downloads and checksums them, a generated Homebrew formula, and desktop installers. You can also build it from source.

The release workflow (.github/workflows/release.yml) builds the CLI for exactly these targets:

OS Architecture Rust target Release asset
Linux x86_64 x86_64-unknown-linux-gnu recon-<tag>-x86_64-unknown-linux-gnu.tar.gz
macOS Apple silicon (arm64) aarch64-apple-darwin recon-<tag>-aarch64-apple-darwin.tar.gz
macOS Intel (x86_64) x86_64-apple-darwin recon-<tag>-x86_64-apple-darwin.tar.gz

<tag> is the Git tag including the v, for example recon-v0.3.2-x86_64-unknown-linux-gnu.tar.gz. Each archive contains the recon binary at its root, next to the license files LICENSE-MIT and LICENSE-APACHE.

There is no prebuilt CLI for Windows or for Linux on ARM. On those systems, build from source.

Every release also carries a SHA256SUMS.txt file with the SHA-256 of every asset, and a Homebrew formula file named recon.rb.

scripts/install.sh downloads the archive for your machine from GitHub Releases, verifies it against SHA256SUMS.txt, and installs the binary.

Terminal window
curl -fsSL https://raw.githubusercontent.com/robertguss/recon/v0.3.2/scripts/install.sh | bash

What the script does, in order:

  1. Checks that curl and tar are installed. If either is missing, it prints Error: required command '<name>' is not installed. and exits with status 1.
  2. Detects the target from uname -s and uname -m:
    • Linux with x86_64 or amd64 selects x86_64-unknown-linux-gnu.
    • Darwin with arm64 or aarch64 selects aarch64-apple-darwin.
    • Darwin with x86_64 selects x86_64-apple-darwin.
    • Anything else exits with Error: unsupported OS/architecture (...) and a link to the releases page.
  3. Picks the release tag. If RECON_VERSION is set, it uses that value and adds a leading v when you leave it out. Otherwise it reads tag_name from https://api.github.com/repos/robertguss/recon/releases/latest.
  4. Downloads SHA256SUMS.txt and recon-<tag>-<target>.tar.gz into a temporary directory that is deleted on exit.
  5. Finds the asset’s line in SHA256SUMS.txt and compares it with the archive’s SHA-256, computed with sha256sum or, if that is missing, shasum -a 256. A missing entry, a missing hash tool, or a mismatch stops the install with status 1.
  6. Extracts the archive and copies recon into the install directory with mode 0755, creating the directory if needed.
  7. Runs recon --version and prints Installed <version> -> <dir>/recon. If the install directory is not on your PATH, it prints the export PATH=... line to add.

The script takes no command-line flags. It reads two environment variables:

Variable Default Effect
RECON_INSTALL_DIR $HOME/.local/bin Directory the recon binary is installed into.
RECON_VERSION latest release Release tag to install, for example v0.3.2 or 0.3.2.
Terminal window
curl -fsSL https://raw.githubusercontent.com/robertguss/recon/v0.3.2/scripts/install.sh \
| RECON_VERSION=v0.3.2 RECON_INSTALL_DIR=/usr/local/bin bash

The recon-cli package declares [package.metadata.binstall] in crates/recon-cli/Cargo.toml:

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/recon-v{ version }-{ target }.tar.gz"
bin-dir = "{ bin }{ binary-ext }"
pkg-fmt = "tgz"

This tells cargo-binstall to fetch the same GitHub Release archive the install script uses (recon-v<version>-<target>.tar.gz) and to take the recon binary from the archive root, instead of compiling. The package name is recon-cli; the binary it installs is recon. Only the three targets in the table above have archives.

Terminal window
cargo binstall recon-cli

The publish-release job generates a formula file, recon.rb, and attaches it to the GitHub Release. The formula:

  • Is named Recon, with version set to the tag without the leading v, and license any_of: ["MIT", "Apache-2.0"].
  • Points to the aarch64-apple-darwin archive on Apple silicon, the x86_64-apple-darwin archive on Intel Macs, and the x86_64-unknown-linux-gnu archive on Intel Linux, each with its SHA-256.
  • Installs the single recon binary (bin.install "recon").
  • Has a test that checks recon --version prints the formula version.

The workflow does not publish the formula to a tap. Download recon.rb from the release assets to use it.

The workspace root Cargo.toml sets:

Setting Value
edition 2024
rust-version (minimum supported Rust) 1.90
license MIT OR Apache-2.0

The web UI is compiled into the binary. crates/recon-server embeds the folder ui/dist with rust-embed (#[folder = "../../ui/dist"]), so build the UI before you build Rust. The CI and release workflows use Node.js 22 and pnpm 10 for this step.

Terminal window
git clone https://github.com/robertguss/recon.git
cd recon
cd ui
pnpm install --frozen-lockfile
pnpm build
cd ..
cargo build --release --bin recon
./target/release/recon --version

If ui/dist holds no built assets, recon ui still starts, but the server answers page requests with a stub page that reads “Recon UI assets not built” and tells you to run pnpm build inside ui/.

The desktop app in apps/desktop/src-tauri is excluded from the Cargo workspace (exclude = ["apps/desktop/src-tauri"]), so cargo build at the root does not build it.

The release workflow also builds the desktop app with Tauri v2 and attaches its installers to the GitHub Release:

Build Installers collected
linux-x86_64 (Ubuntu 22.04) Recon*.AppImage, .deb, .rpm
macos-aarch64 (macOS 15) .dmg

macOS DMGs are signed, notarized and stapled only when the Apple signing secrets are configured for the release run. See Desktop App for what the app does.

Check the version:

Terminal window
recon --version
recon 0.3.2

Then run recon doctor inside a workspace. It checks .recon.toml, collections, environments, Airlock rules, the Flight Recorder ledger and loopback socket binding, and exits with status 1 if any check fails. Output from the recon init --demo workspace after a few requests (the first line, which names the workspace’s absolute path, is left out):

Terminal window
recon --format human doctor
[ok] workspace_config: Loaded `recon-demo` (default_env=`local`, require_approval_for_mutations=true)
[ok] collections: 3 request(s) loaded from `.http` files
[ok] environments: 2 environment(s), 3 host-scoped secret(s)
[ok] airlock: salt_fingerprint=9d2de0d49b08, column_rules=6, tables=0
[ok] flight_recorder: SQLite WAL + SHA-256 ledger valid (9 run(s), 0 pending approval(s))
[ok] loopback_socket: 127.0.0.1 ephemeral bind available for `recon ui`

See Setup, Skill & Doctor for every doctor check, and Quickstart for your first workspace.