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 / Power Platform CLI .\ ...
Power Apps
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

 

 

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    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!

  • Axal Profile Picture
    945 on at

    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,

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    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

    Hi @DianaBirkelbach 

     

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

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 476

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 339

Last 30 days Overall leaderboard