Skip to main content
Version: 5.1.x

aspect configure

Auto-configure Bazel by updating BUILD files

Synopsis

configure generates and updates BUILD files from source code.

It is named after the "make configure" workflow which is typical in C++ projects, using autoconf.

configure is non-destructive: hand-edits to BUILD files are generally preserved. You can use a #keep directive to force the tool to leave existing BUILD contents alone. Run 'aspect help directives' for more documentation on directives.

So far these languages are supported:

  • Go and Protocol Buffers, thanks to code from gazelle
  • JavaScript (including TypeScript)

configure is based on gazelle. We are very grateful to the authors of that software. The advantage of configure in Aspect CLI is that you don't need to compile the tooling before running it.

aspect configure [flags]

Options

  -h, --help   help for configure

Options inherited from parent commands

      --aspect:config string   User-specified Aspect CLI config file. /dev/null indicates that all further --aspect:config flags will be ignored.
--aspect:interactive Interactive mode (e.g. prompts for user input)

SEE ALSO