Installation¶
Stack can be installed via several package managers or built from source.
Requirements¶
- Git 2.23 or later
- Rust 1.70+ (for building from source)
Install via Homebrew (macOS / Linux)¶
The easiest way to install Stack on macOS and Linux:
Update with:
Install via Cargo¶
This installs the gt command globally.
Install via npm¶
Install via pip¶
Quick Install Script¶
Download the latest binary or build from source automatically:
Build from Source¶
For the latest development version:
# Clone the repository
git clone https://github.com/neul-labs/stkd
cd stkd
# Build and install
cargo install --path crates/stkd-cli
Verify Installation¶
Check that Stack is installed correctly:
You should see output like:
Shell Completions¶
Stack supports shell completions for bash, zsh, and fish.
Updating¶
To update to the latest version:
# Homebrew
brew upgrade stkd
# Cargo
cargo install stkd-cli --force
# npm
npm update -g stkd-cli
# pip
pip install --upgrade stkd-cli
Uninstalling¶
To remove Stack:
# Homebrew
brew uninstall stkd
# Cargo
cargo uninstall stkd-cli
# npm
npm uninstall -g stkd-cli
# pip
pip uninstall stkd-cli
Next Steps¶
- Quick Start - Get started in 5 minutes
- Authentication - Connect to GitHub or GitLab