Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/grafana-agent
Path: blob/main/docs/sources/flow/reference/cli/_index.md
4096 views
---
title: Command-line interface weight: 100
---

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 the grafana-agent CLI.

  • grafana-agent help: Print help for supported commands.

[run]: {{< relref "./run.md" >}} [fmt]: {{< relref "./fmt.md" >}}