GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Lando 3
  • Getting Started
  • CLI
  • Basics
  • Services
  • Recipes
  • Tooling
  • Proxy
  • Events
  • Global
  • Environment
  • Experimental
  • Healthcheck
  • Orchestrator

This view

  • Original page
  • New address

GeezerVison is showing docs.lando.dev — lando exec

lando exec ​

Runs command(s) on a service.

TIP

lando exec is a new command intended to replace lando ssh. However, it currently works best on api: 4 services. If you are experiencing issues on api: 3 services we recommend you continue using lando ssh.

Usage ​

sh
lando exec <service> [--user <user>] -- <command>

Arguments ​

sh
service  Runs on this service                                                                 [string] [choices: "web", "web2", "web3", "web4"]

Options ​

sh
--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]
--user, -u     Runs as a specific user

Examples ​

sh
# Drops into a lando environment bash shell on the appserver
lando exec appserver -- lash bash

# Resolves the nginx services identity crisis
lando exec nginx --user root -- whoami

# Prints the environment and a wise greeting on my-service
lando exec my-service -- "env && echo 'hello there!'"

# Launches a background service on worker
lando exec worker -- "background-service &"
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.