Installation
Homebrew (macOS/Linux)
Section titled “Homebrew (macOS/Linux)”The easiest way to install rebaze is via Homebrew using the albertocavalcante/tap:
# Add the tapbrew tap albertocavalcante/tapStable (Builds from Source)
Section titled “Stable (Builds from Source)”brew install albertocavalcante/tap/rebazeNightly (Prebuilt Binaries)
Section titled “Nightly (Prebuilt Binaries)”The nightly version uses prebuilt binaries and installs instantly. Since rebaze is currently a private repository, you need to authenticate with a GitHub token:
# If you have gh installed and authenticatedexport HOMEBREW_GITHUB_API_TOKEN="$(gh auth token)"brew install albertocavalcante/tap/rebaze-nightly# Generate a PAT at https://github.com/settings/tokens# Required scope: repo (for private repository access)export HOMEBREW_GITHUB_API_TOKEN="ghp_your_token_here"brew install albertocavalcante/tap/rebaze-nightlyUpdate & Uninstall
Section titled “Update & Uninstall”# Update to latest versionbrew upgrade rebaze # or rebaze-nightly
# Uninstallbrew uninstall rebaze
# Remove the tap entirelybrew untap albertocavalcante/tapBuild from Source
Section titled “Build from Source”rebaze is built with Bazel. Clone the repository and build:
git clone https://github.com/albertocavalcante/rebaze.gitcd rebazebazel build //crates/rebaze-cli:rebazeThe binary will be at:
bazel-bin/crates/rebaze-cli/rebazeAdd to PATH
Section titled “Add to PATH”# Option 1: Symlink to a directory in PATHsudo ln -s $(pwd)/bazel-bin/crates/rebaze-cli/rebaze /usr/local/bin/rebaze
# Option 2: Add to PATH in your shell profileecho 'export PATH="$PATH:/path/to/rebaze/bazel-bin/crates/rebaze-cli"' >> ~/.zshrcsource ~/.zshrc# Add to user PATH$env:PATH += ";C:\path\to\rebaze\bazel-bin\crates\rebaze-cli"Verify Installation
Section titled “Verify Installation”rebaze --versionRequirements
Section titled “Requirements”- Bazel 9.x - Required for building rebaze and for migrated projects
- CMake 3.14+ - Optional, for cmake-file-api integration
- Rust toolchain - Only needed if building from source with Cargo
Development Setup
Section titled “Development Setup”If you want to contribute or modify rebaze:
# Clone with submodulesgit clone --recursive https://github.com/albertocavalcante/rebaze.gitcd rebaze
# Build all targetsbazel build //...
# Run testsbazel test //...
# Format codecargo fmt
# Run lintercargo clippy