Administration & utilities
Server administration, snapshots, playlists, preferences, configuration, and updates.
Server administration
grafana admin settings -o json
grafana admin stats -o json
grafana admin reload dashboards
grafana admin reload alertingadmin reload accepts dashboards, datasources, plugins, access-control,
or alerting and requires the matching Grafana administrative permissions.
Snapshots and playlists
grafana snapshot list --limit 10 -o json
grafana snapshot get <snapshot-key> -o json
grafana snapshot create -f snapshot.json
grafana playlist list --query "operations" --limit 10 -o json
grafana playlist get <playlist-uid> -o json
grafana playlist create -f playlist.jsonPreferences and configuration
grafana preferences get -o json
grafana preferences update -f preferences.yaml
grafana config view
grafana config list-profiles
grafana config use-profile staging
grafana config set defaults.output jsonCLI maintenance
grafana version
grafana update --check
grafana completion zshRunning grafana update without --check asks Update now? [Y/n] before
replacing the current binary on macOS, Linux, or Windows. Pass --yes to skip
the prompt; with --no-input or without a terminal, --yes is required.
grafana update --check -o json reports current_version, latest_version,
update_available, release_url, and install_method. --read-only blocks
installing but not --check. See
Updating
for the update notice and how to turn it off.