Path: blob/main/docs/sources/flow/reference/cli/_index.md
5304 views
------Command-line interface
When in Flow mode, the grafana-agent binary exposes a command-line interface with subcommands to perform various operations.
The most common subcommand is [run][run] which accepts a config file and starts Grafana Agent Flow.
Available commands:
[
grafana-agent run][run]: Start Grafana Agent Flow, given a config file.[
grafana-agent fmt][fmt]: Format a Grafana Agent Flow config file.grafana-agent completion: Generate shell completion for thegrafana-agentCLI.grafana-agent help: Print help for supported commands.
[run]: {{< relref "./run.md" >}} [fmt]: {{< relref "./fmt.md" >}}