Open source

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 which accepts a config file and starts Grafana Agent Flow.

Available commands:

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