Skip to content

Add --non-interactive as alias for --no-prompt #7387

Description

@spboyer

Summary

Add --non-interactive as a global flag alias for the existing --no-prompt flag.

Motivation

The --non-interactive flag name is the de facto standard across CLI tooling (dotnet CLI, npm, pip, yarn, Homebrew, etc.). Developers and LLM agents trying azd for the first time will reach for --non-interactive and get an error. Adding it as an alias costs nothing and reduces friction.

The existing --no-prompt name should remain for backward compatibility.

Implementation Notes

  • Add --non-interactive as an alias in CreateGlobalFlagSet() in cmd/auto_install.go
  • Both flags should set the same GlobalCommandOptions.NoPrompt field
  • Update help text to mention both flag names
  • Update snapshot tests (TestFigSpec, TestUsage)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or improvement

Fields

No fields configured for Feature.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions