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

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

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

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 [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 get-values

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

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

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

Mengelola pengaturan lingkungan Anda.

azd env set <key> <value> [flags]

Opsi

      --docs                 Opens the documentation for azd env set in your web browser.
  -e, --environment string   The name of the environment to use.
  -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 set-secret

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

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

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 [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             Do not use latest Deployment State (bicep only).
      --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

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