Bagikan melalui


Referensi Azure Developer CLI

Artikel ini menjelaskan sintaksis dan parameter untuk berbagai perintah Azure Developer CLI.

azd

Azure Developer CLI (azd) adalah alat sumber terbuka yang membantu onboarding dan mengelola proyek Anda di Azure

Opsi

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

Lihat juga

  • azd add: Tambahkan komponen ke proyek Anda.
  • azd auth: Mengautentikasi dengan Azure.
  • azd completion: Menghasilkan skrip pelengkapan untuk shell.
  • azd config: Mengelola konfigurasi azd (misalnya: langganan Azure default, lokasi).
  • penyebaran azd: Sebarkan kode proyek Anda ke Azure.
  • azd down: Hapus sumber daya Azure proyek Anda.
  • azd env: Mengelola lingkungan (misalnya: lingkungan default, variabel lingkungan).
  • ekstensi azd: Mengelola ekstensi azd.
  • azd hooks: Mengembangkan, menguji, dan menjalankan hook untuk suatu proyek.
  • azd infra: Kelola Infrastruktur sebagai Kode (Infrastructure as Code, IaC) Anda.
  • azd init: Inisialisasi aplikasi baru.
  • azd mcp: Mengelola server Model Context Protocol (MCP). (Alpha)
  • azd monitor: Memantau proyek yang telah didistribusikan.
  • paket azd: Mengemas kode proyek yang akan disebarkan ke Azure.
  • alur azd: Mengelola dan mengonfigurasi alur penyebaran Anda.
  • azd provision: Provisikan sumber daya Azure untuk proyek Anda.
  • azd publish: Menerbitkan layanan ke registri kontainer.
  • azd restore: Mengembalikan dependensi proyek.
  • azd show: Menampilkan informasi tentang proyek Anda dan sumber dayanya.
  • templat azd: Temukan dan lihat detail templat.
  • azd up: Provisikan dan sebarkan proyek Anda ke Azure dengan satu perintah.
  • versi azd: Cetak nomor versi Azure Developer CLI.

azd add

Tambahkan komponen ke proyek Anda.

azd add [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd autentikasi

Autentikasi dengan Azure.

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd auth login

Masuk ke Azure.

Sinopsis

Masuk ke Azure.

Saat dijalankan tanpa argumen apa pun, masuk secara interaktif menggunakan browser. Untuk masuk menggunakan kode perangkat, lewati --use-device-code.

Untuk masuk sebagai perwakilan layanan, berikan --client-id dan --tenant-id serta salah satu dari: --client-secret, --client-certificate, atau --federated-credential-provider.

Untuk masuk menggunakan identitas terkelola, lewati --managed-identity, yang akan menggunakan sistem yang ditetapkan identitas terkelola. Untuk menggunakan identitas terkelola yang ditetapkan pengguna, teruskan --client-id selain --managed-identity dengan id klien dari identitas terkelola yang ditetapkan pengguna yang ingin Anda gunakan.

azd auth login [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

Perintah "azd auth logout" (keluar dari otorisasi)

Keluar dari Azure.

Sinopsis

Keluar dari Azure

azd auth logout [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

penyelesaian azd

Hasilkan skrip penyelesaian shell.

Sinopsis

Hasilkan skrip penyelesaian shell untuk azd.

Perintah penyelesaian memungkinkan Anda menghasilkan skrip pelengkapan otomatis untuk shell Anda, dengan dukungan saat ini untuk bash, zsh, fish, dan PowerShell.

Lihat bantuan setiap sub-komando untuk informasi lebih lanjut tentang cara penggunaan skrip yang dihasilkan.

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

bash penyelesaian azd

Hasilkan skrip penyelesaian bash.

azd completion bash

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd penyelesaian fig

Hasilkan spesifikasi pelengkapan otomatis Fig.

azd completion fig

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

ikan penyelesaian azd

Hasilkan skrip penyelesaian ikan.

azd completion fish

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

powershell penyelesaian azd

Buat skrip penyelesaian PowerShell.

azd completion powershell

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd completion zsh

Hasilkan skrip penyelesaian zsh.

azd completion zsh

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

konfigurasi azd

Mengelola konfigurasi azd (misalnya: langganan Azure default, lokasi).

Sinopsis

Kelola konfigurasi pengguna Azure Developer CLI, yang menyertakan langganan dan lokasi Azure default Anda.

Tersedia sejak azure-dev-cli_0.4.0-beta.1.

Cara term mudah untuk mengonfigurasi azd untuk pertama kalinya adalah dengan menjalankan azd init. Langganan dan lokasi yang Anda pilih akan disimpan dalam file yang config.json terletak di direktori konfigurasi. Untuk mengonfigurasi azd kapan saja setelahnya, Anda akan menggunakan azd config set.

Nilai default direktori konfigurasi adalah:

  • $HOME/.azd di Linux dan macOS
  • %USERPROFILE%.azd di Windows

Direktori konfigurasi dapat ditimpa dengan menentukan jalur dalam variabel lingkungan AZD_CONFIG_DIR.

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd config get

Mendapatkan konfigurasi.

Sinopsis

Mendapatkan konfigurasi di jalur konfigurasi.

Nilai default direktori konfigurasi adalah:

  • $HOME/.azd di Linux dan macOS
  • %USERPROFILE%\.azd pada Windows

Direktori konfigurasi dapat ditimpa dengan menentukan jalur dalam variabel lingkungan AZD_CONFIG_DIR.

azd config get <path> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd config list-alpha

Tampilkan daftar fitur yang tersedia dalam tahap alfa.

azd config list-alpha [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd config reset

Mereset konfigurasi ke default.

Sinopsis

Mengatur ulang semua konfigurasi di jalur konfigurasi.

Nilai default direktori konfigurasi adalah:

  • $HOME/.azd di Linux dan macOS
  • %USERPROFILE%\.azd pada Windows

Direktori konfigurasi dapat ditimpa dengan menentukan jalur dalam variabel lingkungan AZD_CONFIG_DIR ke default.

azd config reset [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd config set

Mengatur konfigurasi.

Sinopsis

Mengatur konfigurasi di jalur konfigurasi.

Nilai default direktori konfigurasi adalah:

  • $HOME/.azd di Linux dan macOS
  • %USERPROFILE%\.azd pada Windows

Direktori konfigurasi dapat ditimpa dengan menentukan jalur dalam variabel lingkungan AZD_CONFIG_DIR.

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

Contoh

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

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

Perintah "azd config show"

Perlihatkan semua nilai konfigurasi.

Sinopsis

Tampilkan semua nilai konfigurasi di jalur konfigurasi.

Nilai default direktori konfigurasi adalah:

  • $HOME/.azd di Linux dan macOS
  • %USERPROFILE%\.azd pada Windows

Direktori konfigurasi dapat ditimpa dengan menentukan jalur dalam variabel lingkungan AZD_CONFIG_DIR.

azd config show [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd config unset (perintah untuk menghapus konfigurasi)

Membatalkan pengaturan konfigurasi.

Sinopsis

Menghapus konfigurasi di jalur konfigurasi.

Nilai default direktori konfigurasi adalah:

  • $HOME/.azd di Linux dan macOS
  • %USERPROFILE%\.azd pada Windows

Direktori konfigurasi dapat ditimpa dengan menentukan jalur dalam variabel lingkungan AZD_CONFIG_DIR.

azd config unset <path> [flags]

Contoh

azd config unset defaults.location

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

penyebaran azd

Sebarkan kode proyek Anda ke Azure.

azd deploy <service> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd tidak aktif

Hapus sumber daya Azure proyek Anda.

azd down [<layer>] [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd env

Kelola lingkungan (misalnya: lingkungan default, variabel lingkungan).

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd env get-value

Dapatkan nilai lingkungan tertentu.

azd env get-value <keyName> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd env dapatkan-nilai

Dapatkan semua nilai lingkungan.

azd env get-values [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd env list (daftar lingkungan azd)

Mencantumkan lingkungan.

azd env list [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd env baru

Buat lingkungan baru dan atur sebagai default.

azd env new <environment> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

penyegaran lingkungan azd

Refresh nilai lingkungan dengan menggunakan informasi dari provisi infrastruktur sebelumnya.

azd env refresh <environment> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

perintah: azd env select

Atur lingkungan default.

azd env select [<environment>] [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd env set

Atur satu atau beberapa nilai lingkungan.

Sinopsis

Atur satu atau beberapa nilai lingkungan menggunakan pasangan kunci-nilai atau dengan memuat dari file berformat .env.

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

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd env atur-rahasia

Tetapkan nama sebagai referensi ke rahasia Key Vault di lingkungan.

Sinopsis

Anda dapat membuat rahasia Key Vault baru atau memilih yang sudah ada. Nama yang disediakan adalah kunci untuk file .env yang menyimpan referensi rahasia ke rahasia Key Vault.

azd env set-secret <name> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

ekstensi azd

Mengelola ekstensi azd.

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

penginstalan ekstensi azd

Menginstal ekstensi yang ditentukan.

azd extension install <extension-id> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd daftar ekstensi

Mencantumkan ekstensi yang tersedia.

azd extension list [--installed] [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd ekstensi tampilkan

Perlihatkan detail untuk ekstensi tertentu.

azd extension show <extension-id> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

sumber ekstensi azd

Menampilkan dan mengelola sumber ekstensi

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd menambahkan sumber ekstensi

Menambahkan sumber ekstensi dengan nama yang ditentukan

azd extension source add [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd daftar sumber ekstensi

Mencantumkan sumber ekstensi

azd extension source list [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd extension source remove (perintah untuk menghapus sumber ekstensi)

Menghapus sumber ekstensi dengan nama yang ditentukan

azd extension source remove <name> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd extension uninstall (perintah untuk mencopot ekstensi)

Hapus instalan ekstensi yang ditentukan.

azd extension uninstall [extension-id] [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

peningkatan ekstensi azd

Tingkatkan ekstensi yang ditentukan.

azd extension upgrade [extension-id] [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

kait azd

Mengembangkan, menguji, dan menjalankan kait untuk proyek.

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd hooks run

Menjalankan hook yang ditentukan untuk proyek dan layanan

azd hooks run <name> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd infra

Kelola Infrastruktur Anda sebagai Kode (IaC).

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd infra generate

Tulis IaC untuk proyek Anda ke disk, memungkinkan Anda mengelolanya secara manual.

azd infra generate [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd init

Menginisialisasi aplikasi baru.

azd init [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd mcp

Mengelola Protokol Konteks Model server (MCP). (Alpha)

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

Mengelola persetujuan alat MCP.

Sinopsis

Mengelola aturan persetujuan untuk eksekusi alat MCP.

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

Memberikan persetujuan aturan kepercayaan.

Sinopsis

Berikan aturan kepercayaan untuk alat dan server MCP.

Perintah ini membuat aturan persetujuan yang memungkinkan alat MCP dijalankan tanpa meminta izin. Anda dapat menentukan tingkat izin dan cakupan yang berbeda untuk aturan.

Contoh: Selalu berikan izin ke semua alat secara global azd mcp consent grant --global --permission always

Berikan izin proyek ke alat tertentu dengan lingkup baca-saja azd mcp consent grant --server my-server --tool my-tool --permission project --scope read-only

azd mcp consent grant [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

Mencantumkan aturan persetujuan.

Sinopsis

Mencantumkan semua aturan persetujuan untuk alat MCP.

azd mcp consent list [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

Mencabut aturan persetujuan.

Sinopsis

Mencabut aturan persetujuan untuk alat MCP.

azd mcp consent revoke [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd mcp start

Memulai server MCP.

Sinopsis

Memulai operasi server Model Context Protocol (MCP).

Perintah ini memulai server MCP yang dapat digunakan oleh klien MCP untuk mengakses fungsionalitas azd melalui antarmuka Protokol Konteks Model.

azd mcp start [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

monitor azd

Memantau proyek yang telah diterapkan.

azd monitor [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

paket azd

Mengemas kode proyek yang akan disebarkan ke Azure.

azd package <service> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

alur azd

Mengelola dan mengonfigurasi alur penyebaran Anda.

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

konfigurasi alur azd

Konfigurasikan alur penyebaran Anda untuk terhubung dengan aman ke Azure. (Beta)

azd pipeline config [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

provisi azd

Memprovisikan sumber daya Azure untuk proyek Anda.

azd provision [<layer>] [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd terbitkan

Menerbitkan layanan ke registri kontainer.

azd publish <service> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

pemulihan azd

Memulihkan dependensi proyek.

azd restore <service> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd show

Tampilkan informasi tentang proyek Anda dan sumber dayanya.

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

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

templat azd

Temukan dan lihat detail templat.

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

daftar templat azd

Perlihatkan daftar sampel templat azd. (Beta)

azd template list [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

Perintah "azd template show" digunakan untuk menampilkan template dalam Azure Developer CLI.

Perlihatkan detail untuk templat tertentu. (Beta)

azd template show <template> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

sumber templat azd

Menampilkan dan mengelola sumber templat. (Beta)

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd template source add (menambahkan sumber template azd)

Menambahkan sumber templat azd dengan kunci yang ditentukan. (Beta)

Sinopsis

Kuncinya bisa berupa nilai apa pun yang secara unik mengidentifikasi sumber templat, dengan nilai terkenal adalah: ・default: Templat default ・awesome-azd: Templat dari https://aka.ms/awesome-azd

azd template source add <key> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

daftar sumber templat azd

Mencantumkan sumber templat azd yang dikonfigurasi. (Beta)

azd template source list [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

hapus sumber template azd

Menghapus sumber templat azd yang ditentukan (Beta)

azd template source remove <key> [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

azd up

Provisikan dan sebarkan proyek Anda ke Azure dengan satu perintah.

azd up [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga

versi azd

Cetak nomor versi Azure Developer CLI.

azd version [flags]

Opsi

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

Opsi yang diwarisi dari perintah induk

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

Lihat juga