Skip to content

avr variable

Manage organization and repository variables.

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

Delete one scoped value, or the whole name with --all.

Terminal window
avr variable delete [OPTIONS] NAME
Terminal window
JSON FIELDS
availability, label, message, name, resource_id, stage, status,
variant_id, version_id

Arguments

  • NAME

Options

  • --all — Delete the name and all of its scoped values.
  • --jq, -q <TEXT> — Filter JSON with an embedded jq expression.
  • --json <TEXT> — Output comma-separated fields, * for all, or ? to list fields.
  • --org, -o <TEXT> — Organization ID or slug; does not broaden availability.
  • --repo, -R <TEXT> — Repository full name or ID; defaults to the current checkout.
  • --variant <TEXT> — Select an existing scoped value by label.
  • --variant-id <TEXT> — Select an existing scoped value by ID.
  • --yes, -y — Skip confirmation.

Edit description, label, or availability without replacing a value.

Terminal window
avr variable edit [OPTIONS] NAME
Terminal window
JSON FIELDS
availability, label, message, name, resource_id, stage, status,
variant_id, version_id

Arguments

  • NAME

Options

  • --branch <TEXT> — Branch pattern; repeat for alternatives. (default: () · repeatable)
  • --clear-branch — Remove branch restrictions.
  • --clear-env — Remove environment restrictions.
  • --clear-label — Clear the scoped value label.
  • --clear-workflow — Remove workflow restrictions.
  • --description <TEXT> — Organization-wide description shared by all scoped values; an empty string clears it.
  • --env, -e <TEXT> — Environment pattern; repeat for alternatives. (default: () · repeatable)
  • --jq, -q <TEXT> — Filter JSON with an embedded jq expression.
  • --json <TEXT> — Output comma-separated fields, * for all, or ? to list fields.
  • --label <TEXT> — Label for the scoped value.
  • --org, -o <TEXT> — Organization ID or slug; does not broaden availability.
  • --repo, -R <TEXT> — Repository full name or ID; defaults to the current checkout.
  • --repos <TEXT> — Organization availability: repository names or IDs, comma-separated. (default: () · repeatable)
  • --variant <TEXT> — Select an existing scoped value by label.
  • --variant-id <TEXT> — Select an existing scoped value by ID.
  • --visibility <TEXT> — Organization availability: all, private, or selected (requires --repos).
  • --workflow <TEXT> — Workflow path pattern; repeat for alternatives. (default: () · repeatable)

Inspect a variable.

Terminal window
avr variable get [OPTIONS] NAME
Terminal window
JSON FIELDS
availability, current_version, current_version_created_at,
current_version_id, has_value, label, updated_at, value,
variable_variant_id

Arguments

  • NAME

Options

  • --jq, -q <TEXT> — Filter JSON with an embedded jq expression.
  • --json <TEXT> — Output comma-separated fields, * for all, or ? to list fields.
  • --org, -o <TEXT> — Organization ID or slug; does not broaden availability.
  • --repo, -R <TEXT> — Repository full name or ID; defaults to the current checkout.
  • --variant <TEXT> — Select an existing scoped value by label.
  • --variant-id <TEXT> — Select an existing scoped value by ID.

List names, scoped-value counts, and update times.

Terminal window
avr variable list [OPTIONS]
Terminal window
JSON FIELDS
description, name, updated_at, variable_id, variants

Options

  • --jq, -q <TEXT> — Filter JSON with an embedded jq expression.
  • --json <TEXT> — Output comma-separated fields, * for all, or ? to list fields.
  • --org, -o <TEXT> — Organization ID or slug; does not broaden availability.
  • --repo, -R <TEXT> — Repository full name or ID; defaults to the current checkout.

Create or replace a scoped value.

Terminal window
avr variable set [OPTIONS] [NAME]
Terminal window
JSON FIELDS
availability, label, message, name, resource_id, stage, status,
variant_id, version_id

Arguments

  • [NAME]

Options

  • --body, -b <TEXT> — Variable value; otherwise prompt or read stdin.
  • --branch <TEXT> — Branch pattern; repeat for alternatives. (default: () · repeatable)
  • --description <TEXT> — Description for a newly created name; use edit to change an existing description.
  • --env, -e <TEXT> — Environment pattern; repeat for alternatives. (default: () · repeatable)
  • --env-file, -f <TEXT> — Read literal NAME=value entries from a dotenv file (- for stdin); no expansion.
  • --jq, -q <TEXT> — Filter JSON with an embedded jq expression.
  • --json <TEXT> — Output comma-separated fields, * for all, or ? to list fields.
  • --label <TEXT> — Label for the scoped value.
  • --org, -o <TEXT> — Organization ID or slug; does not broaden availability.
  • --repo, -R <TEXT> — Repository full name or ID; defaults to the current checkout.
  • --repos <TEXT> — Organization availability: repository names or IDs, comma-separated. (default: () · repeatable)
  • --variant <TEXT> — Select an existing scoped value by label.
  • --variant-id <TEXT> — Select an existing scoped value by ID.
  • --visibility <TEXT> — Organization availability: all, private, or selected (requires --repos).
  • --workflow <TEXT> — Workflow path pattern; repeat for alternatives. (default: () · repeatable)