ActiveCampaign / postmark-cli

The official CLI tool for Postmark
https://postmarkapp.com
MIT License
79 stars 9 forks source link

Pushing templates to server without existing templates #40

Closed webkp closed 3 years ago

webkp commented 3 years ago

Hi!

I started working with postmark-cli to make it work with CI/CD (thanks for this great tool!). However, I noticed that no push is performed if the server does not have any templates yet. It doesn't matter if you use additional parameters like -force and/or -all. Only "Fetching templates" is returned and then the process is terminated.

/app # postmark templates push . -force
- Fetching templates...

I think when a server is empty, all templates should actually be uploaded. Especially if -force is used.

derekrushforth commented 3 years ago

Thanks for the heads up @webkp! I just published a fix for this in version 1.5.9. Give it a shot and let me know if it's fixed on your end.

webkp commented 3 years ago

Thank you for this quick fix @derekrushforth. Now it's working as expected.

derekrushforth commented 3 years ago

@webkp Awesome! Closing this issue.