Installation
Installation Methods
From Source (Recommended)
Build Bazelle directly from the source repository:
-
Clone the repository
Terminal window git clone https://github.com/albertocavalcante/bazelle.gitcd bazelle -
Build with Bazel
Terminal window bazel build //cmd/bazelle -
Run or install
Terminal window ./bazel-bin/cmd/bazelle/bazelle_/bazelle --helpTerminal window cp ./bazel-bin/cmd/bazelle/bazelle_/bazelle /usr/local/bin/bazelle
Using Bazel Run
You can run Bazelle directly through Bazel without installing it:
# From the bazelle repositorybazel run //cmd/bazelle -- update /path/to/your/project
# Or use the wrapper targetbazel run //:gazelleVerifying Installation
Check that Bazelle is installed correctly:
bazelle versionYou should see output like:
bazelle v0.1.0 (abc1234)Dependencies
Bazelle is a self-contained Go binary with all language extensions built-in. The only external requirements are:
- Bazel 7.0+: Required for running builds (Bazelisk recommended)
- Go 1.21+: Only needed if building from source
Project Setup
After installing Bazelle, you can set up a new project:
# Navigate to your projectcd /path/to/your/project
# Initialize (creates MODULE.bazel and BUILD.bazel if needed)bazelle init
# Generate BUILD filesbazelle updateSee Configuration for details on customizing Bazelle behavior.
Editor Integration
For the best development experience, install the Bazelle extension for your editor:
- VS Code: See the VS Code Extension documentation
- Run Bazelle commands from the Command Palette
- Status bar shows BUILD file status
- Watch mode for automatic updates
- Syntax highlighting for Starlark/BUILD files