Partager via


Référence Azure Developer CLI

Cet article explique la syntaxe et les paramètres des différentes commandes AZURE Developer CLI.

azd

Azure Developer CLI (azd) est un outil open source qui permet d’intégrer et de gérer votre projet sur Azure

Paramètres

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

Voir aussi

  • azd add : Add a component to your project.
  • azd auth : s’authentifier auprès d’Azure.
  • azd completion : Générer des scripts de complétion pour le shell.
  • azd config : gérer les configurations azd (ex : l’abonnement Azure par défaut, l’emplacement).
  • azd deploy : Deploy your project code to Azure.
  • azd down : supprimez les ressources Azure de votre projet.
  • azd env : Gérer les environnements (par exemple, environnement par défaut, variables d’environnement).
  • azd extension : Gérer les extensions azd.
  • azd hooks : Développer, tester et exécuter des hooks pour un projet.
  • azd infra : Gérer votre infrastructure en tant que code (IaC).
  • azd init : initialiser une nouvelle application.
  • azd mcp : Gérer le serveur MCP (Model Context Protocol). (Alpha)
  • azd monitor : surveiller un projet déployé.
  • package azd : empaquetage du code du projet à déployer sur Azure.
  • azd pipeline : gérer et configurer vos pipelines de déploiement.
  • azd provision : Provisionner des ressources Azure pour votre projet.
  • azd publish : Publier un service dans un registre de conteneurs.
  • azd restore : restaure les dépendances du projet.
  • azd show : affichez des informations sur votre projet et ses ressources.
  • modèle azd : recherchez et affichez les détails du modèle.
  • azd up : Provisionnez et déployez votre projet sur Azure avec une seule commande.
  • azd version : imprimez le numéro de version d’Azure Developer CLI.

azd add

Ajoutez un composant à votre projet.

azd add [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd auth

Authentifiez-vous auprès d’Azure.

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd auth login (connectez-vous avec l'authentification azd)

Connectez-vous à Azure.

Synopsis

Connectez-vous à Azure.

Lorsqu’il est exécuté sans aucun argument, connectez-vous de manière interactive à l’aide d’un navigateur. Pour vous connecter en utilisant un code d’appareil, passez l’option --use-device-code.

Pour vous connecter en tant que principal du service, passez les options --client-id et --tenant-id ainsi qu’une des options suivantes : --client-secret, --client-certificate ou --federated-credential-provider.

Pour vous connecter en utilisant une identité gérée, passez l’option --managed-identity, qui utilisera l’identité gérée assignée au système. Pour utiliser une identité gérée assignée à un utilisateur, passez l’option --client-id en plus de --managed-identity avec l’identifiant client de l’identité gérée assignée à l’utilisateur que vous souhaitez utiliser.

azd auth login [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd auth logout - commande pour déconnecter l'authentification

Déconnectez-vous d’Azure.

Synopsis

Déconnectez-vous d’Azure

azd auth logout [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd complétion

Générez des scripts de complétion d’interpréteur de commandes.

Synopsis

Générez des scripts de complétion de shell pour `azd`.

La commande de complétion vous permet de générer des scripts de complétion automatique pour votre interpréteur de commandes et prend actuellement en charge bash, zsh, fish et PowerShell.

Pour plus d’informations sur l’utilisation du script généré, consultez l’aide de chaque sous-commande.

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd complétion bash

Générer un script de complétion Bash.

azd completion bash

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd completion fig

Générer la spécification de saisie semi-automatique Fig.

azd completion fig

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd achèvement fish

Générer un script d’achèvement de poisson.

azd completion fish

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd complétion PowerShell

Générer un script de complétion PowerShell.

azd completion powershell

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd completion zsh

Générer un script d'autocomplétion Zsh.

azd completion zsh

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd config

azd config : gérer les configurations azd (ex : l’abonnement Azure par défaut, l’emplacement).

Synopsis

Gérez la configuration utilisateur de l’interface en ligne de commande Azure Developer CLI, qui inclut votre abonnement Azure par défaut et l’emplacement.

Disponible depuis azure-dev-cli_0.4.0-beta.1.

La manière la plus simple de configurer azd pour la première fois est d’exécuter azd init. L’abonnement et l’emplacement que vous sélectionnez seront stockés dans le fichier config.json situé dans le répertoire de configuration. Pour configurer azd ultérieurement, vous utiliserez azd config set.

La valeur par défaut du répertoire de configuration est :

  • $HOME/.azd sur Linux et macOS
  • %USERPROFILE%.azd sur Windows

Le répertoire de configuration peut être redéfini en spécifiant un chemin dans la variable d’environnement AZD_CONFIG_DIR.

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd config get

Obtient une configuration.

Synopsis

Obtient une configuration dans le chemin de configuration.

La valeur par défaut du répertoire de configuration est :

  • $HOME/.azd sur Linux et macOS
  • %USERPROFILE%\.azd sur Windows

Le répertoire de configuration peut être redéfini en spécifiant un chemin dans la variable d’environnement AZD_CONFIG_DIR.

azd config get <path> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd config list-alpha (commande pour lister la configuration alpha)

Affiche la liste des fonctionnalités disponibles en phase alpha.

azd config list-alpha [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

Réinitialisation de la configuration azd

Réinitialise la configuration par défaut.

Synopsis

Réinitialise toute la configuration dans le chemin de configuration.

La valeur par défaut du répertoire de configuration est :

  • $HOME/.azd sur Linux et macOS
  • %USERPROFILE%\.azd sur Windows

Le répertoire de configuration peut être remplacé en spécifiant un chemin dans la variable d’environnement AZD_CONFIG_DIR par défaut.

azd config reset [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd config set

Définit une configuration.

Synopsis

Définit une configuration dans le chemin de configuration.

La valeur par défaut du répertoire de configuration est :

  • $HOME/.azd sur Linux et macOS
  • %USERPROFILE%\.azd sur Windows

Le répertoire de configuration peut être redéfini en spécifiant un chemin dans la variable d’environnement AZD_CONFIG_DIR.

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

Exemples

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

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd config show (afficher la configuration)

Affiche toutes les valeurs de configuration.

Synopsis

Affiche toutes les valeurs de configuration dans le chemin de configuration.

La valeur par défaut du répertoire de configuration est :

  • $HOME/.azd sur Linux et macOS
  • %USERPROFILE%\.azd sur Windows

Le répertoire de configuration peut être redéfini en spécifiant un chemin dans la variable d’environnement AZD_CONFIG_DIR.

azd config show [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

La commande "azd config unset" est utilisée pour réinitialiser les paramètres de configuration.

Supprime une configuration.

Synopsis

Supprime une configuration dans le chemin de configuration.

La valeur par défaut du répertoire de configuration est :

  • $HOME/.azd sur Linux et macOS
  • %USERPROFILE%\.azd sur Windows

Le répertoire de configuration peut être redéfini en spécifiant un chemin dans la variable d’environnement AZD_CONFIG_DIR.

azd config unset <path> [flags]

Exemples

azd config unset defaults.location

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd deploy

Déployez votre code de projet sur Azure.

azd deploy <service> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd hors service

Supprimez les ressources Azure de votre projet.

azd down [<layer>] [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd env

Gérer les environnements (par exemple, environnement par défaut, variables d’environnement).

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

Commande pour obtenir une valeur dans l'environnement azd : azd env get-value

Obtient une valeur d’environnement spécifique.

azd env get-value <keyName> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

  • azd env : Gérer les environnements (par exemple, environnement par défaut, variables d’environnement).
  • Retour au début

azd récupérer-valeurs-env

Obtient toutes les valeurs d’environnement.

azd env get-values [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

  • azd env : Gérer les environnements (par exemple, environnement par défaut, variables d’environnement).
  • Retour au début

azd env list

Liste les environnements.

azd env list [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

  • azd env : Gérer les environnements (par exemple, environnement par défaut, variables d’environnement).
  • Retour au début

azd nouvel environnement

Crée un nouvel environnement et le définit comme par défaut.

azd env new <environment> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

  • azd env : Gérer les environnements (par exemple, environnement par défaut, variables d’environnement).
  • Retour au début

azd environnement actualiser

Actualisez les valeurs d’environnement à l’aide d’informations d’une configuration d’infrastructure précédente.

azd env refresh <environment> [flags]

Paramètres

      --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
      --layer string         Provisioning layer to refresh the environment from.

Options héritées des commandes parentes

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

Voir aussi

  • azd env : Gérer les environnements (par exemple, environnement par défaut, variables d’environnement).
  • Retour au début

azd sélectionner environnement

Définit l’environnement par défaut.

azd env select [<environment>] [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

  • azd env : Gérer les environnements (par exemple, environnement par défaut, variables d’environnement).
  • Retour au début

azd env set

Définissez une ou plusieurs valeurs d’environnement.

Synopsis

Définissez une ou plusieurs valeurs d’environnement à l’aide de paires clé-valeur ou en chargeant à partir d’un fichier au format .env.

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

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

  • azd env : Gérer les environnements (par exemple, environnement par défaut, variables d’environnement).
  • Retour au début

azd env set-secret

Définissez un nom comme référence à un secret Key Vault dans l’environnement.

Synopsis

Vous pouvez créer un secret Key Vault ou en sélectionner un existant. Le nom fourni est la clé du fichier .env qui contient la référence secrète au secret Key Vault.

azd env set-secret <name> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

  • azd env : Gérer les environnements (par exemple, environnement par défaut, variables d’environnement).
  • Retour au début

azd extension

Gérer les extensions azd.

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

installation de l'extension azd

Installe les extensions spécifiées.

azd extension install <extension-id> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd extension liste

Répertorier les extensions disponibles.

azd extension list [--installed] [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd extension afficher

Afficher les détails d’une extension spécifique.

azd extension show <extension-id> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd source d'extension

Afficher et gérer les sources d’extension

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd extension source ajouter

Ajouter une source d’extension avec le nom spécifié

azd extension source add [flags]

Paramètres

      --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'

Options héritées des commandes parentes

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

Voir aussi

liste des sources d'extension azd

Répertorier les sources d’extension

azd extension source list [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd supprimer l'extension source

Supprimer une source d’extension avec le nom spécifié

azd extension source remove <name> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

Désinstallation de l'extension azd

Désinstallez les extensions spécifiées.

azd extension uninstall [extension-id] [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

mise à niveau de l'extension azd

Mettre à niveau les extensions spécifiées.

azd extension upgrade [extension-id] [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd hooks

Développez, testez et exécutez des hooks pour un projet.

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd hooks s’exécutent

Exécute le hook spécifié pour le projet et les services.

azd hooks run <name> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd infrastructure

Gérez votre infrastructure en tant que code (IaC).

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd infra generate

Écrivez IaC pour votre projet sur le disque, ce qui vous permet de le gérer manuellement.

azd infra generate [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd init

Initialise une nouvelle application.

azd init [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd mcp

Gérer le serveur MCP (Model Context Protocol). (Alpha)

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

Gérer le consentement de l’outil MCP.

Synopsis

Gérer les règles de consentement pour l’exécution de l’outil MCP.

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

Règles de confiance pour le consentement.

Synopsis

Accordez des règles d’approbation pour les outils et serveurs MCP.

Cette commande crée des règles de consentement qui permettent aux outils MCP de s’exécuter sans demander l’autorisation. Vous pouvez spécifier différents niveaux d’autorisation et étendues pour les règles.

Exemples : Accorder toujours l'autorisation à tous les outils de façon globale azd mcp consent grant --global --permission always

Accorder l’autorisation de projet à un outil spécifique avec une étendue en lecture seule azd mcp accorder l’octroi de consentement --server my-server --tool my-tool --permission project --scope read-only

azd mcp consent grant [flags]

Paramètres

      --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)

Options héritées des commandes parentes

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

Voir aussi

Répertorier les règles de consentement.

Synopsis

Répertoriez toutes les règles de consentement pour les outils MCP.

azd mcp consent list [flags]

Paramètres

      --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)

Options héritées des commandes parentes

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

Voir aussi

Révoquer les règles de consentement.

Synopsis

Révoquer des règles de consentement pour les outils MCP.

azd mcp consent revoke [flags]

Paramètres

      --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)

Options héritées des commandes parentes

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

Voir aussi

exécuter la commande "azd mcp start"

Démarre le serveur MCP.

Synopsis

Démarre le serveur MCP (Model Context Protocol).

Cette commande démarre un serveur MCP qui peut être utilisé par les clients MCP pour accéder aux fonctionnalités azd via l’interface model Context Protocol.

azd mcp start [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

moniteur azd

Surveillez un projet déployé.

azd monitor [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd package

Empaquette le code du projet à déployer sur Azure.

azd package <service> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd pipeline

Gère et configure vos pipelines de déploiement.

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd configuration du pipeline

Configure votre pipeline de déploiement pour se connecter en toute sécurité à Azure. (Bêta)

azd pipeline config [flags]

Paramètres

  -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")

Options héritées des commandes parentes

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

Voir aussi

azd approvisionnement

Provisionnez des ressources Azure pour votre projet.

azd provision [<layer>] [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd publier

Publiez un service dans un registre de conteneurs.

azd publish <service> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd restore

Restaure les dépendances du projet.

azd restore <service> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd show

Affichez des informations sur votre projet et ses ressources.

azd show [resource-name|resource-id] [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

modèle azd

Trouve et affiche les détails du modèle.

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

liste des modèles azd

Affiche la liste des exemples de modèles azd. (Bêta)

azd template list [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd template show (afficher le modèle)

Affiche les détails d’un modèle donné. (Bêta)

azd template show <template> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

source de modèle azd

Affiche et gère les sources de modèles. (Bêta)

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd modèle source ajouter

Ajoute une source de modèle azd avec la clé spécifiée. (Bêta)

Synopsis

La clé peut être n’importe quelle valeur qui identifie de manière unique la source du modèle, avec des valeurs connues étant : https://aka.ms/awesome-azd

azd template source add <key> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd liste des sources de modèles

Liste les sources de modèles azd configurées. (Bêta)

azd template source list [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd modèle source supprimer

Supprime la source de modèle azd spécifiée (Beta).

azd template source remove <key> [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd up

Provisionnez et déployez votre projet sur Azure avec une seule commande.

azd up [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi

azd version

Affiche le numéro de version de l’Azure Developer CLI.

azd version [flags]

Paramètres

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

Options héritées des commandes parentes

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

Voir aussi