Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Running Cloudron CLI commands on apps with tags?

    Discuss
    cli
    2
    4
    215
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d19dotca
      d19dotca last edited by girish

      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.

      --
      Dustin Dauncey
      www.d19.ca

      nebulon 1 Reply Last reply Reply Quote 1
      • nebulon
        nebulon Staff @d19dotca last edited by

        @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 a xargs consumable app id list to pipe into further cli commands, then this could open up a lot more use-cases.

        d19dotca 1 Reply Last reply Reply Quote 3
        • d19dotca
          d19dotca @nebulon last edited by

          @nebulon For sure. If there's some way to script it / automate it in a way using a list argument first, that works for me. 🙂

          --
          Dustin Dauncey
          www.d19.ca

          1 Reply Last reply Reply Quote 0
          • nebulon
            nebulon Staff @d19dotca last edited by

            @d19dotca this is now implemented at https://git.cloudron.io/cloudron/cloudron-cli/-/commit/e321442cc2251f46b0ee2564138224015339b12d and will thus be part of next cli release.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Powered by NodeBB