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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. Running Cloudron CLI commands on apps with tags?

Running Cloudron CLI commands on apps with tags?

Scheduled Pinned Locked Moved Solved Discuss
cli
4 Posts 2 Posters 898 Views 2 Watching
  • 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.
  • d19dotcaD Offline
    d19dotcaD Offline
    d19dotca
    wrote on last edited by girish
    #1

    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

    nebulonN 1 Reply Last reply
    1
    • d19dotcaD d19dotca

      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.

      nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

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

      d19dotcaD 1 Reply Last reply
      3
      • nebulonN nebulon

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

        d19dotcaD Offline
        d19dotcaD Offline
        d19dotca
        wrote on last edited by
        #3

        @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
        0
        • d19dotcaD d19dotca

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

          nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          @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
          1
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search