Skip to content

Add a config command to show effective configuration#298

Open
jongio wants to merge 1 commit into
mainfrom
idea/config-command
Open

Add a config command to show effective configuration#298
jongio wants to merge 1 commit into
mainfrom
idea/config-command

Conversation

@jongio

@jongio jongio commented Jul 19, 2026

Copy link
Copy Markdown
Owner

What

Adds azd rest config, a diagnostic command that prints the effective configuration without making a network call.

For every persistent flag it shows:

  • the current effective value
  • where that value came from (default or environment)
  • the AZD_REST_* environment variable that overrides it
  • the built-in default

This rounds out the diagnostic family alongside doctor, whoami, and scope. When a request behaves unexpectedly because an AZD_REST_* variable is set in a shell or CI, config makes the source obvious.

Example

azd rest config
azd rest config --format json

Notes

  • Command layer only. No transport or auth changes.
  • --allow-host maps to AZD_REST_ALLOWED_HOSTS (comma separated), matching how its default is applied.
  • Unit tests cover default-only, environment override, empty-env, unknown-flag skip, and both text and JSON output.

Closes #295

azd rest config prints every persistent flag with its built-in default, the AZD_REST_* environment variable that overrides it, the effective value, and whether that value came from the default or the environment. It makes no network call, so you can see why a request behaves a certain way when AZD_REST_* variables are set in your shell or CI.

Closes #295

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jongio jongio added the idea Feature idea from the idea pipeline label Jul 19, 2026
@jongio jongio self-assigned this Jul 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Website Preview

Your PR preview is ready!

📎 Preview URL: https://jongio.github.io/azd-rest/pr/298/

This preview will be automatically cleaned up when the PR is closed.

github-actions Bot added a commit that referenced this pull request Jul 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Test This PR

A preview build (0.5.0-pr298) is ready for testing!

One-Line Install (Recommended)

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-rest/main/scripts/install-pr.ps1) } -PrNumber 298 -Version 0.5.0-pr298"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-rest/main/scripts/install-pr.sh | bash -s 298 0.5.0-pr298

Uninstall

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-rest/main/scripts/uninstall-pr.ps1) } -PrNumber 298"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-rest/main/scripts/uninstall-pr.sh | bash -s 298

Build Info:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idea Feature idea from the idea pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a config command to show effective configuration and env var mappings

1 participant