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. Support
  3. Install apps using the API?

Install apps using the API?

Scheduled Pinned Locked Moved Solved Support
cli
9 Posts 6 Posters 979 Views 6 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.
  • L Offline
    L Offline
    livingstonlarus
    wrote on last edited by girish
    #1

    Hello Cloudron Team and Users!

    I have had a look at https://docs.cloudron.io/api.html

    I read that "All of the functionality in the Cloudron Dashboard is available through the API".

    But I could not find how to install an app?

    I looked at https://www.npmjs.com/package/cloudron and https://blog.cloudron.io/using-the-cloudron-cli-tool-part-1/ and could find the install command.

    But I don't want to use the CLI, I want to use the API, to be able to programmatically install new apps.

    Is this available?

    Thanks!

    girishG 1 Reply Last reply
    1
    • robiR Offline
      robiR Offline
      robi
      wrote on last edited by
      #2

      See this thread: https://forum.cloudron.io/topic/9347/how-to-automate-migrating-importing-apps-from-cloudron-to-cloudron-via-api/

      Conscious tech

      L 1 Reply Last reply
      0
      • L livingstonlarus

        Hello Cloudron Team and Users!

        I have had a look at https://docs.cloudron.io/api.html

        I read that "All of the functionality in the Cloudron Dashboard is available through the API".

        But I could not find how to install an app?

        I looked at https://www.npmjs.com/package/cloudron and https://blog.cloudron.io/using-the-cloudron-cli-tool-part-1/ and could find the install command.

        But I don't want to use the CLI, I want to use the API, to be able to programmatically install new apps.

        Is this available?

        Thanks!

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        @livingstonlarus A couple of things:

        • The CLI tool has to be installed on your PC/Desktop/Mac .
        • The CLI tool is really targeting app packagers and is (currently atleast) optimized for building custom apps and not meant as a general CLI tool.

        It's possible to install apps though and change some configuration (but this is only because it's part of app packaging lifecycle). See https://docs.cloudron.io/packaging/tutorial/

        1 Reply Last reply
        0
        • robiR robi

          See this thread: https://forum.cloudron.io/topic/9347/how-to-automate-migrating-importing-apps-from-cloudron-to-cloudron-via-api/

          L Offline
          L Offline
          livingstonlarus
          wrote on last edited by
          #4

          @girish got it, thank you! But this question was not about the CLI but about the API.

          @robi thanks! But I don't see where this thread helps with installing apps using the API?

          I found something in this other post:

          https://forum.cloudron.io/topic/9052/call-to-api-app-install-failing

          and I could do this:

          curl -kX POST -H "Content-Type: application/json" https://$CLOUDRON_DOMAIN/api/v1/apps/install?access_token=$CLOUDRON_TOKEN -d '{"appStoreId": "org.wordpress.cloudronapp","subdomain": "blog","domain": "$TARGET_DOMAIN","accessRestriction": {"users":[],"groups":[]}}'
          

          It works.

          But why I don't find all endpoints, like apps/install at https://docs.cloudron.io/api.html ? Is it not documented?

          BrutalBirdieB 1 Reply Last reply
          0
          • L livingstonlarus

            @girish got it, thank you! But this question was not about the CLI but about the API.

            @robi thanks! But I don't see where this thread helps with installing apps using the API?

            I found something in this other post:

            https://forum.cloudron.io/topic/9052/call-to-api-app-install-failing

            and I could do this:

            curl -kX POST -H "Content-Type: application/json" https://$CLOUDRON_DOMAIN/api/v1/apps/install?access_token=$CLOUDRON_TOKEN -d '{"appStoreId": "org.wordpress.cloudronapp","subdomain": "blog","domain": "$TARGET_DOMAIN","accessRestriction": {"users":[],"groups":[]}}'
            

            It works.

            But why I don't find all endpoints, like apps/install at https://docs.cloudron.io/api.html ? Is it not documented?

            BrutalBirdieB Offline
            BrutalBirdieB Offline
            BrutalBirdie
            Partner
            wrote on last edited by
            #5

            @livingstonlarus The API and API Doc is currently getting an overhaul, so sadly it is not complete.
            You can always finde more here: https://git.cloudron.io/cloudron/docs/-/blob/master/api/cloudron_api_swagger.yaml?ref_type=heads
            Also everything the Cloudron Frontend (Dashboard) does it also API calls.
            So you can grab an API call from the browsers network inspector and even copy full CURL examples.
            I posted about this multiple times already, maybe we should add this to the doc. . .

            Like my work? Consider donating a drink. Cheers!

            1 Reply Last reply
            2
            • L Offline
              L Offline
              livingstonlarus
              wrote on last edited by
              #6

              Ok got it, thanks @BrutalBirdie ! No problem with doc being overhauled, I understand it's a WIP; just wanted to make sure it's not me that can't properly RTFM 🙂

              1 Reply Last reply
              2
              • girishG girish marked this topic as a question on
              • girishG girish has marked this topic as solved on
              • D Offline
                D Offline
                Diationance
                wrote last edited by Diationance
                #7

                Hey! From what I’ve seen, Cloudron’s API covers a lot, but installing apps isn’t straightforward via the API alone. For easier builds, I’ve been checking out minimum viable product app development services for quicker, cleaner setups. Has anyone else tried that?

                1 Reply Last reply
                1
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote last edited by
                  #8

                  The cli as well as the dashboard are using the very same exposed REST api. To install an app, the route would be https://docs.cloudron.io/api.html#tag/Apps/operation/installApp

                  robiR 1 Reply Last reply
                  3
                  • nebulonN nebulon

                    The cli as well as the dashboard are using the very same exposed REST api. To install an app, the route would be https://docs.cloudron.io/api.html#tag/Apps/operation/installApp

                    robiR Offline
                    robiR Offline
                    robi
                    wrote last edited by
                    #9

                    @nebulon Very cool upgrade to the API Docs since the last time I looked.

                    Like @BrutalBirdie said, one should be able to copy and paste the examples into n8n, modify parameters and run it!

                    Conscious tech

                    1 Reply Last reply
                    0
                    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