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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Platform CLI .\ ...
Power Apps
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard