web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / pac cli command respon...
Power Apps
Unanswered

pac cli command response in powershell

(0) ShareShare
ReportReport
Posted on by 4

Hi, I am wondering what is the best way to process the results of pac cli command in a powershell script?

 

For example:

 

 

$importResult = pac solution import -f -s -wt 240 --path "./someSolution.zip"


$importResult would now contain an array of the log statements.

Connected as ef52xxx

Solution Importing...

Solution Imported successfully.

 

 

Is the only way to to parse those lines for 'successfully' or 'FAILURE'?

 

 

 

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    Yeah, as far as I know the responses to all those PAC commands are only really interpretable as strings you need to parse/regex match. Lousy answer, I know, but that's pretty much it.

  • MariusPothmann Profile Picture
    4 on at

    I am already on that route but while typing that code I was wondering if I missed something.

    At moment it is wild Potpourri of different automation techniques to get everything working end-to-end without manual clicking in the admin portals:

     

     

     

  • cchannon Profile Picture
    4,702 Moderator on at

    Welcome to Microsoft platform development. You must be new here. 😉

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard