Skip to main content

root

These are the flags/commands under buck2 root and their --help output:

buck root

Find buck cell, project or package root

Usage: buck2-release root [OPTIONS]

Options:
-k, --kind <KIND>
which root to print

[default: cell]
[possible values: package, cell, project, daemon]

--dir <PATH>
determine the root for a specific directory (if not provided, finds the root for the
current directory)

-h, --help
Print help (see a summary with '-h')

Universal Options:
-v, --verbose <VERBOSITY>
How verbose buck should be while logging.

Values: 0 = Quiet, errors only; 1 = Show status. Default; 2 = more info about errors; 3 =
more info about everything; 4 = more info about everything + stderr;

It can be combined with specific log items (stderr, full_failed_command, commands,
actions, status, stats, success) to fine-tune the verbosity of the log. Example usage
"-v=1,stderr"

[default: 1]

--oncall <ONCALL>
The oncall executing this command

--client-metadata <CLIENT_METADATA>
Metadata key-value pairs to inject into Buck2's logging. Client metadata must be of the
form `key=value`, where `key` is a snake_case identifier, and will be sent to backend
datasets