Shell scripting (with Bash, typically) is a popular language choice with Bazel for one-off wrappers and tests.Documentation Index
Fetch the complete documentation index at: https://docs.aspect.build/llms.txt
Use this file to discover all available pages before exploring further.
Starter repo
Aspect maintains a starter repo for Shell scripting in Bazel: https://github.com/bazel-starters/shellTraining
We use Shell scripting as the example language in Aspect’s Bazel 101 courseAPIs
Running programs
- sh_library - Declare a library of shell scripts
- sh_binary - Build an executable shell script
Testing
Linting
- shellcheck - ShellCheck linter integration for shell scripts

