Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Power Platform CLI .\ is invalid path

(0) ShareShare
ReportReport
Posted on by 945

Hi guys,

 

What is the syntax for export solution to the current folder using Power Platform CLI ? 

I thought it is  .\ (as I saw in one YouTube video)

 

It is give error saying invalid path though. I'm key in something like this :

pac solution export --name MyAppFoundation --path .\

The error :

Axal_0-1647180995069.png

It was only meant to export it in the current path that I'm in, is there any special syntax ?

 

Thanks

 

 

  • Axal Profile Picture
    945 on at
    Re: Power Platform CLI .\ is invalid path

    Hi @DianaBirkelbach 

     

    Thank you very much for your guidance and finding. I have updated my pac using "pac install latest" and now it works!

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: Power Platform CLI .\ is invalid path

    Hi @Axal , 

     

    I have this pull request for the docs from  January 8th 2021, where I could only use it by passing the file name: https://github.com/MicrosoftDocs/powerapps-docs/pull/2037

    But it seems that now it works also if you pass the path.

     

    I've just tried it out, and it worked by passing only the path

    DianaBirkelbach_0-1647244963110.png

    What I noticed, is that you use an older version of pac. Currently there is the version 1.12.2 out there

    DianaBirkelbach_1-1647245009102.png

    You seem to be using 1.7.4. 

    So maybe that's the reason it dones't work for you.

  • Axal Profile Picture
    945 on at
    Re: Power Platform CLI .\ is invalid path

    Hi,

     

    I'm sorry, should've inform the YouTube video earlier -> https://www.youtube.com/watch?v=TS00WrKtass&t=631s 

    - starting min 10:00

     

    So I believe the syntax is changed now ?

     

    Just to have more understanding.

     

    Thanks,

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: Power Platform CLI .\ is invalid path

    Hi @Axal , 

     

    The "path" paramter for "pac solution export" expects actually a file name.
    For an example, have a look to the docs: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/cli/reference/solution-command?WT.mc_id=BA-MVP-5004107

     

    Hope this helps!

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard