(預告)用於使用模型驅動應用程式的指令。
Commands
| Command | Description |
|---|---|
| pac model genpage download | (預告)從模型驅動的應用程式中拉取產生的頁面。 |
| pac model genpage generate-types | (預告)為資料來源產生 TypeScript 架構定義 |
| pac model genpage list | (預告)列出指定模型驅動應用程式中所有產生的頁面。 |
| pac model genpage transpile | (預告)將帶有執行時型別的 TypeScript 檔案轉譯,用於測試與除錯 |
| pac model genpage upload | (預告)將生成頁面上傳並發佈到模型驅動的應用程式。 |
| pac model list | (預告)列出環境中所有模型驅動應用程式。 |
pac model genpage download
(預告)從模型驅動的應用程式中拉取產生的頁面。
所需參數 model genpage download
--app-id
模型驅動應用程式的 ID。
可選參數 model genpage download
--environment
-env
指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。
--output-directory
-o
目錄用來儲存被拉取的頁面。 預設為目前目錄。
--page-id
要拉取的頁面識別碼清單,並用逗號分隔。
pac model genpage generate-types
(預告)為資料來源產生 TypeScript 架構定義
所需參數 model genpage generate-types
--data-sources
使用資料來源的逗號分隔清單(例如「帳戶、潛在客戶、聯絡人」)。
可選參數 model genpage generate-types
--environment
-env
指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。
--output-file
-o
儲存產生的 TypeScript 架構檔案的路徑(預設為 RuntimeTypes.ts)
pac model genpage list
(預告)列出指定模型驅動應用程式中所有產生的頁面。
所需參數 model genpage list
--app-id
模型驅動應用程式的 ID。
可選參數 model genpage list
--environment
-env
指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。
pac model genpage transpile
(預告)將帶有執行時型別的 TypeScript 檔案轉譯,用於測試與除錯
所需參數 model genpage transpile
--code-file
包含頁面代碼的檔案路徑。
可選參數 model genpage transpile
--data-sources
使用資料來源的逗號分隔清單(例如「帳戶、潛在客戶、聯絡人」)。
--environment
-env
指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。
--output-file
儲存轉譯後 JavaScript 輸出的路徑(預設為 <input>.compiled.js)
pac model genpage upload
(預告)將生成頁面上傳並發佈到模型驅動的應用程式。
所需參數 model genpage upload
--app-id
模型驅動應用程式的 ID。
--code-file
包含頁面代碼的檔案路徑。
可選參數 model genpage upload
--add-to-sitemap
將該頁面加入應用程式的網站地圖導覽。
此參數不需要任何值。 這是一個開關。
--agent-message
代理人的回覆訊息。
--compiled-code-file
包含已編譯 JavaScript 程式碼的檔案路徑。 若未提供,TypeScript 將自動轉譯為 JavaScript。
--data-sources
使用資料來源的逗號分隔清單(例如「帳戶、潛在客戶、聯絡人」)。
--environment
-env
指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。
--model
用於產生該頁面的 AI 模型(例如 'claude-3-5-sonnet-20241022')。
--name
-n
頁面名稱。
--page-id
頁面的 ID 要更新。 若未提供,將建立新頁面。
--prompt
產生此頁面的使用者提示。
pac model list
(預告)列出環境中所有模型驅動應用程式。
可選參數 model list
--environment
-env
指定目標 Dataverse。 值可以是 Guid 或絕對 https URL。 如果未指定,則會使用為目前驗證設定檔選取的作用中組織。
另請參閱
Microsoft Power Platform CLI 命令群組
Microsoft Power Platform CLI 概觀