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 wp-cli disappeared

    WordPress (Developer)
    3
    11
    529
    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.
    • D
      derin last edited by

      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#

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @derin last edited by

        @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 Reply Quote 0
        • D
          derin last edited by

          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 Reply Quote 0
          • D
            derin @girish last edited by

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

            girish 1 Reply Last reply Reply Quote 0
            • girish
              girish Staff @derin last edited by

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

              D 2 Replies Last reply Reply Quote 0
              • D
                derin @girish last edited by

                @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 Reply Quote 0
                • D
                  derin @girish last edited by

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

                  girish 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @derin last edited by

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

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      derin @girish last edited by

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

                      girish 1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff @derin last edited by

                        @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 Reply Quote 1
                        • D
                          derin @girish last edited by

                          @girish Thank you its all working now.

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