The Lando Headless CLI is a command-line tool for interacting with Lando via the automation API.
Please file bugs in Bugzilla under Conduit :: Lando
Report issues or request enhancements in #engineering-workflow on Slack or #conduit on Matrix.
Install the CLI tool from PyPI, using pip
or pipx
.
pipx install lando_cli
Confirm the tool is installed locally.
lando --version
The CLI expects a config file at ~/.mozbuild/lando.toml
with the following options:
[auth]
api_token = "TOKEN"
user_email = "[email protected]"
Alternatively, you can supply the values as environment variables:
LANDO_HEADLESS_API_TOKEN
LANDO_USER_EMAIL
LANDO_URL
(optional, defaults tohttps://lando.moz.tools
)
Run lando --help
for an overview of available commands.
Run lando <COMMAND> --help
for help with each command, including examples.
Push new commits to a Lando repo.
Create new commits against the specified branch locally. The currently checked out branch will be used for the push, and the upstream branch will be used as the base.
lando push-commits --lando-repo firefox-autoland
With a release branch:
lando push-commits --lando-repo firefox-beta --relbranch FIREFOX_64b_RELBRANCH
Push new tags to the specified repository.
lando push-tag --lando-repo firefox-main --tag-name TAG_NAME --tag-sha sha12345
Push merge actions to the specified repository.
Running without any options will detect the merge target and commit message
using the current HEAD
.
lando push-merge --lando-repo firefox-main
Use --target-commit
and --commit-message
to create the merge in Lando
without detecting the change in your local repo.
lando push-merge --lando-repo firefox-main --target-commit SHA --commit-message "Merge"
Check the status of a previously submitted job.
lando check-job 123