Forrest logo
back to the flarectl tool

flarectl:tldr:c7628

flarectl: List all firewall rules.
$ flarectl firewall rules list
try on your machine

The command "flarectl firewall rules list" is a command used in Cloudflare's command-line tool, flarectl, to retrieve a list of firewall rules configured for a Cloudflare zone.

Here's a breakdown of the command:

  • flarectl: This is the executable command-line tool provided by Cloudflare that allows you to interact with various Cloudflare services.
  • firewall: This is a subcommand of flarectl used for managing Cloudflare firewall rules.
  • rules: This subcommand is used specifically for managing firewall rule lists.
  • list: This is an action or subcommand that instructs flarectl to retrieve and display a list of firewall rules.

When you run this command, it will communicate with the Cloudflare API using your authentication credentials to retrieve the firewall rules associated with the configured zone. The list of firewall rules will then be displayed in the command-line interface, usually including information such as rule IDs, rule descriptions, and actions (e.g., allow, block, challenge) associated with each rule.

This command is useful for administrators who want to view and manage the firewall rules set up for their Cloudflare zone directly from the command line.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the flarectl tool