Running Cloudron CLI commands on apps with tags?
-
wrote on Feb 9, 2022, 6:16 AM last edited by girish Feb 9, 2022, 5:53 PM
I just had an idea and am not sure if this is possible (my current testing / review of the docs indicates this may not be possible but figured I'd double check)... I'd like to run one command ideally that creates backups for all app instances with a certain tag.
For example, I'd look to add the "WooCommerce" tag in Cloudron to apps using the WooCommerce plugin in WordPress, and before updating them all I'd like to initiate a backup in one quick command instead of manually generating them all. So something like
cloudron backup create --tag woocommerce
, but it doesn't seem this is possible yet.Right now any major plugin updates I always manually create backups, but it'd be nice to have things sorted out with a command to do them all at once if possible.
-
I just had an idea and am not sure if this is possible (my current testing / review of the docs indicates this may not be possible but figured I'd double check)... I'd like to run one command ideally that creates backups for all app instances with a certain tag.
For example, I'd look to add the "WooCommerce" tag in Cloudron to apps using the WooCommerce plugin in WordPress, and before updating them all I'd like to initiate a backup in one quick command instead of manually generating them all. So something like
cloudron backup create --tag woocommerce
, but it doesn't seem this is possible yet.Right now any major plugin updates I always manually create backups, but it'd be nice to have things sorted out with a command to do them all at once if possible.
@d19dotca this is possible to add only on the cli side, so no Cloudron changes as such would be required.
The only thing I am a bit worried about here, is that currently all commands are working towards a single app instance, while with such a feature, multiple apps might be affected. Maybe instead we can think of better chainability of the cli tool. For example if there would be a
cloudron list --tag woocommerce
which produces axargs
consumable app id list to pipe into further cli commands, then this could open up a lot more use-cases. -
@d19dotca this is possible to add only on the cli side, so no Cloudron changes as such would be required.
The only thing I am a bit worried about here, is that currently all commands are working towards a single app instance, while with such a feature, multiple apps might be affected. Maybe instead we can think of better chainability of the cli tool. For example if there would be a
cloudron list --tag woocommerce
which produces axargs
consumable app id list to pipe into further cli commands, then this could open up a lot more use-cases. -
-
@nebulon Possibly related... would it be possible to add a column maybe (or even if just a hover message on a user) that would show when the user was last used to login to Cloudron? May be helpful in narrowing down users which should be marked inactive that may have been missed earlier. Essentially good for doing an audit of users. I guess as a workaround we can look at the Event History, however it may not go far enough back.
@d19dotca this is now implemented at https://git.cloudron.io/cloudron/cloudron-cli/-/commit/e321442cc2251f46b0ee2564138224015339b12d and will thus be part of next cli release.