Install & update
Platforms
| System | Build | Installer |
|---|---|---|
| macOS, Apple silicon | aarch64-apple-darwin | install.sh |
| macOS, Intel | x86_64-apple-darwin | install.sh |
| Linux x86_64 (any distribution; static) | x86_64-unknown-linux-musl | install.sh |
| Linux arm64 (any distribution; static; e.g. Graviton, Raspberry Pi 4/5) | aarch64-unknown-linux-musl | install.sh |
| Windows x86_64 | x86_64-pc-windows-gnu | install.ps1 |
curl -fsSL https://staging.product.cloud/install.sh | sh # macOS, Linuxirm https://staging.product.cloud/install.ps1 | iex # Windows PowerShellLinux 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, runcurl -fsSL https://staging.product.cloud/install.sh | PRODUCT_INSTALL_DIR=/opt/bin sh.%LOCALAPPDATA%\product\binon Windows. The installer adds it to your userPATH.
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 (
CIset), with--format json, or whenPRODUCT_NO_UPDATE_CHECK=1is 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 releaseAfter 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 updateverifies 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 updatealso checks the signature.
Where things live
| What | Where |
|---|---|
Settings (hub, credential_store) | ~/.config/product/config.toml (Windows: %APPDATA%\product\config.toml) |
| Sign-in | OS 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
| Variable | Effect |
|---|---|
PRODUCT_API_URL | Hub API for this shell; overrides product hub use |
PRODUCT_TOKEN | Use this access token instead of the stored session (scripts, CI) |
PRODUCT_CREDENTIAL_STORE=file | Keep the session in a file instead of the keychain |
PRODUCT_CACHE_DIR | Object cache directory |
PRODUCT_TRANSFER_JOBS | Objects 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=1 | Disable the daily update check |
PRODUCT_LOG=debug | Verbose logs on stderr (PRODUCT_LOG_FORMAT=json for JSON) |
NO_COLOR=1 | Plain 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.