lando / pantheon

The Official Lando Pantheon plugin.
https://docs.lando.dev/pantheon
GNU General Public License v3.0
12 stars 18 forks source link

lando doesn't recognize push, pull, and switch commands #226

Closed titaniumbones closed 8 months ago

titaniumbones commented 8 months ago

I am running lando 3.20.8 on arch linux fro mthe AUR package. lando init (with wordpress and pantheon recipes), start, and stop all work fine. However, I don't seem to be able to use th push, pull, and switch commands, as Lando doesn't recognize them.

For simple lando pull I get:

ERROR ==> Cannot read properties of undefined (reading 'options') 

for eg lando pull --code=test --files=test --database=test

I get the following lengthy help message:

Usage: lando <command> [args] [options]

Commands:
  lando composer          Runs composer commands
  lando config            Displays the lando configuration
  lando db-export [file]  Exports database from a database service to a file
  lando db-import <file>  Imports a dump file into a database service
  lando destroy           Destroys your app
  lando info              Prints info about your app
  lando init              Initializes code for use with lando
  lando list              Lists all running lando apps and containers
  lando logs              Displays logs for your app
  lando mysql             Drops into a MySQL shell on a database service
  lando php               Runs php commands
  lando poweroff          Spins down all lando related containers
  lando rebuild           Rebuilds your app from scratch, preserving data
  lando restart           Restarts your app
  lando share             Shares your local site publicly
  lando ssh               Drops into a shell on a service, runs commands
  lando start             Starts your app
  lando stop              Stops your app
  lando version           Displays the lando version
  lando wp                Runs wp commands

Options:
  --channel      Sets the update channel                                                                 [array] [choices: "edge", "none", "stable"]
  --clear        Clears the lando tasks cache                                                                                              [boolean]
  --debug        Shows debug output                                                                                                        [boolean]
  --help         Shows lando or delegated command help if applicable                                                                       [boolean]
  --verbose, -v  Runs with extra verbosity                                                                                                   [count]

Examples:
  lando start            Run lando start
  lando rebuild --help   Get help about using the lando rebuild command
  lando destroy -y -vvv  Run lando destroy non-interactively and with maximum verbosity
  lando --clear          Clear the lando tasks cache

Did you mean php?

Is this familiar or expected?

Also: thanks for htis veyr powerful tool.

AaronFeledy commented 8 months ago

@titaniumbones This looks like something might be wrong in your .lando.yml file. Could you post the contents of this file?

titaniumbones commented 8 months ago

ahhhh.... In the interim, I deleted my initial attempt at a repository. On recreation, I find these commands now are beginning to work! So it sounds like I had issues in my .lando.yml, probably inherited from the upstream I was using.

Thank you!