CLI
The Lando CLI is comprised of three distinct kinds of commands:
- Lando Commands are commands that are available in all contexts and do things like start or stop an app, show the config or print log info.
- Tooling Commands are recipe or user-provided commands that live in individual Landofiles, are only accessible on a per-app basis and can differ from app to app.
- Management Commands are hidden commands that are usually used by non-humans like @lando/setup-lando. They are mostly backports of
hyperdrivefor Lando 3.
Lando Commands
sh
Usage: lando <command> [args] [options]
Commands:
lando config Displays the lando configuration
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 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 update Updates lando
lando version Displays the lando version
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 --debug Run lando destroy non-interactively and with maximum verbosity
lando --clear Clear the lando tasks cache
You need at least one command before moving onTooling Commands
Each Landofile may implement additional tooling commands that are only available for that application. These commands are usually wrappers for development tools like lando composer or lando artisan or lando npm.
Run lando inside of an app to see if it offers any app specific tooling options. Here is an example of what the default lamp recipe will give you. Note the additional app-specific commands like lando composer and lando db-import.
sh
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 service into a file
lando db-import <file> Imports a dump file into 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