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

Commands

Quick Reference

Terminal window
# Check prerequisites
azd app reqs
# Install dependencies
azd app deps
# Start development environment
azd app run
# Monitor service health
azd app health --stream
# View logs
azd app logs --follow
# Show running services
azd app info
# Start MCP server for AI debugging
azd app mcp serve

Environment 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.

Learn about MCP integration →