Skip to content

avr firewall

Manage the egress firewall rule list for orgs and repositories.

Terminal window
avr firewall [OPTIONS] COMMAND [ARGS]...

Add a rule.

Terminal window
avr firewall add [OPTIONS]

Add a rule. Exactly one of --cidr, --fqdn, --any must be specified.

Options

  • --org, -o <TEXT> — Organization ID or slug. Uses default org if not specified.
  • --repo, -R <TEXT> — Repository ID or owner/repo. If provided, adds at repo scope.
  • --action <CHOICE> (choices: allow, deny · required)
  • --cidr <TEXT> — Destination CIDR (e.g. 10.0.0.0/8 or 1.2.3.4/32).
  • --fqdn <TEXT> — Destination hostname (e.g. api.example.com).
  • --any — Set the catch-all default, preserving its ID if it already exists.
  • --proto <CHOICE> (choices: tcp, udp, icmp, any · default: any)
  • --ports <TEXT> — Port or port range (0-65535), or all.
  • --position <INTEGER> — Insert at a specific 0-indexed position.

Delete a rule by ID.

Terminal window
avr firewall delete [OPTIONS] RULE_ID

Arguments

  • RULE_ID

Options

  • --org, -o <TEXT> — Organization ID or slug. Uses default org if not specified.
  • --repo, -R <TEXT> — Repository ID or owner/repo. If provided, deletes a repo-level rule.

Edit specified fields of an existing firewall rule.

Terminal window
avr firewall edit [OPTIONS] RULE_ID

Edit only the supplied fields, preserving rule identity and order. Switching hostname/CIDR clears the other matcher. Any or ICMP clears ports. Use --ports all to remove a port restriction; numeric ports require a TCP/UDP rule.

Arguments

  • RULE_ID

Options

  • --action <CHOICE> (choices: allow, deny)
  • --proto <CHOICE> (choices: tcp, udp, icmp, any)
  • --cidr <TEXT> — Destination IPv4 address or CIDR; replaces the hostname.
  • --fqdn <TEXT> — Destination hostname; replaces the CIDR.
  • --org, -o <TEXT> — Organization ID or slug; defaults to the configured organization.
  • --ports <TEXT> — Port, range, or all to clear the port restriction.
  • --repo, -R <TEXT> — Repository ID or owner/repo. If provided, uses repository scope.

Export this scope's rules as portable JSON.

Terminal window
avr firewall export [OPTIONS]

Export the selected scope in the same versioned JSON format as the console. Inherited rules and storage IDs are excluded. Use --file PATH, or redirect stdout.

Options

  • --file <TEXT> — Output file, or - for stdout. Existing files are not overwritten. (default: -)
  • --org, -o <TEXT> — Organization ID or slug; defaults to the configured organization.
  • --repo, -R <TEXT> — Repository ID or owner/repo. If provided, uses repository scope.

Show per-VM network activity summaries captured at VM stop.

Terminal window
avr firewall flow-summaries [OPTIONS]

Each row is the totals + top-N destinations for one VM run. The Blocked column counts both per-rule packet drops and DNS queries the firewall refused to resolve. Use --with-drops to triage what the firewall blocked after editing a rule or --job to include every execution attempt for a job.

Options

  • --org, -o <TEXT> — Organization ID or slug. Uses default org if not specified.
  • --repo, -R <TEXT> — Repository ID or owner/repo. (required)
  • --job, --job-id <TEXT> — Filter to every VM execution attempt for a job ID.
  • --with-drops — Show only summaries where the firewall blocked at least one flow.
  • -L, --limit <INTEGER RANGE> — Max summaries to return. (default: 20)
  • --offset <INTEGER RANGE> — Number of summaries to skip. (default: 0)
  • --from, --start-after <TEXT> — Only include summaries that started at or after this ISO-8601 timestamp.
  • --to, --end-before <TEXT> — Only include summaries that ended at or before this ISO-8601 timestamp.
  • --json — Emit raw JSON instead of a table.

Append or replace this scope's rules from a portable JSON file.

Terminal window
avr firewall import [OPTIONS]

Import a console-compatible JSON policy into one organization or repository. Append skips duplicates and supplied defaults. Replace uses the file's default; without one, repository defaults inherit and organization defaults are retained. Every import is validated before applying. Use --dry-run to review changes. Replace prompts for confirmation; --yes is required with stdin or automation. If the policy changes after preview, the import fails without overwriting it.

Options

  • --mode <CHOICE> (choices: append, replace · default: append)
  • --dry-run — Validate and summarize changes without applying them.
  • --file <TEXT> — Policy file, or - to read stdin. (required)
  • --org, -o <TEXT> — Organization ID or slug; defaults to the configured organization.
  • --repo, -R <TEXT> — Repository ID or owner/repo. If provided, uses repository scope.
  • --yes, -y — Skip replacement confirmation.

List egress firewall rules for the given scope.

Terminal window
avr firewall list [OPTIONS]

Options

  • --org, -o <TEXT> — Organization ID or slug. Uses default org if not specified.
  • --repo, -R <TEXT> — Repository ID or owner/repo. If provided, shows the repo-level list.
  • --json — Output rules as JSON instead of a table.

Move a rule to a new position (rewrites the full ordering atomically).

Terminal window
avr firewall move [OPTIONS] RULE_ID

Arguments

  • RULE_ID

Options

  • --to <INTEGER> — Target 0-indexed position. (required)
  • --org, -o <TEXT> — Organization ID or slug. Uses default org if not specified.
  • --repo, -R <TEXT> — Repository ID or owner/repo. If provided, moves a repo-level rule.

Set the default action, or use --inherit with --repo to restore organization inheritance.

Terminal window
avr firewall set-default [OPTIONS]

Options

  • --org, -o <TEXT> — Organization ID or slug. Uses default org if not specified.
  • --repo, -R <TEXT> — Repository ID or owner/repo. If provided, sets the repo-level default.
  • --action <CHOICE> (choices: allow, deny)
  • --inherit — Remove the repository default override.

Show rules in evaluation order and their source.

Terminal window
avr firewall show [OPTIONS]

Show rules in evaluation order with repository/organization ownership. Built-in service exceptions are not listed. Running jobs retain their dispatched policy.

Options

  • --org, -o <TEXT> — Organization ID or slug. Uses default org if not specified.
  • --repo, -R <TEXT> — Repository ID or owner/repo. (required)
  • --json — Output resolved rules as JSON instead of a table.