saleor / cli

Command-line interface allowing interaction with Saleor Cloud environments.
Other
69 stars 23 forks source link

Show backup list without selecting environment #709

Closed andrzejewsky closed 10 months ago

andrzejewsky commented 10 months ago

Currently, there is no way to print the list of available backups without selecting environment first. However, in some cases this feature is mandatory - for instance, i want to create the new environment, with some backup loaded so i need its id. I want to take the newest backup for given name so i can use backup list command to print them and filter list out, taking backup that i need

Proposal This supposed to list all available backups

saleor backup list

Additionally, would be nice to filter them by eg. name or date

saleor backup list --name=some-backup // prints backups and their versions for given name
saleor backup list --name=some-backup --latest // prints latest backup for given name