Skip to main content

buck2 commands

CommandDescription
buck2 auditPerform lower level queries
buck2 aqueryPerform queries on the action graph (experimental)
buck2 buildBuild the specified targets
buck2 bxlRun BXL scripts
buck2 help-envPrint help for environment variables used by buck2
buck2 testBuild and test the specified targets
buck2 cqueryPerform queries on the configured target graph
buck2 initInitialize a buck2 project
buck2 explainGenerates web browser view that shows actions that ran in the last build mapped to the target graph
buck2 expand-external-cellExpand the contents of an external cell into the repo
buck2 installBuild and install an application
buck2 killKill the buck daemon
buck2 killallKill all buck2 processes on the machine
buck2 rootFind buck cell, project or package root
buck2 queryAlias for uquery
buck2 runBuild and run the selected target
buck2 serverStart, query, and control the http server
buck2 statusBuckd status
buck2 starlarkRun Starlark operations
buck2 targetsAlias for utargets
buck2 utargetsShow details about the specified targets
buck2 ctargetsResolve target patterns to configured targets
buck2 uqueryPerform queries on the unconfigured target graph
buck2 completionPrint completion configuration for shell
buck2 docsPrint documentation of specified symbols
buck2 profileRun starlark profiler
buck2 cleanDelete generated files and caches
buck2 logCommands for interacting with buck2 logs
buck2 lspStart an LSP server for starlark files
buck2 subscribeSubscribe to updates from the Buck2 daemon