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. N8N
  3. n8n CLI commands not working in Cloudron

n8n CLI commands not working in Cloudron

Scheduled Pinned Locked Moved N8N
7 Posts 2 Posters 1.0k Views 3 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.
    • S Offline
      S Offline
      shrey
      wrote on last edited by
      #1

      Just noticed, n8n CLI commands are not working.

      They are working fine though, in my local docker instance, for the same version.

      Example:
      Use the "Execute Command" node to run: n8n --help

      Error:
      6282bda7-0e62-465d-be15-3b840aaad714-image.png

      My guess would be, something didn't go well with the migration to the 1.x.x versions, as there have been a lot of breaking changes. See: https://docs.n8n.io/1-0-migration-checklist/

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        You have to run it like https://docs.cloudron.io/apps/n8n/#cli . n8n is not in the PATH, maybe that's the reason ? The full path is /app/code/node_modules/.bin/n8n.

        S 1 Reply Last reply
        1
        • girishG girish

          You have to run it like https://docs.cloudron.io/apps/n8n/#cli . n8n is not in the PATH, maybe that's the reason ? The full path is /app/code/node_modules/.bin/n8n.

          S Offline
          S Offline
          shrey
          wrote on last edited by
          #3

          @girish Thanks!
          Yes, giving the full path works.

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #4

            @shrey I will put in the PATH in the next package release.

            S 1 Reply Last reply
            0
            • girishG girish

              @shrey I will put in the PATH in the next package release.

              S Offline
              S Offline
              shrey
              wrote on last edited by
              #5

              @girish That would be even better, thanks again!

              1 Reply Last reply
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

                Added in https://git.cloudron.io/cloudron/n8n-app/-/commit/7420efe2a4a938dbf0f3219c4fdadb941e83f16a

                S 1 Reply Last reply
                2
                • girishG girish

                  Added in https://git.cloudron.io/cloudron/n8n-app/-/commit/7420efe2a4a938dbf0f3219c4fdadb941e83f16a

                  S Offline
                  S Offline
                  shrey
                  wrote on last edited by
                  #7

                  Hi @girish

                  Kindly also check this n8n team response related to this issue, in the context of Cloudron:

                  https://community.n8n.io/t/cli-commands-not-working-in-v1-x-x/29309/3

                  Thanks.

                  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