Compartilhar via


Referência da Azure Developer CLI

Este artigo explica a sintaxe e os parâmetros dos vários comandos do Azure Developer CLI.

azd

A CLI do Desenvolvedor do Azure (azd) é uma ferramenta de software livre que ajuda a integrar e gerenciar seu projeto no Azure

Opções

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --docs         Opens the documentation for azd in your web browser.
  -h, --help         Gets help for azd.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

  • azd add: adicione um componente ao seu projeto.
  • azd auth: autentique-se com o Azure.
  • conclusão do azd: gerar scripts de conclusão do shell.
  • azd config: gerencie as configurações do azd (ex: assinatura padrão do Azure, localização).
  • azd deploy: implantar o código do projeto no Azure.
  • azd down: exclua os recursos do Azure do projeto.
  • azd env: Gerenciar ambientes (por exemplo: ambiente padrão, variáveis de ambiente).
  • extensão azd: gerenciar extensões do azd.
  • azd hooks: Desenvolver, testar e executar ganchos para um projeto.
  • azd infra: gerencie sua IaC (Infraestrutura como Código).
  • azd init: inicialize um novo aplicativo.
  • azd mcp: gerenciar o servidor MCP (Model Context Protocol). (Alfa)
  • azd monitor: monitore um projeto implantado.
  • pacote azd: empacota o código do projeto a ser implantado no Azure.
  • azd pipeline: gerencie e configure seus pipelines de implantação.
  • provisionamento azd: provisionar recursos do Azure para seu projeto.
  • azd publish: Publicar um serviço em um registro de contêiner.
  • azd restore: restaura as dependências do projeto.
  • azd show: exibir informações sobre seu projeto e seus recursos.
  • azd template: encontre e exiba detalhes do modelo.
  • azd up: provisionar e implantar seu projeto no Azure com um único comando.
  • azd version: imprima o número da versão do Azure Developer CLI.

azd adicionar

Adicione um componente ao seu projeto.

azd add [flags]

Opções

      --docs   Opens the documentation for azd add in your web browser.
  -h, --help   Gets help for add.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

Comando "azd auth" para autenticação

Autenticar com o Azure.

Opções

      --docs   Opens the documentation for azd auth in your web browser.
  -h, --help   Gets help for auth.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

login de autenticação do azd

Fazer logon no Azure.

Sinopse

Fazer logon no Azure.

Quando executado sem nenhum argumento, faça logon interativamente usando um navegador. Para fazer logon usando um código de dispositivo, passe --use-device-code.

Para fazer logon como um principal de serviço, passe --client-id e --tenant-id, bem como uma das opções: --client-secret, --client-certificate ou --federated-credential-provider.

Para fazer logon usando uma identidade gerenciada, passe --managed-identity, que usará a identidade gerenciada atribuída pelo sistema. Para usar uma identidade gerenciada atribuída pelo usuário, passe --client-id além de --managed-identity com o ID do cliente da identidade gerenciada atribuída pelo usuário que deseja usar.

azd auth login [flags]

Opções

      --check-status                           Checks the log-in status instead of logging in.
      --client-certificate string              The path to the client certificate for the service principal to authenticate with.
      --client-id string                       The client id for the service principal to authenticate with.
      --client-secret string                   The client secret for the service principal to authenticate with. Set to the empty string to read the value from the console.
      --docs                                   Opens the documentation for azd auth login in your web browser.
      --federated-credential-provider string   The provider to use to acquire a federated token to authenticate with. Supported values: github, azure-pipelines, oidc
  -h, --help                                   Gets help for login.
      --managed-identity                       Use a managed identity to authenticate.
      --redirect-port int                      Choose the port to be used as part of the redirect URI during interactive login.
      --tenant-id string                       The tenant id or domain name to authenticate with.
      --use-device-code[=true]                 When true, log in by using a device code instead of a browser.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd auth logout (comando para sair da autenticação)

Faça logoff do Azure.

Sinopse

Faça logoff do Azure

azd auth logout [flags]

Opções

      --docs   Opens the documentation for azd auth logout in your web browser.
  -h, --help   Gets help for logout.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

conclusão do azd

Gerar scripts de conclusão do shell.

Sinopse

Gerar scripts de conclusão do shell para azd.

O comando de conclusão permite que você gere scripts de preenchimento automático para seu shell, atualmente dá suporte a bash, zsh, fish e PowerShell.

Consulte a ajuda de cada subcomando para obter detalhes sobre como usar o script gerado.

Opções

      --docs   Opens the documentation for azd completion in your web browser.
  -h, --help   Gets help for completion.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd completion bash (ativar a conclusão automática para comandos bash)

Gerar script de conclusão do bash.

azd completion bash

Opções

      --docs   Opens the documentation for azd completion bash in your web browser.
  -h, --help   Gets help for bash.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

peixe de conclusão do azd

Gerar script de conclusão do peixe.

azd completion fish

Opções

      --docs   Opens the documentation for azd completion fish in your web browser.
  -h, --help   Gets help for fish.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

Completação azd para o PowerShell

Gerar script de conclusão do PowerShell.

azd completion powershell

Opções

      --docs   Opens the documentation for azd completion powershell in your web browser.
  -h, --help   Gets help for powershell.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

Comando para conclusão de azd no zsh

Gerar script de conclusão zsh.

azd completion zsh

Opções

      --docs   Opens the documentation for azd completion zsh in your web browser.
  -h, --help   Gets help for zsh.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

configuração azd

Gerenciar configurações do azd ( ex: assinatura padrão do Azure, local).

Sinopse

Gerencie a configuração do usuário do Azure Developer CLI, que inclui sua assinatura e local padrão do Azure.

Disponível desde azure-dev-cli_0.4.0-beta.1.

A maneira mais fácil de configurar azd pela primeira vez é executar azd init. A assinatura e o local que você selecionar serão armazenados no arquivo config.json localizado no diretório de configuração. Para configurar azd a qualquer momento depois, você usará azd config set.

O valor padrão do diretório de configuração é:

  • $HOME/.azd no Linux e macOS
  • %USERPROFILE%.azd no Windows

O diretório de configuração pode ser substituído especificando um caminho na variável de ambiente AZD_CONFIG_DIR.

Opções

      --docs   Opens the documentation for azd config in your web browser.
  -h, --help   Gets help for config.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd config get

Obtém uma configuração.

Sinopse

Obtém uma configuração no caminho de configuração.

O valor padrão do diretório de configuração é:

  • $HOME/.azd no Linux e macOS
  • %USERPROFILE%\.azd no Windows

O diretório de configuração pode ser substituído especificando um caminho na variável de ambiente AZD_CONFIG_DIR.

azd config get <path> [flags]

Opções

      --docs   Opens the documentation for azd config get in your web browser.
  -h, --help   Gets help for get.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd config list-alpha

Exibe a lista de recursos disponíveis no estágio alfa.

azd config list-alpha [flags]

Opções

      --docs   Opens the documentation for azd config list-alpha in your web browser.
  -h, --help   Gets help for list-alpha.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd config reset (comando para redefinir a configuração)

Redefine a configuração para o padrão.

Sinopse

Redefine toda a configuração no caminho de configuração.

O valor padrão do diretório de configuração é:

  • $HOME/.azd no Linux e macOS
  • %USERPROFILE%\.azd no Windows

O diretório de configuração pode ser substituído pela especificação de um caminho na variável de ambiente AZD_CONFIG_DIR para o padrão.

azd config reset [flags]

Opções

      --docs    Opens the documentation for azd config reset in your web browser.
  -f, --force   Force reset without confirmation.
  -h, --help    Gets help for reset.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd config set

Define uma configuração.

Sinopse

Define uma configuração no caminho de configuração.

O valor padrão do diretório de configuração é:

  • $HOME/.azd no Linux e macOS
  • %USERPROFILE%\.azd no Windows

O diretório de configuração pode ser substituído especificando um caminho na variável de ambiente AZD_CONFIG_DIR.

azd config set <path> <value> [flags]

Exemplos

azd config set defaults.subscription <yourSubscriptionID>
azd config set defaults.location eastus

Opções

      --docs   Opens the documentation for azd config set in your web browser.
  -h, --help   Gets help for set.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd config show

Mostra todos os valores de configuração.

Sinopse

Mostra todos os valores de configuração no caminho de configuração.

O valor padrão do diretório de configuração é:

  • $HOME/.azd no Linux e macOS
  • %USERPROFILE%\.azd no Windows

O diretório de configuração pode ser substituído especificando um caminho na variável de ambiente AZD_CONFIG_DIR.

azd config show [flags]

Opções

      --docs   Opens the documentation for azd config show in your web browser.
  -h, --help   Gets help for show.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd config unset

Remove uma configuração.

Sinopse

Remove uma configuração no caminho de configuração.

O valor padrão do diretório de configuração é:

  • $HOME/.azd no Linux e macOS
  • %USERPROFILE%\.azd no Windows

O diretório de configuração pode ser substituído especificando um caminho na variável de ambiente AZD_CONFIG_DIR.

azd config unset <path> [flags]

Exemplos

azd config unset defaults.location

Opções

      --docs   Opens the documentation for azd config unset in your web browser.
  -h, --help   Gets help for unset.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd deploy

Implante o código do projeto no Azure.

azd deploy <service> [flags]

Opções

      --all                   Deploys all services that are listed in azure.yaml
      --docs                  Opens the documentation for azd deploy in your web browser.
  -e, --environment string    The name of the environment to use.
      --from-package string   Deploys the packaged service located at the provided path. Supports zipped file packages (file path) or container images (image tag).
  -h, --help                  Gets help for deploy.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd down

Exclua os recursos do Azure do projeto.

azd down [flags]

Opções

      --docs                 Opens the documentation for azd down in your web browser.
  -e, --environment string   The name of the environment to use.
      --force                Does not require confirmation before it deletes resources.
  -h, --help                 Gets help for down.
      --purge                Does not require confirmation before it permanently deletes resources that are soft-deleted by default (for example, key vaults).

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd env

Gerenciar ambientes (por exemplo: ambiente padrão, variáveis de ambiente).

Opções

      --docs   Opens the documentation for azd env in your web browser.
  -h, --help   Gets help for env.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd env get-value

Obtém um valor específico do ambiente.

azd env get-value <keyName> [flags]

Opções

      --docs                 Opens the documentation for azd env get-value in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for get-value.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd env get-values

Obtém todos os valores de ambiente.

azd env get-values [flags]

Opções

      --docs                 Opens the documentation for azd env get-values in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for get-values.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd env list

Listar ambientes.

azd env list [flags]

Opções

      --docs   Opens the documentation for azd env list in your web browser.
  -h, --help   Gets help for list.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd env new

Cria um novo ambiente e o define como padrão.

azd env new <environment> [flags]

Opções

      --docs                  Opens the documentation for azd env new in your web browser.
  -h, --help                  Gets help for new.
  -l, --location string       Azure location for the new environment
      --subscription string   Name or ID of an Azure subscription to use for the new environment

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd atualizar ambiente

Atualize os valores de ambiente usando informações de um provisionamento de infraestrutura anterior.

azd env refresh <environment> [flags]

Opções

      --docs                 Opens the documentation for azd env refresh in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for refresh.
      --hint string          Hint to help identify the environment to refresh

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

Selecione o ambiente com o comando 'azd env select'.

Define o ambiente padrão.

azd env select <environment> [flags]

Opções

      --docs   Opens the documentation for azd env select in your web browser.
  -h, --help   Gets help for select.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd env set

Defina um ou mais valores de ambiente.

Sinopse

Defina um ou mais valores de ambiente usando pares chave-valor ou carregando de um arquivo formatado .env.

azd env set [<key> <value>] | [<key>=<value> ...] | [--file <filepath>] [flags]

Opções

      --docs                 Opens the documentation for azd env set in your web browser.
  -e, --environment string   The name of the environment to use.
      --file string          Path to .env formatted file to load environment values from.
  -h, --help                 Gets help for set.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd env definir-segredo

Defina um nome como uma referência a um segredo do Key Vault no ambiente.

Sinopse

Você pode criar um novo segredo do Key Vault ou selecionar um existente. O nome fornecido é a chave para o arquivo .env que contém a referência secreta ao segredo do Key Vault.

azd env set-secret <name> [flags]

Opções

      --docs                 Opens the documentation for azd env set-secret in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for set-secret.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

extensão azd

Gerenciar extensões do azd.

Opções

      --docs   Opens the documentation for azd extension in your web browser.
  -h, --help   Gets help for extension.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

instalação da extensão azd

Instala as extensões especificadas.

azd extension install <extension-name> [flags]

Opções

      --docs             Opens the documentation for azd extension install in your web browser.
  -f, --force            Force installation even if it would downgrade the current version
  -h, --help             Gets help for install.
  -s, --source string    The extension source to use for installs
  -v, --version string   The version of the extension to install

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

lista de extensões do azd

Listar extensões disponíveis.

azd extension list [--installed] [flags]

Opções

      --docs            Opens the documentation for azd extension list in your web browser.
  -h, --help            Gets help for list.
      --installed       List installed extensions
      --source string   Filter extensions by source
      --tags strings    Filter extensions by tags

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

Comando azd extensão mostrar

Mostrar detalhes de uma extensão específica.

azd extension show <extension-name> [flags]

Opções

      --docs            Opens the documentation for azd extension show in your web browser.
  -h, --help            Gets help for show.
  -s, --source string   The extension source to use.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

origem da extensão azd

Exibir e gerenciar fontes de extensão

Opções

      --docs   Opens the documentation for azd extension source in your web browser.
  -h, --help   Gets help for source.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

Extensão azd fonte adicionar

Adicionar uma fonte de extensão com o nome especificado

azd extension source add [flags]

Opções

      --docs              Opens the documentation for azd extension source add in your web browser.
  -h, --help              Gets help for add.
  -l, --location string   The location of the extension source
  -n, --name string       The name of the extension source
  -t, --type string       The type of the extension source. Supported types are 'file' and 'url'

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

lista de fontes de extensão azd

Listar fontes de extensão

azd extension source list [flags]

Opções

      --docs   Opens the documentation for azd extension source list in your web browser.
  -h, --help   Gets help for list.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd extensão fonte remover

Remover uma fonte de extensão com o nome especificado

azd extension source remove <name> [flags]

Opções

      --docs   Opens the documentation for azd extension source remove in your web browser.
  -h, --help   Gets help for remove.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

desinstalação da extensão azd

Desinstale as extensões especificadas.

azd extension uninstall <extension-name> [flags]

Opções

      --all    Uninstall all installed extensions
      --docs   Opens the documentation for azd extension uninstall in your web browser.
  -h, --help   Gets help for uninstall.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

atualização de extensão azd

Atualize as extensões especificadas.

azd extension upgrade <extension-name> [flags]

Opções

      --all              Upgrade all installed extensions
      --docs             Opens the documentation for azd extension upgrade in your web browser.
  -h, --help             Gets help for upgrade.
  -s, --source string    The extension source to use for upgrades
  -v, --version string   The version of the extension to upgrade to

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd hooks

Desenvolva, teste e execute hooks para um projeto.

Opções

      --docs   Opens the documentation for azd hooks in your web browser.
  -h, --help   Gets help for hooks.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd hooks run

Executa o gancho especificado para o projeto e os serviços

azd hooks run <name> [flags]

Opções

      --docs                 Opens the documentation for azd hooks run in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for run.
      --platform string      Forces hooks to run for the specified platform.
      --service string       Only runs hooks for the specified service.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd infra

Gerencie sua IaC (Infraestrutura como Código).

Opções

      --docs   Opens the documentation for azd infra in your web browser.
  -h, --help   Gets help for infra.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd infra generate

Escreva IaC para seu projeto em disco, permitindo que você o gerencie manualmente.

azd infra generate [flags]

Opções

      --docs                 Opens the documentation for azd infra generate in your web browser.
  -e, --environment string   The name of the environment to use.
      --force                Overwrite any existing files without prompting
  -h, --help                 Gets help for generate.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd init

Inicializa um novo aplicativo.

azd init [flags]

Opções

  -b, --branch string         The template branch to initialize from. Must be used with a template argument (--template or -t).
      --docs                  Opens the documentation for azd init in your web browser.
  -e, --environment string    The name of the environment to use.
  -f, --filter strings        The tag(s) used to filter template results. Supports comma-separated values.
      --from-code             Initializes a new application from your existing code.
  -h, --help                  Gets help for init.
  -l, --location string       Azure location for the new environment
  -m, --minimal               Initializes a minimal project.
  -s, --subscription string   Name or ID of an Azure subscription to use for the new environment
  -t, --template string       Initializes a new application from a template. You can use Full URI, <owner>/<repository>, or <repository> if it's part of the azure-samples organization.
      --up                    Provision and deploy to Azure after initializing the project from a template.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd mcp

Gerenciar servidor do MCP (Protocolo de Contexto de Modelos). (Alfa)

Opções

      --docs   Opens the documentation for azd mcp in your web browser.
  -h, --help   Gets help for mcp.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

Gerenciar o consentimento da ferramenta MCP.

Sinopse

Gerenciar regras de consentimento para a execução da ferramenta MCP.

Opções

      --docs   Opens the documentation for azd mcp consent in your web browser.
  -h, --help   Gets help for consent.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

Conceda regras de confiança de consentimento.

Sinopse

Conceda regras de confiança para servidores e ferramentas MCP.

Esse comando cria regras de consentimento que permitem que as ferramentas MCP sejam executadas sem solicitar permissão. Você pode especificar diferentes níveis de permissão e escopos para as regras.

Exemplos: conceda sempre permissão a todas as ferramentas globalmente:

azd mcp consent grant --global --permission always

Grant project permission to a specific tool with read-only scope:
  
```azdeveloper
azd mcp consent grant --server my-server --tool my-tool --permission project --scope read-only

```azdeveloper
azd mcp consent grant [flags]

Opções

      --action string       Action type: 'all' or 'readonly' (default "all")
      --docs                Opens the documentation for azd mcp consent grant in your web browser.
      --global              Apply globally to all servers
  -h, --help                Gets help for grant.
      --operation string    Operation type: 'tool' or 'sampling' (default "tool")
      --permission string   Permission: 'allow', 'deny', or 'prompt' (default "allow")
      --scope string        Rule scope: 'global', or 'project' (default "global")
      --server string       Server name
      --tool string         Specific tool name (requires --server)

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

Listar regras de consentimento.

Sinopse

Listar todas as regras de consentimento para ferramentas MCP.

azd mcp consent list [flags]

Opções

      --action string       Action type to filter by (readonly, any)
      --docs                Opens the documentation for azd mcp consent list in your web browser.
  -h, --help                Gets help for list.
      --operation string    Operation to filter by (tool, sampling)
      --permission string   Permission to filter by (allow, deny, prompt)
      --scope string        Consent scope to filter by (global, project). If not specified, lists rules from all scopes.
      --target string       Specific target to operate on (server/tool format)

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

Revogar regras de consentimento.

Sinopse

Revogar regras de consentimento para ferramentas MCP.

azd mcp consent revoke [flags]

Opções

      --action string       Action type to filter by (readonly, any)
      --docs                Opens the documentation for azd mcp consent revoke in your web browser.
  -h, --help                Gets help for revoke.
      --operation string    Operation to filter by (tool, sampling)
      --permission string   Permission to filter by (allow, deny, prompt)
      --scope string        Consent scope to filter by (global, project). If not specified, revokes rules from all scopes.
      --target string       Specific target to operate on (server/tool format)

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd mcp start

Inicia o servidor MCP.

Sinopse

Inicia o servidor MCP (Model Context Protocol).

Esse comando inicia um servidor MCP que pode ser usado por clientes MCP para acessar a funcionalidade do azd por meio da interface Protocolo de Contexto de Modelo.

azd mcp start [flags]

Opções

      --docs   Opens the documentation for azd mcp start in your web browser.
  -h, --help   Gets help for start.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd monitor

Monitore um projeto implantado.

azd monitor [flags]

Opções

      --docs                 Opens the documentation for azd monitor in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for monitor.
      --live                 Open a browser to Application Insights Live Metrics. Live Metrics is currently not supported for Python apps.
      --logs                 Open a browser to Application Insights Logs.
      --overview             Open a browser to Application Insights Overview Dashboard.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

pacote azd

Empacota o código do projeto a ser implantado no Azure.

azd package <service> [flags]

Opções

      --all                  Packages all services that are listed in azure.yaml
      --docs                 Opens the documentation for azd package in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for package.
      --output-path string   File or folder path where the generated packages will be saved.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd pipeline

Gerencie e configure seus pipelines de implantação.

Opções

      --docs   Opens the documentation for azd pipeline in your web browser.
  -h, --help   Gets help for pipeline.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

configuração do pipeline azd

Configure seu pipeline de implantação para se conectar com segurança ao Azure. (Beta)

azd pipeline config [flags]

Opções

  -m, --applicationServiceManagementReference string   Service Management Reference. References application or service contact information from a Service or Asset Management database. This value must be a Universally Unique Identifier (UUID). You can set this value globally by running azd config set pipeline.config.applicationServiceManagementReference <UUID>.
      --auth-type string                               The authentication type used between the pipeline provider and Azure for deployment (Only valid for GitHub provider). Valid values: federated, client-credentials.
      --docs                                           Opens the documentation for azd pipeline config in your web browser.
  -e, --environment string                             The name of the environment to use.
  -h, --help                                           Gets help for config.
      --principal-id string                            The client id of the service principal to use to grant access to Azure resources as part of the pipeline.
      --principal-name string                          The name of the service principal to use to grant access to Azure resources as part of the pipeline.
      --principal-role stringArray                     The roles to assign to the service principal. By default the service principal will be granted the Contributor and User Access Administrator roles. (default [Contributor,User Access Administrator])
      --provider string                                The pipeline provider to use (github for Github Actions and azdo for Azure Pipelines).
      --remote-name string                             The name of the git remote to configure the pipeline to run on. (default "origin")

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

provisionamento azd

Provisione recursos do Azure para seu projeto.

azd provision [flags]

Opções

      --docs                 Opens the documentation for azd provision in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for provision.
      --no-state             (Bicep only) Forces a fresh deployment based on current Bicep template files, ignoring any stored deployment state.
      --preview              Preview changes to Azure resources.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd publish

Publique um serviço em um registro de contêiner.

azd publish <service> [flags]

Opções

      --all                   Publishes all services that are listed in azure.yaml
      --docs                  Opens the documentation for azd publish in your web browser.
  -e, --environment string    The name of the environment to use.
      --from-package string   Publishes the service from a container image (image tag).
  -h, --help                  Gets help for publish.
      --to string             The target container image in the form '[registry/]repository[:tag]' to publish to.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd restore

Restaura as dependências do projeto.

azd restore <service> [flags]

Opções

      --all                  Restores all services that are listed in azure.yaml
      --docs                 Opens the documentation for azd restore in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for restore.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd show

Exiba informações sobre seu projeto e seus recursos.

azd show [resource name or ID] [flags]

Opções

      --docs                 Opens the documentation for azd show in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for show.
      --show-secrets         Unmask secrets in output.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

modelo azd

Encontre e exiba detalhes do modelo.

Opções

      --docs   Opens the documentation for azd template in your web browser.
  -h, --help   Gets help for template.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

lista de modelos azd

Mostra lista de exemplos de modelos azd. (Beta)

azd template list [flags]

Opções

      --docs             Opens the documentation for azd template list in your web browser.
  -f, --filter strings   The tag(s) used to filter template results. Supports comma-separated values.
  -h, --help             Gets help for list.
  -s, --source string    Filters templates by source.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

comando 'azd template show' para exibir modelos

Mostra detalhes de um determinado modelo. (Beta)

azd template show <template> [flags]

Opções

      --docs   Opens the documentation for azd template show in your web browser.
  -h, --help   Gets help for show.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

fonte de modelo azd

Exibe e gerencia fontes de modelo. (Beta)

Opções

      --docs   Opens the documentation for azd template source in your web browser.
  -h, --help   Gets help for source.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd template source add

Adiciona uma fonte de modelo azd com a chave especificada. (Beta)

Sinopse

A chave pode ser qualquer valor que identifique exclusivamente a origem do modelo, com valores conhecidos sendo: ・default: Modelos padrão ・awesome-azd: Modelos de https://aka.ms/awesome-azd

azd template source add <key> [flags]

Opções

      --docs              Opens the documentation for azd template source add in your web browser.
  -h, --help              Gets help for add.
  -l, --location string   Location of the template source. Required when using type flag.
  -n, --name string       Display name of the template source.
  -t, --type string       Kind of the template source. Supported types are 'file', 'url' and 'gh'.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

lista de fontes de modelo azd

Lista as fontes de modelo azd configuradas. (Beta)

azd template source list [flags]

Opções

      --docs   Opens the documentation for azd template source list in your web browser.
  -h, --help   Gets help for list.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd modelo origem remover

Remove a fonte de modelo azd especificada (Beta)

azd template source remove <key> [flags]

Opções

      --docs   Opens the documentation for azd template source remove in your web browser.
  -h, --help   Gets help for remove.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd up

Provisione e implante seu projeto no Azure com um único comando.

azd up [flags]

Opções

      --docs                 Opens the documentation for azd up in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for up.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também

azd versão

Imprima o número da versão do Azure Developer CLI.

azd version [flags]

Opções

      --docs   Opens the documentation for azd version in your web browser.
  -h, --help   Gets help for version.

Opções herdadas de comandos pai

  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Confira também