M365Con 2027 – free online conference · 11–22 Jan 2027 · 120 sessions m365con.net

Power Platform CLI

Product

A command-line tool for developing, packaging and deploying Power Platform components.

◆ PRODUCTPower Platform CLIM365.FM
Title graphic: Power Platform CLI (Product)

Relationships

Power Platform CLI is a developer tool by Microsoft and part of Power Platform.

Power Platform CLI is one of the topics of Victor Dantas.

Description

Power Platform CLI, also called PAC CLI or simply pac, is a command-line tool for developing, packaging and deploying Power Platform components. It was developed by Microsoft, is classed as a developer tool and is part of Power Platform. The knowledge base lists it as free of charge. Instead of working through the portal, developers and administrators issue commands, so that tasks such as packing solutions or managing environments can be scripted and repeated.

The main purpose of the tool is to replace manual, click-heavy steps with scripted ones. This matters most when solutions move between development, test and production environments. The episode "Build Reusable Components with Power Platform CLI" says that Power Platform chaos across dev, test and prod is not inevitable and that PAC CLI turns fragile manual moves into repeatable DevOps. It names scripted solution packaging, versioning, dependency checks and plug-in registration as areas where the tool helps. It also recommends isolating authentication per tenant, packing managed solutions with all their references, and automating plug-in deployments. According to the episode, the intended results are predictable migrations, fewer "works in dev" surprises and cleaner rollbacks.

Because pac runs on the command line, it fits naturally into build and release pipelines. The episode "Set Up Power Platform ALM with GitHub Actions" describes a source, build, test and deploy flow in which solutions are kept in Git in unpacked form using PAC CLI, so that pull requests produce readable differences. It suggests committing both managed (release) and unmanaged (dev) exports, tagging them with the solution version, and storing a configuration folder per environment for environment variables and connection reference mappings. In the build stage, GitHub Actions use PAC CLI to unpack and pack solutions, run Solution Checker, generate a dependency report and publish artifacts such as a managed solution file. The same episode advises using service principals for deployments rather than individual people, for consistency and traceability.

PAC CLI also appears in testing and deployment guidance. "Automated Testing for Power Apps and Dataverse" mentions it as a native tool for automating deployments and triggering tests within CI/CD pipelines, alongside third-party tools such as EasyRepro for end-to-end tests that mimic real user actions. The episode explains that automated tests in a pipeline give fast feedback and support quality gates, meaning checkpoints that an app must pass before moving to the next stage. "Build Fusion Apps with Power Apps and Azure Functions" lists packaging apps with the Power Platform CLI among its practices for deploying fusion development solutions, next to source control with GitHub, CI/CD pipelines in Azure DevOps and securing APIs with Azure API Management.

The episode "Dataverse Business Skills for Scalable Power Platform Solutions" compares PAC CLI with two other tools, MCP Server and the Python SDK, as options for working with Dataverse. It presents each tool as having its own strengths and suggests choosing according to need. MCP Server is described there as a natural language interface for inserting, updating and searching data without writing code, which contrasts with the command-driven, scriptable approach of pac.

Typical decisions around PAC CLI involve how to structure solutions in source control, which authentication method to use in pipelines, and how to separate managed and unmanaged artifacts across environments. The tool does not replace a pipeline platform; the episodes position it as the component that performs Power Platform-specific steps inside systems such as Azure DevOps or GitHub Actions. Official documentation for the tool is published on Microsoft Learn in the developer section of the Power Platform documentation.

Overview compiled with AI from M365.FM episodes and the facts on this page. You can improve it with the edit button below.

TypeProduct
Also known asPAC CLI, pac
DocumentationPower Platform CLI – Microsoft Learn learn.microsoft.com
Licencefree

Sessions on this topic (2)

Event sessions on Power Platform CLI:

Key points about Power Platform CLI

Key points about Power Platform CLI from the episodes, each with its source episode:

Episodes about Power Platform CLI

Episodes in which Power Platform CLI is discussed:

Timeline of episodes about Power Platform CLI

Articles about Power Platform CLI (4)

Articles in which Power Platform CLI is a topic:

Frequently asked questions

Questions marked with AI were written with AI from the facts on this page.

What is Power Platform CLI used for? (AI)

It is used to develop, package and deploy Power Platform components from the command line. The episodes describe tasks such as packing and unpacking solutions, versioning, dependency checks and plug-in registration.

Is PAC CLI the same as Power Platform CLI? (AI)

Yes. PAC CLI and pac are alternative names for the Power Platform CLI, a free developer tool from Microsoft that is part of Power Platform.

How does PAC CLI fit into CI/CD pipelines? (AI)

According to the episodes, it runs inside Azure DevOps or GitHub Actions to unpack and pack solutions, support Solution Checker runs and dependency reports, and automate deployments and test triggers.

Why use PAC CLI instead of the maker portal for deployment?

The portal is good for building, but clicking is fragile for repeatable releases. PAC CLI scripts packaging, versioning and dependency checks so the same steps run for dev, QA and prod with traceable logs. · From the episode: Build Reusable Components with Power Platform CLI

What are PAC CLI auth profiles?

They are named connections to a tenant or environment, created with pac auth create and switched with pac auth select. Isolating auth per tenant lowers the risk of deploying to the wrong environment. · From the episode: Build Reusable Components with Power Platform CLI

How do you verify the environment before running PAC CLI commands?

Run dry-run checks such as pac org who and pac solution list first. They show which organization you are connected to, so you can confirm the target before touching anything. · From the episode: Build Reusable Components with Power Platform CLI

How does PAC CLI help with solution packaging?

You initialize a solution repo, add references to apps, flows, plug-ins and web resources, and pack a managed solution. Explicit references prevent missing component surprises and make migrations predictable. · From the episode: Build Reusable Components with Power Platform CLI

Can PAC CLI work alongside the maker portal?

Yes. The episode recommends running them side by side: keep the portal for day-to-day tweaks and use PAC CLI for scripted packaging, plug-in deployments and CI/CD releases with clean rollbacks. · From the episode: Build Reusable Components with Power Platform CLI

Relationship map of Power Platform CLI: linked topics

Related topics in brief

Topics linked to Power Platform CLI, each briefly explained:

All relationships of Power Platform CLI, grouped by type of relationship:

Developed by

Developers of Power Platform CLI:

Is a

Categories to which Power Platform CLI belongs:

Part of

Offerings of which Power Platform CLI is a part:

Related to

Topics related to Power Platform CLI:

People working on this topic

People who work on Power Platform CLI:

Glossary

Community wiki

Short info above, community knowledge below: add practical tips, examples or corrections. New contributions are reviewed first; trusted members publish directly.

Experts and companies for this topic

Community members with expertise in Power Platform CLI:

Experts on related topics

Experts on topics related to Power Platform CLI, each with the topic that connects them:

Sources

Maintained by Mirko Peters (Microsoft MVP) · Last updated: