Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
(Preview) Commands for working with model-driven apps.
Commands
| Command | Description |
|---|---|
| pac model genpage download | (Preview) Pull generated pages from a model-driven app. |
| pac model genpage generate-types | (Preview) Generates TypeScript schema definitions for data sources |
| pac model genpage list | (Preview) Lists all generated pages in the specified model-driven app. |
| pac model genpage transpile | (Preview) Transpiles a TypeScript file with runtime types for testing and debugging |
| pac model genpage upload | (Preview) Upload and publish a generated page to a model-driven app. |
| pac model list | (Preview) Lists all model-driven apps in the environment. |
pac model genpage download
(Preview) Pull generated pages from a model-driven app.
Required Parameters for model genpage download
--app-id
The ID of the model-driven app.
Optional Parameters for model genpage download
--environment -env
Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
--output-directory -o
Directory to save pulled pages. Defaults to current directory.
--page-id
Comma-separated list of page IDs to pull.
pac model genpage generate-types
(Preview) Generates TypeScript schema definitions for data sources
Required Parameters for model genpage generate-types
--data-sources
Comma-separated list of data sources used (e.g., 'account,lead,contact').
Optional Parameters for model genpage generate-types
--environment -env
Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
--output-file -o
Path to save the generated TypeScript schema file (defaults to RuntimeTypes.ts)
pac model genpage list
(Preview) Lists all generated pages in the specified model-driven app.
Required Parameters for model genpage list
--app-id
The ID of the model-driven app.
Optional Parameters for model genpage list
--environment -env
Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
pac model genpage transpile
(Preview) Transpiles a TypeScript file with runtime types for testing and debugging
Required Parameters for model genpage transpile
--code-file
Path to the file containing the page code.
Optional Parameters for model genpage transpile
--data-sources
Comma-separated list of data sources used (e.g., 'account,lead,contact').
--environment -env
Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
--output-file
Path to save the transpiled JavaScript output (defaults to <input>.compiled.js)
pac model genpage upload
(Preview) Upload and publish a generated page to a model-driven app.
Required Parameters for model genpage upload
--app-id
The ID of the model-driven app.
--code-file
Path to the file containing the page code.
Optional Parameters for model genpage upload
--add-to-sitemap
Add the page to the app's sitemap navigation.
This parameter requires no value. It's a switch.
--agent-message
The agent's response message.
--compiled-code-file
Path to the file containing the compiled JavaScript code. If not provided, TypeScript will be automatically transpiled to JavaScript.
--data-sources
Comma-separated list of data sources used (e.g., 'account,lead,contact').
--environment -env
Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
--model
The AI model used to generate the page (e.g., 'claude-3-5-sonnet-20241022').
--name -n
The name of the page.
--page-id
The ID of the page to update. If not provided, a new page will be created.
--prompt
The user prompt that generated this page.
pac model list
(Preview) Lists all model-driven apps in the environment.
Optional Parameters for model list
--environment -env
Specifies the target Dataverse. The value may be a Guid or absolute https URL. When not specified, the active organization selected for the current auth profile will be used.
See also
Microsoft Power Platform CLI Command Groups
Microsoft Power Platform CLI overview