Partilhar via


Referência do Azure Developer CLI

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

AZD

A CLI do Desenvolvedor do Azure (azd) é uma ferramenta de código aberto 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.

Consulte também

  • azd add: Adicione um componente ao seu projeto.
  • azd auth: Autentique-se com o Azure.
  • azd completion: Gere scripts de conclusão de shell.
  • azd config: gerencie configurações azd (por exemplo, assinatura padrão do Azure, local).
  • azd deploy: implante seu código de projeto no Azure.
  • azd down: exclua os recursos do Azure do seu projeto.
  • azd env: Gerenciar ambientes (ex: ambiente padrão, variáveis de ambiente).
  • azd extension: Gerencie extensões azd.
  • azd hooks: Desenvolver, testar e executar ganchos para um projeto.
  • azd infra: Gere a infraestrutura como código (IaC).
  • azd init: inicialize um novo aplicativo.
  • azd mcp: Gerenciar servidor MCP (Model Context Protocol). (Alfa)
  • azd monitor: Monitore um projeto implantado.
  • azd package: empacota o código do projeto a ser implantado no Azure.
  • azd pipeline: gerencie e configure seus pipelines de implantação.
  • azd provision: provisione recursos do Azure para seu projeto.
  • azd publish: publique um serviço em um registro de contêiner.
  • azd restore: Restaura as dependências do projeto.
  • azd show: exibe informações sobre seu projeto e seus recursos.
  • azd template: Encontre e visualize os detalhes do modelo.
  • azd up: provisione e implante seu projeto no Azure com um único comando.
  • azd version: imprima o número da versão da CLI do Azure Developer.

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

Consulte também

AZD Auth

Autentique-se 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 dos 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.

Consulte também

Login de autenticação azd

Iniciar sessão no Azure.

Sinopse

Iniciar sessão no Azure.

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

Para efetuar login como uma entidade de serviço, passe --client-id e --tenant-id, bem como um de: --client-secret, --client-certificate ou --federated-credential-provider.

Para efetuar login usando uma identidade gerenciada, passe --managed-identity, que usará a identidade gerenciada atribuída ao sistema. Para usar uma identidade gerenciada atribuída ao usuário, passe --client-id além de --managed-identity com a id do cliente da identidade gerenciada atribuída ao usuário que você 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 dos 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.

Consulte também

azd auth logout (comando para desautenticar)

Faça logout do Azure.

Sinopse

Sair 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 dos 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.

Consulte também

Conclusão do azd

Gere scripts de conclusão de shell.

Sinopse

Gere scripts de auto-completação de shell para azd.

O comando completion permite gerar scripts de preenchimento automático para seu shell, atualmente suporta 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 dos 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.

Consulte também

conclusão do azd para bash

Gere script de completamento 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 dos 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.

Consulte também

azd peixe de conclusão

Gerar script de conclusão de peixes.

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

Consulte também

PowerShell de conclusão do AZD

Gere o 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 dos 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.

Consulte também

comando azd para autocompletar no zsh

Gere o 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 dos 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.

Consulte também

Configuração do AZD

Gerencie configurações azd (por exemplo, assinatura padrão do Azure, local).

Sinopse

Gerencie a configuração de usuário da CLI do Desenvolvedor do Azure, 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 inito . A assinatura e o config.json local selecionados serão armazenados no arquivo localizado no diretório config. Para configurar azd a qualquer momento depois, você usará azd config seto .

O valor padrão do diretório config é:

  • $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 dos 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.

Consulte também

azd config obter

Obtém uma configuração.

Sinopse

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

O valor padrão do diretório config é:

  • $HOME/.azd em 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 dos 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.

Consulte também

azd config list-alpha

Exiba 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 dos 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.

Consulte também

azd config redefinir

Redefine a configuração como padrão.

Sinopse

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

O valor padrão do diretório config é:

  • $HOME/.azd em 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 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 dos 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.

Consulte também

conjunto de configurações azd

Define uma configuração.

Sinopse

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

O valor padrão do diretório config é:

  • $HOME/.azd em 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 dos 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.

Consulte também

azd config show (comando para exibir as configurações)

Mostrar todos os valores de configuração.

Sinopse

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

O valor padrão do diretório config é:

  • $HOME/.azd em 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 dos 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.

Consulte também

configuração azd unset

Desdefine uma configuração.

Sinopse

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

O valor padrão do diretório config é:

  • $HOME/.azd em 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 dos 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.

Consulte também

Implantação do AZD

Implante seu código de 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 dos 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.

Consulte também

azd para baixo

Exclua os recursos do Azure do seu 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 dos 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.

Consulte também

azd env |

Gerenciar ambientes (ex: 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 dos 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.

Consulte também

AZD ENV Get-Value

Obtenha valor específico para o 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 dos 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.

Consulte também

AZD ENV Get-Values

Obtenha todos os valores do 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 dos 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.

Consulte também

Lista AZD ENV

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

Consulte também

azd env novo

Crie um novo ambiente e defina-o 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 dos 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.

Consulte também

azd env atualizar

Atualize os valores do ambiente usando informações de uma provisão 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 dos 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.

Consulte também

azd env selecionar

Defina 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 dos 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.

Consulte também

conjunto azd env

Defina um ou mais valores de ambiente.

Sinopse

Definir um ou mais valores de ambiente utilizando pares chave-valor ou carregando a partir de um ficheiro no formato .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 dos 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.

Consulte também

azd env set-secret (comando para definir segredos no ambiente de configuração)

Defina um nome como uma referência a um segredo do Cofre da Chave no ambiente.

Sinopse

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

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

Consulte também

Extensão AZD

Gerencie extensões azd.

Opções

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

Opções herdadas dos 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.

Consulte também

instalação da extensão azd

Instala 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 dos 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.

Consulte também

lista de extensões azd

Liste as 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 dos 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.

Consulte também

AZD Extensão Mostrar

Mostrar detalhes para 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 dos 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.

Consulte também

Fonte de 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 dos 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.

Consulte também

azd fonte de extensão 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 dos 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.

Consulte também

Lista de fontes da 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 dos 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.

Consulte também

azd fonte de extensão 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 dos 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.

Consulte 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 dos 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.

Consulte também

Atualização da 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 dos 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.

Consulte também

ganchos azd

Desenvolver, testar e executar 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 dos 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.

Consulte também

azd ganchos correr

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

Consulte também

azd infra |

Gerencie sua infraestrutura como código (IaC).

Opções

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

Opções herdadas dos 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.

Consulte também

azd infra gerar

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

Consulte também

AZD Init

Inicialize 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 dos 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.

Consulte também

AZD MCP |

Gerencie o servidor MCP (Model Context Protocol). (Alfa)

Opções

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

Opções herdadas dos 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.

Consulte também

Gerencie o consentimento da ferramenta MCP.

Sinopse

Gerencie 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 dos 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.

Consulte também

Regras de confiança de concessão de consentimento.

Sinopse

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

Este 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 dos 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.

Consulte também

Listar regras de consentimento.

Sinopse

Liste 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 dos 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.

Consulte 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 dos 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.

Consulte também

AZD MCP Início

Inicia o servidor MCP.

Sinopse

Inicia o servidor MCP (Model Context Protocol).

Este comando inicia um servidor MCP que pode ser usado por clientes MCP para acessar a funcionalidade azd por meio da interface do Model Context Protocol.

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

Consulte também

Monitor AZD

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

Consulte 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 dos 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.

Consulte também

Gasoduto AZD

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

Consulte 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 dos 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.

Consulte também

Disposição 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 dos 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.

Consulte também

azd publicar

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

Consulte também

azd restaurar

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

Consulte também

show azd

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

Consulte também

modelo azd

Encontre e visualize os 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 dos 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.

Consulte também

Lista de modelos AZD

Mostrar lista de modelos azd de exemplo. (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 dos 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.

Consulte também

AZD Template Show

Mostrar 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 dos 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.

Consulte também

Origem do modelo AZD

Visualize e gerencie fontes de modelos. (Beta)

Opções

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

Opções herdadas dos 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.

Consulte também

azd fonte de modelo adicionar

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 bem conhecidos sendo: ・default: Default templates ・awesome-azd: Templates from 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 dos 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.

Consulte também

Lista de fontes de modelos 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 dos 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.

Consulte também

azd fonte de modelo 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 dos 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.

Consulte também

azd up

Provisione e implante o 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 dos 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.

Consulte também

Versão AZD

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

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

Consulte também