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. WordPress (Developer)
  3. wp-cli disappeared

wp-cli disappeared

Scheduled Pinned Locked Moved Solved WordPress (Developer)
11 Posts 3 Posters 2.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.
  • D derin

    Connecting...
    If you resize the browser window, press Ctrl+D to start a new session with the current size.
    root@dc02c0b5-c9f1-43a7-8c31-2c8598105832:/app/code# wp plugin deactivate --all --network
    bash: wp: command not found
    root@dc02c0b5-c9f1-43a7-8c31-2c8598105832:/app/code#

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

    @derin Try giving the full path like /app/pkg/wp . See also https://docs.cloudron.io/apps/wordpress-developer/#wp-cli

    D 1 Reply Last reply
    0
    • D Offline
      D Offline
      derin
      wrote on last edited by
      #3

      When I do this I get this code. This is for all the wordpress install on the server:

      root@1de1f6d3-3227-4781-bc12-d6c9a3f750e2:/app/code/wordpress# /app/pkg/wp
      Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress installation exists under.

      If you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of your server, making it quite DANGEROUS.

      If you'd like to continue as root, please run this again, adding this flag: --allow-root

      If you'd like to run it as the user that this site is under, you can run the following to become the respective user:

      sudo -u USER -i -- wp <command>
      
      1 Reply Last reply
      0
      • girishG girish

        @derin Try giving the full path like /app/pkg/wp . See also https://docs.cloudron.io/apps/wordpress-developer/#wp-cli

        D Offline
        D Offline
        derin
        wrote on last edited by
        #4

        @girish I never had to do anything extra before. It just worked beautifully. I dont understand what changed...

        girishG 1 Reply Last reply
        0
        • D derin

          @girish I never had to do anything extra before. It just worked beautifully. I dont understand what changed...

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

          @derin Just use wp instead of /app/pkg/wp

          D 2 Replies Last reply
          0
          • girishG girish

            @derin Just use wp instead of /app/pkg/wp

            D Offline
            D Offline
            derin
            wrote on last edited by
            #6

            @girish when I type in wp it says bash doesnt recognize it. Im telling you there is something wrong with it. It's not functioning as it once did

            1 Reply Last reply
            0
            • girishG girish

              @derin Just use wp instead of /app/pkg/wp

              D Offline
              D Offline
              derin
              wrote on last edited by
              #7

              @girish

              root@2af864b3-a9db-4fa1-b9ac-8dc1d5e94f60:/app/code# wp plugin list
              bash: wp: command not found
              root@2af864b3-a9db-4fa1-b9ac-8dc1d5e94f60:/app/code#

              girishG 1 Reply Last reply
              0
              • D derin

                @girish

                root@2af864b3-a9db-4fa1-b9ac-8dc1d5e94f60:/app/code# wp plugin list
                bash: wp: command not found
                root@2af864b3-a9db-4fa1-b9ac-8dc1d5e94f60:/app/code#

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

                @derin If you update to Cloudron 6.3.6, it will work.

                D 1 Reply Last reply
                0
                • girishG girish

                  @derin If you update to Cloudron 6.3.6, it will work.

                  D Offline
                  D Offline
                  derin
                  wrote on last edited by
                  #9

                  @girish this is an unstable release?? It could create more problems than it solves?

                  girishG 1 Reply Last reply
                  0
                  • D derin

                    @girish this is an unstable release?? It could create more problems than it solves?

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

                    @derin we roll out releases slowly, so for those who it hasn't been rolled out to, it will say 'unstable'. It's safe to update. you can also do source /root/.bashrc in the web terminal which should make the wp command work as a workaround for now.

                    D 1 Reply Last reply
                    1
                    • girishG girish

                      @derin we roll out releases slowly, so for those who it hasn't been rolled out to, it will say 'unstable'. It's safe to update. you can also do source /root/.bashrc in the web terminal which should make the wp command work as a workaround for now.

                      D Offline
                      D Offline
                      derin
                      wrote on last edited by
                      #11

                      @girish Thank you its all working now.

                      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