LinuxCommandLibrary

lando

Local development environment management and automation

TLDR

Initialize code for use with lando

$ lando init
copy

Print information about your app
$ lando info
copy

Start your app
$ lando start
copy

Stop your app
$ lando stop
copy

Restart your app
$ lando restart
copy

Rebuild your app from scratch, preserving data
$ lando rebuild
copy

Display logs for your app
$ lando logs
copy

Destroy your app
$ lando destroy
copy

SYNOPSIS

lando [global-options] <command> [<args>]

PARAMETERS

-h, --help
    Show command help

-v, --verbose
    Increase verbosity

--vv
    More verbose output

--vvv
    Maximum verbosity

-y, --yes
    Auto-answer yes to prompts

--version
    Show Lando version

--hostfile
    Skip hostfile updates

--clear
    Clear Lando cache

--doctor
    Run diagnostics

--platform
    Override platform detection

DESCRIPTION

Lando is a free, open-source tool for managing portable and reproducible local development environments using Docker. It simplifies complex setups for modern web applications, abstracting Docker's complexity so developers can focus on code rather than configuration.

Originally built for Drupal and Pantheon workflows, Lando now supports recipes for frameworks like WordPress, Laravel, Symfony, Node.js, Python, Ruby, Go, and static sites. Key features include:
- One-command initialization: lando init
- Automatic services: Apache/Nginx, PHP, MySQL/PostgreSQL, Redis, Elasticsearch, Solr.
- Built-in tools: MailHog, Xdebug, Node, Python, Ruby versions.
- Commands for lifecycle: start, stop, rebuild, destroy.
- lando toolbox for shell access and lando info for URLs/credentials.

Lando ensures consistent environments across macOS, Windows, and Linux, integrates with CI/CD, and supports custom configs via lando.yml. It's ideal for teams needing quick, isolated dev stacks without Vagrant or manual Docker Compose files.

CAVEATS

Requires Docker installed and running; Linux users need user in docker group. Not for production. Custom recipes may need Docker image tweaks. Large projects can consume significant disk space.

COMMON SUBCOMMANDS

init: Initialize project; start: Start services; stop: Stop services; rebuild: Rebuild with cache clear; destroy: Teardown environment; info: Show URLs/creds; toolbox: Enter container shell.

INSTALLATION

Via npm: npm i -g lando; supports Linux, macOS, Windows.

HISTORY

Created by Pantheon's Devon Stank (pirog) in 2017 as open-source successor to Terminus local tools. Reached v1.0 in 2018; now at v3.x with broad recipe support and plugin ecosystem. Actively maintained by community.

SEE ALSO

Copied to clipboard