Invariable CLI (invar) is a command-line wrapper for Invariable. It works hand-in-hand with the macOS app to securely store and load environment variables into locally running apps.
Invariable CLI requires macOS. Install a prebuilt binary for Apple Silicon or Intel macs with:
curl -fsSL https://raw.githubusercontent.com/Triplane/invariable-cli/main/scripts/install.sh | shThe script detects your Mac's architecture (Apple Silicon or Intel), downloads
the matching binary, verifies its checksum, and installs invar to ~/.local/bin.
Override the defaults with environment variables:
# Pin a specific version
curl -fsSL https://raw.githubusercontent.com/Triplane/invariable-cli/main/scripts/install.sh | INVAR_VERSION=v0.1.0 sh
# Install somewhere else
curl -fsSL https://raw.githubusercontent.com/Triplane/invariable-cli/main/scripts/install.sh | INVAR_INSTALL_DIR=/usr/local/bin sh- macOS
- Rust toolchain with
cargo - Invariable.app running for real
--ping,--list, and profile unlocks
From the repository root:
cargo buildTo make the local debug build available as invar in your current terminal,
source the helper script:
source scripts/add-local-invar-to-path.shRelease build:
cargo build --releaseRun without installing:
cargo run -- --help
cargo run -- --ping
cargo run -- --profile api-dev -- envRun the full test suite:
cargo test --lockedYou may open up a pull request in GitHub with contributions to the CLI script.