From c4f88eebf9d10770d85db1ecf4ad7c5c927e7689 Mon Sep 17 00:00:00 2001 From: "Oleksandr Olashyn (dancingwithcrm)" Date: Mon, 18 Nov 2024 21:42:27 -0500 Subject: [PATCH] Update cli command to correspond to latest pac cli syntax --- CHANGELOG.md | 6 ++++++ README.md | 6 ++++++ package.json | 2 +- src/Helpers/Commands.ts | 10 +++++----- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33dfcc5..21bf1b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to the Power Pages Helper extension will be documented in this file. +## [1.4.1] + +### Changed + +- Switch powerpages to pages in CLI commands + ## [1.4.0] ### Changed diff --git a/README.md b/README.md index 19c4554..19fea6d 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,12 @@ Calling out known issues can help limit users opening duplicate issues against y ## Release Notes +### 1.4.1 + +#### Changed + +- Switch powerpages to pages in CLI commands + ### 1.4.0 #### Changed diff --git a/package.json b/package.json index 182e26b..06c7415 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Power Pages Helper", "description": "Set of commands to simplify work with Power Platform CLI for Power Pages/Power Apps Portals", "publisher": "oleksandr-olashyn", - "version": "1.4.0", + "version": "1.4.1", "engines": { "vscode": "^1.55.0" }, diff --git a/src/Helpers/Commands.ts b/src/Helpers/Commands.ts index dec7b4f..a5f7eaa 100644 --- a/src/Helpers/Commands.ts +++ b/src/Helpers/Commands.ts @@ -1,6 +1,6 @@ export class Commands { public static PortalList() { - return 'pac powerpages list'; + return 'pac pages list'; } public static DownloadPortal(localPath: string, websiteId: string, overwritePortal: string | undefined, @@ -9,18 +9,18 @@ export class Commands { const includeEntities = includedEntities ? `-ie "${includedEntities}"`: ''; const excludeEntities = excludedEntities ? `-xe "${excludedEntities}"`: ''; const mVersion = modelVersion ? `-mv "${modelVersion}"`: ''; - return `pac powerpages download -p "${localPath}" -id ${websiteId} ${overwriteText} ${includeEntities} ${excludeEntities} ${mVersion}`; + return `pac pages download -p "${localPath}" -id ${websiteId} ${overwriteText} ${includeEntities} ${excludeEntities} ${mVersion}`; } public static UploadPortal(localPath: string, deploymentProfile: string | undefined) { const command = deploymentProfile - ? `pac powerpages upload -p "${localPath}" --deploymentProfile "${deploymentProfile}"` - : `pac powerpages upload -p "${localPath}"`; + ? `pac pages upload -p "${localPath}" --deploymentProfile "${deploymentProfile}"` + : `pac pages upload -p "${localPath}"`; return command; } public static BootstrapMigrate(localPath: string){ - return `pac powerpages bootstrap-migrate -p "${localPath}"`; + return `pac pages bootstrap-migrate -p "${localPath}"`; } public static AuthList() {