共用方式為


start 命令

使用現有的組態檔啟動資料 API 產生器執行階段。

語法

dab start [options]

快速瀏覽

Option 總結
-c, --config 使用特定的組態檔 (預設為 dab-config.json 或環境特定檔案 (如果有的話)
--LogLevel <level> 指定記錄等級作為提供的值。
--no-https-redirect 停用自動 HTTP→HTTPS 重新導向
--verbose 將記錄層級設定為 Information
--help 顯示說明畫面。
--version 顯示版本資訊。

-c, --config

組態檔的路徑。 預設為 dab-config.json 除非 dab-config.<DAB_ENVIRONMENT>.json 存在,其中 DAB_ENVIRONMENT 是環境變數。

Example

dab start \
  --config ./settings/dab-config.json

--LogLevel <level>

指定記錄等級作為提供的值。 關於可能的數值,請參見: https://go.microsoft.com/fwlink/?linkid=2263106

Example

dab start \
  --LogLevel Warning

--no-https-redirect

停用自動 HTTP→HTTPS 重新導向。

Example

dab start \
  --no-https-redirect

--verbose

將最低日誌層次設定為 Information

Example

dab start \
  --verbose

--help

顯示說明畫面。

Example

dab start --help

--version

顯示版本資訊。

Example

dab start --version