CLI Reference
Complete reference for all azd app commands and flags.
Global Flags
These flags are available for all commands:
| Flag | Short | Description |
|---|---|---|
--output | -o | Output format (default, json) |
--debug | - | Enable debug logging |
--structured-logs | - | Enable structured JSON logging to stderr |
--cwd | -C | Sets the current working directory |
Commands
azd app reqsFull DocsVerifies that all required tools are installed and optionally checks if they are running. Can also auto-generate requirements from your project.
azd app depsFull DocsAutomatically detects your project type and installs all dependencies.
azd app addFull DocsAdd a well-known container service to your azure.yaml configuration.
azd app runFull DocsStarts your development environment based on project type with support for multi-service orchestration.
azd app startFull DocsStart stopped services.
azd app stopFull DocsStop running services, execute lifecycle hooks, and tear down the app.
azd app restartFull DocsRestart services.
azd app healthFull DocsMonitor the health status of running services with production-grade reliability and observability features.
azd app logsFull DocsView logs from running services with filtering and follow support.
azd app infoFull DocsShow comprehensive information about running services.
azd app testFull DocsRun tests for all services in your application with support for different test types and aggregated code coverage.
azd app completionFull DocsGenerate shell autocompletion scripts for `azd app`.
azd app initFull DocsScans your project to detect services, languages, frameworks, and infrastructure dependencies, then generates or enriches `azure.yaml` with all the settings needed for `azd app run`.
azd app mcpFull DocsModel Context Protocol (MCP) server for AI assistant integration. Enables AI assistants like Claude Desktop and GitHub Copilot to interact with your azd app projects.
azd app notificationsFull DocsView and manage notifications for service state changes and events.
azd app versionFull DocsShow version information for the azd app extension.
Quick Reference
# Check prerequisitesazd app reqs
# Install dependenciesazd app deps
# Start development environmentazd app run
# Monitor service healthazd app health --stream
# View logsazd app logs --follow
# Show running servicesazd app info
# Start MCP server for AI debuggingazd app mcp serveEnvironment Variables
When running through azd app <command>, these Azure environment variables are automatically available:
| Variable | Description |
|---|---|
AZURE_SUBSCRIPTION_ID | Current Azure subscription |
AZURE_RESOURCE_GROUP_NAME | Target resource group |
AZURE_ENV_NAME | Environment name |
AZURE_LOCATION | Azure region |
AI-Powered Debugging with MCP
The azd app mcp command enables AI assistants like GitHub Copilot to interact with your running services.