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 :
It was only meant to export it in the current path that I'm in, is there any special syntax ?
Thanks
Thank you very much for your guidance and finding. I have updated my pac using "pac install latest" and now it works!
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
What I noticed, is that you use an older version of pac. Currently there is the version 1.12.2 out there
You seem to be using 1.7.4.
So maybe that's the reason it dones't work for you.
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,
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!
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1