cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Axal
Impactful Individual
Impactful Individual

Power Platform CLI .\ is invalid path

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
DianaBirkelbach
Super User
Super User

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.

Kind regards,
Diana
----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

4 REPLIES 4
DianaBirkelbach
Super User
Super User

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...

 

Hope this helps!

Kind regards,
Diana
----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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,

DianaBirkelbach
Super User
Super User

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.

Kind regards,
Diana
----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Hi @DianaBirkelbach 

 

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Kudoed Authors
Users online (32,489)