Skip to content

Installation

The easiest way to install rebaze is via Homebrew using the albertocavalcante/tap:

Terminal window
# Add the tap
brew tap albertocavalcante/tap
Terminal window
brew install albertocavalcante/tap/rebaze

The nightly version uses prebuilt binaries and installs instantly. Since rebaze is currently a private repository, you need to authenticate with a GitHub token:

Terminal window
# If you have gh installed and authenticated
export HOMEBREW_GITHUB_API_TOKEN="$(gh auth token)"
brew install albertocavalcante/tap/rebaze-nightly
Terminal window
# Update to latest version
brew upgrade rebaze # or rebaze-nightly
# Uninstall
brew uninstall rebaze
# Remove the tap entirely
brew untap albertocavalcante/tap

rebaze is built with Bazel. Clone the repository and build:

Terminal window
git clone https://github.com/albertocavalcante/rebaze.git
cd rebaze
bazel build //crates/rebaze-cli:rebaze

The binary will be at:

bazel-bin/crates/rebaze-cli/rebaze
Terminal window
# Option 1: Symlink to a directory in PATH
sudo ln -s $(pwd)/bazel-bin/crates/rebaze-cli/rebaze /usr/local/bin/rebaze
# Option 2: Add to PATH in your shell profile
echo 'export PATH="$PATH:/path/to/rebaze/bazel-bin/crates/rebaze-cli"' >> ~/.zshrc
source ~/.zshrc
Terminal window
rebaze --version
  • 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

If you want to contribute or modify rebaze:

Terminal window
# Clone with submodules
git clone --recursive https://github.com/albertocavalcante/rebaze.git
cd rebaze
# Build all targets
bazel build //...
# Run tests
bazel test //...
# Format code
cargo fmt
# Run linter
cargo clippy