Grafana Agent FlowReferenceCommand-line interface

Command-line interface

When in Flow mode, the agent binary exposes a command-line interface with subcommands to perform various operations.

The most common subcommand is run which accepts a config file and starts Grafana Agent Flow.

Available commands:

  • agent run: Start Grafana Agent Flow, given a config file.
  • agent fmt: Format a Grafana Agent Flow config file.
  • agent completion: Generate shell completion for the agent CLI.
  • agent help: Print help for supported commands.