Linter

The CLI has 1st-party support for bevy_lint, the static analysis tool that checks over your code.

bevy lint

If you do not have the linter installed already, the CLI can install it for you when you first run the command. Calling the lint subcommand is equivalent to calling bevy_lint, and supports the same arguments as cargo check:

bevy lint --workspace --all-features

You can view a full list of options with:

bevy lint -- --help