All apps/Microsoft Power Platform CLI

Microsoft Power Platform CLI

pac

A simple, one-stop developer CLI that empowers developers and ISVs to perform various operations in Microsoft Power Platform.

Runs as pac|macOS, Linux, Windows|learn.microsoft.com

Command form

ai-draft · 5 tasks · 28 fields

Authenticate and move Dataverse solutions in and out of an environment. Secrets (passwords, client secrets, certificates) are left out; other pac commands are not covered.

Opens the form; the finished command lands at your prompt, unrun
otty gui pac

pac auth create

Create auth profile

Sign in interactively or with device code.

Create auth profileExample values, fixed in this page — nothing here reaches a terminal
Basic
Profile name
string
Environment URL*
string
Advanced
Cloud
string
Device code sign-in
--deviceCode
TasksEach one presets the form for one job
Sign in
nameurlclouddevice_code
ParametersOnly these flags are editable in the form
Profile name
string
--name-n
Environment URL
string
--url-u
Default environment
string
--environment
Kind
string
--kind-k
Tenant ID
string
--tenant-t
Cloud
string
--cloudPublicPreprodTestUsGovUsGovHighUsGovDodChina
Device code sign-in
boolean
--deviceCode

pac solution export

Export a solution
Export a solutionExample values, fixed in this page — nothing here reaches a terminal
Basic
Solution name*
string
Output zip path
file
Managed
--managed
Asynchronous
--async
Overwrite existing zip
--overwrite
TasksEach one presets the form for one job
Export
namepathmanagedasyncoverwrite
ParametersOnly these flags are editable in the form
Solution name
string
--name-n
Output zip path
path
--path-p
Managed
boolean
--managed-m
Asynchronous
boolean
--async-a
Overwrite existing zip
boolean
--overwrite

pac solution import

Import a solution
Import a solutionExample values, fixed in this page — nothing here reaches a terminal
Basic
Solution zip*
file
Activate plug-ins
--activate-plugins
Publish after import
--publish-changes
Asynchronous
--async
TasksEach one presets the form for one job
Import
pathactivate_pluginspublish_changesasync
ParametersOnly these flags are editable in the form
Solution zip
path
--path-p
Activate plug-ins
boolean
--activate-plugins
Force overwrite of unmanaged customizations
boolean
--force-overwrite-f
Publish after import
boolean
--publish-changes
Asynchronous
boolean
--async-a
Convert to managed
boolean
--convert-to-managed

pac solution unpack

Unpack a solution
Unpack a solutionExample values, fixed in this page — nothing here reaches a terminal
Basic
Solution zip*
file
Target folder*
directory
Package type
string
TasksEach one presets the form for one job
Unpack
zipfilefolderpackagetype
ParametersOnly these flags are editable in the form
Solution zip
path
--zipfile-z
Target folder
path
--folder-f
Package type
string
--packagetype-pUnmanagedManagedBoth
Allow writes
boolean
--allowWrite
Allow deletes
boolean
--allowDelete
Overwrite read-only files
boolean
--clobber-c

pac solution pack

Pack a solution
Pack a solutionExample values, fixed in this page — nothing here reaches a terminal
Basic
Solution zip*
file
Source folder*
directory
Package type
string
Overwrite read-only files
--clobber
TasksEach one presets the form for one job
Pack
zipfilefolderpackagetypeclobber
ParametersOnly these flags are editable in the form
Solution zip
path
--zipfile-z
Source folder
path
--folder-f
Package type
string
--packagetype-pUnmanagedManagedBoth
Overwrite read-only files
boolean
--clobber-c
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed pac against its version. A form that does not match your version is not offered.