Sdílet prostřednictvím


Reference k Azure Developer CLI

Tento článek vysvětluje syntaxi a parametry pro různé příkazy Azure Developer CLI.

azd

Azure Developer CLI (azd) je opensourcový nástroj, který pomáhá při onboardingu a správě projektu v Azure.

Možnosti

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

Viz také

  • azd add: Přidejte komponentu do projektu.
  • ověřování azd: Ověřování pomocí Azure
  • azd completion: Vygenerujte skripty pro automatické dokončování v shellu.
  • konfigurace azd: Správa konfigurací AZD (např. výchozí předplatné Azure, umístění).
  • azd nasaďte: Nasaďte kód vašeho projektu do Azure.
  • azd down: Odstraňte prostředky Azure vašeho projektu.
  • azd env: Správa prostředí (např. výchozí prostředí, proměnné prostředí).
  • rozšíření azd: Správa rozšíření azd.
  • azd hooky: Vývoj, testování a spouštění hooků pro projekt.
  • azd infra: Správa infrastruktury jako kódu (IaC).
  • azd init: Inicializace nové aplikace.
  • azd mcp: Správa serveru MCP (Model Context Protocol). (Alfa)
  • AZD monitor: Sledovat nasazený projekt.
  • balíček azd: Zabalí kód projektu, který se má nasadit do Azure.
  • kanál azd: Správa a konfigurace kanálů nasazení
  • poskytnutí Azure: Poskytnutí prostředků Azure pro váš projekt.
  • azd publish: Publikovat službu do registru kontejnerů.
  • azd restore: Obnoví závislosti projektu.
  • azd show: Zobrazí informace o projektu a jejích zdrojích.
  • šablona azd: Vyhledání a zobrazení podrobností o šabloně
  • azd up: Zřízení a nasazení projektu do Azure pomocí jednoho příkazu
  • verze azd: Vytiskněte číslo verze Azure Developer CLI.

azd přidat

Přidejte do projektu komponentu.

azd add [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

ověřování azd

Ověřování pomocí Azure

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd auth login

Přihlásí se k Azure.

Synopse

Přihlásí se k Azure.

Při spuštění bez argumentů se přihlaste interaktivně pomocí prohlížeče. Pokud se chcete přihlásit pomocí kódu zařízení, předejte --use-device-code.

Pokud se chcete přihlásit jako instanční objekt, předejte --client-id a --tenant-id a také jeden z těchto: --client-secret, --client-certificate nebo --federated-credential-provider.

Pokud se chcete přihlásit pomocí spravované identity, předejte --managed-identity, která bude používat spravovanou identitu přiřazenou systémem. Pokud chcete použít spravovanou identitu přiřazenou uživatelem, předejte kromě identity --managed-identity id klienta spravované identity přiřazené uživatelem, kterou chcete použít.

azd auth login [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

odhlášení ověřování azd

Odhlaste se z Azure.

Synopse

Odhlášení z Azure

azd auth logout [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

dokončení azd

Vygenerujte skripty pro dokončování příkazů shellu.

Synopse

Vygenerujte skripty pro automatické doplňování příkazů pro azd.

Příkaz pro doplňování umožňuje generovat skripty automatického dokončování pro váš shell, aktuálně podporuje Bash, Zsh, Fish a PowerShell.

Podrobnosti o tom, jak používat vygenerovaný skript, najdete v nápovědě k jednotlivým dílčím příkazům.

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd doplnění příkazů Bash

Vygenerujte skript pro dokončování Bash.

azd completion bash

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd dokončení ryby

Vygenerujte skript pro doplňování ryb.

azd completion fish

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd dokončení PowerShell

Vygenerujte skript pro dokončování PowerShellu.

azd completion powershell

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd doplňování zsh

Vygenerujte skript dokončování zsh.

azd completion zsh

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

konfigurace azd

Správa konfigurací AZD (např. výchozí předplatné Azure, umístění)

Synopse

Spravujte konfiguraci uživatele Azure Developer CLI, která zahrnuje vaše výchozí předplatné a umístění Azure.

K dispozici od azure-dev-cli_0.4.0-beta.1.

Nejjednodušší způsob, jak nakonfigurovat azd poprvé, je spustit azd init. Vybrané předplatné a umístění budou uloženy v config.json souboru umístěném v konfiguračním adresáři. Ke konfiguraci azd kdykoli později použijete azd config set.

Výchozí hodnota konfiguračního adresáře je:

  • $HOME/.azd v Linuxu a macOS
  • %USERPROFILE%.azd ve Windows

Konfigurační adresář lze přepsat zadáním cesty v proměnné prostředí AZD_CONFIG_DIR.

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Azd config get

Získá konfiguraci.

Synopse

Získá konfiguraci v cestě konfigurace.

Výchozí hodnota konfiguračního adresáře je:

  • $HOME/.azd v Linuxu a macOS
  • %USERPROFILE%\.azd ve Windows

Konfigurační adresář lze přepsat zadáním cesty v proměnné prostředí AZD_CONFIG_DIR.

azd config get <path> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd config list-alpha

Zobrazí seznam dostupných funkcí ve fázi alfa.

azd config list-alpha [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Resetování konfigurace azd

Obnoví výchozí konfiguraci.

Synopse

Obnoví veškerou konfiguraci v cestě konfigurace.

Výchozí hodnota konfiguračního adresáře je:

  • $HOME/.azd v Linuxu a macOS
  • %USERPROFILE%\.azd ve Windows

Konfigurační adresář lze přepsat zadáním cesty v proměnné prostředí AZD_CONFIG_DIR do výchozího nastavení.

azd config reset [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Konfigurační sada azd

Nastaví konfiguraci.

Synopse

Nastaví konfiguraci v cestě konfigurace.

Výchozí hodnota konfiguračního adresáře je:

  • $HOME/.azd v Linuxu a macOS
  • %USERPROFILE%\.azd ve Windows

Konfigurační adresář lze přepsat zadáním cesty v proměnné prostředí AZD_CONFIG_DIR.

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

Příklady

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

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Azd config show

Zobrazí všechny hodnoty konfigurace.

Synopse

Zobrazí všechny hodnoty konfigurace v cestě konfigurace.

Výchozí hodnota konfiguračního adresáře je:

  • $HOME/.azd v Linuxu a macOS
  • %USERPROFILE%\.azd ve Windows

Konfigurační adresář lze přepsat zadáním cesty v proměnné prostředí AZD_CONFIG_DIR.

azd config show [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Konfigurace azd unset

Zruší konfiguraci.

Synopse

Odebere konfiguraci v cestě konfigurace.

Výchozí hodnota konfiguračního adresáře je:

  • $HOME/.azd v Linuxu a macOS
  • %USERPROFILE%\.azd ve Windows

Konfigurační adresář lze přepsat zadáním cesty v proměnné prostředí AZD_CONFIG_DIR.

azd config unset <path> [flags]

Příklady

azd config unset defaults.location

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

nasazení azd

Nasaďte kód projektu do Azure.

azd deploy <service> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd dolů

Odstraňte prostředky projektu Azure.

azd down [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd env

Správa prostředí (např. výchozí prostředí, proměnné prostředí)

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

příkaz azd env get-value

Získejte konkrétní hodnotu prostředí.

azd env get-value <keyName> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd env get-values (získat hodnoty)

Získejte všechny hodnoty prostředí.

azd env get-values [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd seznam prostředí

Zobrazení seznamu prostředí

azd env list [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd env nové

Vytvořte nové prostředí a nastavte ho jako výchozí.

azd env new <environment> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd env obnovit

Aktualizujte hodnoty prostředí pomocí informací z předchozího zřízení infrastruktury.

azd env refresh <environment> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd env select

Nastavte výchozí prostředí.

azd env select <environment> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Použijte příkaz "azd env set" pro nastavení proměnného prostředí.

Nastavte jednu nebo více hodnot prostředí.

Synopse

Nastavte jednu nebo více hodnot prostředí pomocí párů klíč-hodnota nebo načtením ze souboru ve formátu .env.

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

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd env set-secret (nastaví tajný klíč)

Nastavte název jako odkaz na tajemství služby Key Vault v prostředí.

Synopse

Můžete buď vytvořit nový tajný klíč služby Key Vault, nebo vybrat existující. Zadaný název je klíč pro soubor .env, který obsahuje odkaz na tajný kód služby Key Vault.

azd env set-secret <name> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

rozšíření azd

Správa rozšíření azd

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Nainstalovat rozšíření azd

Nainstaluje zadaná rozšíření.

azd extension install <extension-name> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

seznam rozšíření azd

Seznam dostupných rozšíření

azd extension list [--installed] [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd rozšíření zobrazit

Zobrazení podrobností pro konkrétní rozšíření

azd extension show <extension-name> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

zdroj rozšíření azd

Zobrazení a správa zdrojů rozšíření

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

přidat zdroj rozšíření azd

Přidání zdroje rozšíření se zadaným názvem

azd extension source add [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

seznam zdrojů rozšíření azd

Výpis zdrojů rozšíření

azd extension source list [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Odebrání zdroje rozšíření azd

Odebrat zdroj rozšíření se zadaným názvem

azd extension source remove <name> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

odinstalace rozšíření azd

Odinstalujte zadaná rozšíření.

azd extension uninstall <extension-name> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

aktualizace rozšíření azd

Upgradujte zadaná rozšíření.

azd extension upgrade <extension-name> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

háky azd

Vývoj, testování a spouštění háků pro projekt

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd háky běh

Spustí zadaný hook pro projekt a služby.

azd hooks run <name> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd infra

Správa infrastruktury jako kódu (IaC).

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Generování infrastruktury pomocí azd

Uložte IaC vašeho projektu na disk, což vám umožní jej spravovat ručně.

azd infra generate [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd init

Inicializace nové aplikace

azd init [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd mcp

Správa serveru MCP (Model Context Protocol). (Alfa)

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Správa souhlasu nástroje MCP

Synopse

Správa pravidel souhlasu pro provádění nástrojů MCP

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Udělte pravidla pro důvěru souhlasu.

Synopse

Udělte pravidla důvěryhodnosti pro nástroje a servery MCP.

Tento příkaz vytvoří pravidla souhlasu, která umožňují spuštění nástrojů MCP bez výzvy k zadání oprávnění. Pro pravidla můžete zadat různé úrovně oprávnění a obory.

Příklady: Globální udělení oprávnění všem nástrojům:

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]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Vypsat pravidla souhlasu

Synopse

Vypíše všechna pravidla souhlasu pro nástroje MCP.

azd mcp consent list [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Odvolat pravidla souhlasu.

Synopse

Odvolá pravidla souhlasu pro nástroje MCP.

azd mcp consent revoke [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd mcp start

Spustí server MCP.

Synopse

Spustí server MCP (Model Context Protocol).

Tento příkaz spustí server MCP, který může být využíván klienty MCP pro přístup k funkcionalitě azd prostřednictvím rozhraní tohoto Model Context Protocol.

azd mcp start [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

monitorování azd

Monitorujte nasazený projekt.

azd monitor [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

balíček azd

Zabalí kód projektu, který se má nasadit do Azure.

azd package <service> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

kanál azd

Správa a konfigurace kanálů nasazení

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

konfigurace kanálu azd

Nakonfigurujte kanál nasazení tak, aby se bezpečně připojil k Azure. (Beta verze)

azd pipeline config [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

zřízení azd

Zřiďte prostředky Azure pro váš projekt.

azd provision [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

publikování azd

Publikujte službu do registru kontejneru.

azd publish <service> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

obnovení azd

Obnoví závislosti projektu.

azd restore <service> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd show

Zobrazí informace o projektu a jejích zdrojích.

azd show [resource name or ID] [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

šablona azd

Vyhledání a zobrazení podrobností šablony

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

seznam šablon azd

Zobrazit seznam ukázkových šablon azd (Beta verze)

azd template list [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

šablona azd show

Umožňuje zobrazit podrobnosti pro danou šablonu. (Beta verze)

azd template show <template> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

zdroj šablony azd

Umožňuje zobrazit a spravovat zdroje šablon. (Beta verze)

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Příkaz "azd template source add"

Přidá zdroj šablony azd se zadaným klíčem. (Beta verze)

Synopse

Klíč může být libovolná hodnota, která jednoznačně identifikuje zdroj šablony s dobře známými hodnotami: ·default: Výchozí šablony ·awesome-azd: Templates from https://aka.ms/awesome-azd

azd template source add <key> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

seznam zdrojů šablony azd

Zobrazí seznam nakonfigurovaných zdrojů šablon azd. (Beta verze)

azd template source list [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

Odebrání zdroje šablony azd

Odebere zadaný zdroj šablony AZD (beta verze).

azd template source remove <key> [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

azd nahoru

Zřiďte a nasaďte projekt do Azure jedním příkazem.

azd up [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také

verze azd

Vytiskněte číslo verze Azure Developer CLI.

azd version [flags]

Možnosti

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

Možnosti zděděné z nadřazených příkazů

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

Viz také