Skip to content
Sign in

Install & update

Platforms

SystemBuildInstaller
macOS, Apple siliconaarch64-apple-darwininstall.sh
macOS, Intelx86_64-apple-darwininstall.sh
Linux x86_64 (any distribution; static)x86_64-unknown-linux-muslinstall.sh
Linux arm64 (any distribution; static; e.g. Graviton, Raspberry Pi 4/5)aarch64-unknown-linux-muslinstall.sh
Windows x86_64x86_64-pc-windows-gnuinstall.ps1
curl -fsSL https://staging.product.cloud/install.sh | sh          # macOS, Linux
irm https://staging.product.cloud/install.ps1 | iex               # Windows PowerShell

Linux on arm64 is not built yet.

The installers download the latest release of the staging channel, check its SHA-256 against the release manifest, and install product into:

  • ~/.local/bin (macOS, Linux). To choose another directory, run curl -fsSL https://staging.product.cloud/install.sh | PRODUCT_INSTALL_DIR=/opt/bin sh.

  • %LOCALAPPDATA%\product\bin on Windows. The installer adds it to your user PATH.

Updates

The CLI changes often during the MVP, so it checks for updates itself:

  • Once a day, on an interactive terminal, it asks the release channel whether a newer version exists. If one does, it prints a line after your command: product 0.3.0 is available (you have 0.2.0) · 2 new commands → product update.

  • The check never runs in CI (CI set), with --format json, or when PRODUCT_NO_UPDATE_CHECK=1 is set, and it never slows a command down.

product update            # install the latest release
product update --check    # only report
product whats-new         # what's new in your version, and in newer releases
product whats-new --all   # every release

After an update, the first command you run shows a short "New in …" panel once. All release notes are in the Changelog.

If your version becomes too old for the hub, the CLI tells you it is no longer supported and asks you to update.

How releases are verified

Each release channel publishes a manifest at https://static-staging.product.cloud/cli/channels/staging.json. It lists the version, the oldest supported version, and one compressed binary per platform with its SHA-256.

  • product update verifies the manifest's Ed25519 signature with a key built into the CLI, then the download's SHA-256. If either check fails, nothing is changed.

  • The shell and PowerShell installers check the SHA-256 against the manifest they fetch over HTTPS. From then on, product update also checks the signature.

Where things live

WhatWhere
Settings (hub, credential_store)~/.config/product/config.toml (Windows: %APPDATA%\product\config.toml)
Sign-inOS keychain, or ~/.config/product/credentials.json (mode 0600) with the file store
Object cache, shared by all clones~/.cache/product, or PRODUCT_CACHE_DIR
Update check state~/.config/product/state.json

macOS keychain prompts

The CLI keeps your sign-in in the macOS keychain. Each new CLI version is a new binary, so after an update macOS may ask once whether product may use its keychain item. Choose Always Allow. If you would rather not see this prompt, choose the file store in product setup, or set PRODUCT_CREDENTIAL_STORE=file.

Environment variables

VariableEffect
PRODUCT_API_URLHub API for this shell; overrides product hub use
PRODUCT_TOKENUse this access token instead of the stored session (scripts, CI)
PRODUCT_CREDENTIAL_STORE=fileKeep the session in a file instead of the keychain
PRODUCT_CACHE_DIRObject cache directory
PRODUCT_TRANSFER_JOBSObjects transferred at once by push, fetch, pull and clone (1–64). Default 8 for https:// hubs, 1 for local http:// hubs and directory remotes
PRODUCT_NO_UPDATE_CHECK=1Disable the daily update check
PRODUCT_LOG=debugVerbose logs on stderr (PRODUCT_LOG_FORMAT=json for JSON)
NO_COLOR=1Plain output

Uninstall

Delete the product binary and, if you like, ~/.config/product and ~/.cache/product. Sign out first with product auth logout; this also removes the keychain item.