편집

다음을 통해 공유


pac pages

Commands for working with Power Pages website.

Note

With pac cli version 1.32, the pac powerpages command was changed to pac pages. With pac cli version 1.27, the pac paportal command was changed to pac powerpages. Both powerpages and paportal will continue to work, but we recommend using pages going forward.

See the following resources about using Power Platform CLI with Power Pages:

Commands

Command Description
pac pages bootstrap-migrate Migrates HTML code from bootstrap V3 to V5.
pac pages download Download Power Pages website content from the current Dataverse environment.
pac pages list List all Power Pages websites from the current Dataverse environment.
pac pages migrate-datamodel Manage data model migration for your Power Pages website.
pac pages upload Upload Power Pages website content to current Dataverse environment.

pac pages bootstrap-migrate

Migrates HTML code from bootstrap V3 to V5.

Required Parameters for pages bootstrap-migrate

--path -p

Path of website content.

pac pages download

Download Power Pages website content from the current Dataverse environment.

Example

pac pages download --path "C:\portals" --webSiteId f88b70cc-580b-4f1a-87c3-41debefeb902

Required Parameters for pages download

--path -p

Path where the Power Pages website content is downloaded

--webSiteId -id

Power Pages website ID to download

Optional Parameters for pages 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.

--excludeEntities -xe

Comma separated list of entity logical names to exclude downloading

--includeEntities -ie

Download only the entities specified for this argument using comma separated entity logical names.

--modelVersion -mv

Power Pages website data model version to download.

--overwrite -o

Power Pages website content to overwrite

This parameter requires no value. It's a switch.

Remarks

More information: Download portals content

pac pages list

List all Power Pages websites from the current Dataverse environment.

Optional Parameters for pages 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.

--verbose -v

Enables verbose mode to provide more details.

This parameter requires no value. It's a switch.

Remarks

More information: List available portals

pac pages migrate-datamodel

Manage data model migration for your Power Pages website.

Required Parameters for pages migrate-datamodel

--webSiteId -id

Power Pages website ID to update the site.

Optional Parameters for pages migrate-datamodel

--checkMigrationStatus -s

To check the status of the site with migration in progress.

This parameter requires no value. It's a switch.

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

--mode -m

Choose from configurationData / configurationDataRefrences / all - based on your requirement.

--portalId -pid

Portal ID for the website under migration.

--revertToStandardDataModel -r

Revert site from enhanced to standard data model.

This parameter requires no value. It's a switch.

--siteCustomizationReportPath -p

Local path to store the site customization report.

--updateDataModelVersion -u

Update data model version for the site once the data is migrated successfully.

This parameter requires no value. It's a switch.

pac pages upload

Upload Power Pages website content to current Dataverse environment.

Example

pac pages upload --path "C:\portals\starter-portal"

Required Parameters for pages upload

--path -p

Path from where the Power Pages website content is uploaded.

Optional Parameters for pages upload

--deploymentProfile -dp

Deployment profile name to be used. Defaults to 'default'

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

--forceUploadAll -f

Upload all Power Pages website content to the current Dataverse environment.

This parameter requires no value. It's a switch.

--modelVersion -mv

Power Pages website data model version to upload.

Remarks

More information:

See also

Microsoft Power Platform CLI Command Groups
Microsoft Power Platform CLI overview