> ## Documentation Index
> Fetch the complete documentation index at: https://aspect.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Start a new Bazel project with aspect init

> aspect init is now a native Aspect CLI command, and the language starter templates live at github.com/aspect-starters with a Use this template button.

# Start a new Bazel project with aspect init

Greg Magolan

***

![](https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-b7f01104a1.jpeg?fit=max\&auto=format\&n=x1L7Iep716jCyJVo\&q=85\&s=558844bd2581ad93d62fbed4b786ab1d)

Standing up a Bazel workspace takes more boilerplate than
it should. `.bazelversion`, `.bazelrc` with sane flags, toolchains,
formatting and linting wiring, package-manager wiring, and CI that *maybe works*. It's a rite of passage no one asked for.
So we packed the whole setup into a single command.

## `aspect init` is now built into the CLI

`aspect init` is a native [Aspect CLI](https://aspect.build/docs/cli.md) command (requires
[v2026.25.11](https://github.com/aspect-build/aspect-cli/releases/tag/v2026.25.11)
or newer). No separate tool, nothing to download by hand. Just install the CLI and run:

```bash theme={null}
aspect init my-project --preset go
cd my-project
aspect build //...
```

That's it. You have a fresh bazel setup.

Omit `--preset` and you get an interactive picker. Available presets: `minimal`, `shell`, `go`, `js`, `py`, `java`, `kotlin`, `cpp`, `rust`, `ruby`,
`scala`, and `kitchen-sink` (every language plus OCI containers, protobuf, and
release stamping).

What generated project comes wired up:

* 🧱 The latest Bazel (bzlmod) with curated flags via [`bazelrc-preset.bzl`](https://github.com/bazel-contrib/bazelrc-preset.bzl)
* 🧰 A hermetic dev environment via [`bazel_env.bzl`](https://github.com/buildbuddy-io/bazel_env.bzl) and [`rules_multitool`](https://github.com/theoremlp/rules_multitool)
* 🎨 Formatting and linting with [`rules_lint`](https://github.com/aspect-build/rules_lint)
* 📦 Native package-manager integration for the chosen languages
* ⚙️ Working GitHub Actions CI that runs `aspect build`/`test`/`lint`/`format` on ephemeral runners
* 📌 A pinned Aspect CLI version so your whole team and CI use identical tooling.

## The template repos, if you prefer

Each preset is also published as a GitHub *template repository* under
[github.com/aspect-starters](https://github.com/aspect-starters). Go to the
language you want — say [aspect-starters/go](https://github.com/aspect-starters/go) —
and hit **Use this template** button (or fork it, or just `git clone`).

Super handy if you want a playground, a training repo, or a link to
send to the next person who asks "how do I set up Bazel for X?"

Building a polyglot monorepo? `aspect init --preset kitchen-sink` or start from
[aspect-starters/kitchen-sink](https://github.com/aspect-starters/kitchen-sink).

## One source of truth

The CLI command and the template repos render from the same templates, so they
never drift. The source of truth is
[aspect-build/aspect-workflows-template](https://github.com/aspect-build/aspect-workflows-template):
CI there renders and builds every preset before anything lands, then republishes the
`aspect-starters` repos on each release.

Found a rough edge or want to improve a template? File issues and PRs there.

This replaces the older wizard-based `init` (which relied on an external
scaffolding tool) and Aspect's previous starter repos. Same idea, much better execution,
and now it's part of our CLI.

[Install the Aspect CLI](https://aspect.build/docs/cli/install.md) and run `aspect init`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.