lando / lando/wordpress

WP CLI not installed in container (/bin/sh: 1: wp: not found wp: not found)

Open
#15 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs Triage
Dominant language
JavaScript
Stars
22
Forks
14
PR merge metrics
No merged PRs in 30d

Description

WP CLI is not being installed in the default "appserver" service
Thus, typing lando wp returns /bin/sh: 1: wp: not found

Might be related to #3395

My lando.yml :

name: wordpress
recipe: wordpress
proxy:
  appserver:
    - wordpress.lndo.site
    - espace.wordpress.lndo.site
    - account.wordpress.lndo.site
    - ca.wordpress.lndo.site
config:
  php: "7.3"
  via: apache
  webroot: web
  database: mysql:5.7
  xdebug: true
# Services
services:
  database_admin:
    type: phpmyadmin:5.0
    hosts:
      - database
  mail:
    type: mailhog:v1.0.0
    portforward: true
    hogfrom:
      - appserver

Commands are launched in WSL2 (core version : 5.10.16) on Windows 11, in a Debian 11 (bullseye) distribution.
Lando version : 3.6.5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the supplied lando.yml on the WordPress recipe and run lando wp in the default appserver. Trace how the appserver service is assembled and verify that WP CLI is available there without extra configuration; no specific source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
cli, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.