Skip to main content

Lando Headless API Client

Project description

Lando Headless CLI

The Lando Headless CLI is a command-line tool for interacting with Lando via the automation API.

🐛 Bug Reports

Please file bugs in Bugzilla under Conduit :: Lando

Report issues or request enhancements in #engineering-workflow on Slack or #conduit on Matrix.

🔧 Installation

Install the CLI tool from PyPI, using pip or pipx.

pipx install lando_cli

Confirm the tool is installed locally.

lando --version

🔐 Configuration

The CLI expects a config file at ~/.mozbuild/lando.toml with the following options:

[auth]
api_token = "TOKEN"
user_email = "ldap_user@mozilla.com"

Alternatively, you can supply the values as environment variables:

  • LANDO_HEADLESS_API_TOKEN
  • LANDO_USER_EMAIL
  • LANDO_URL (optional, defaults to https://lando.moz.tools)

🚀 Usage

Run lando --help for an overview of available commands.

Run lando <COMMAND> --help for help with each command, including examples.

push-commits

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-tag

Push new tags to the specified repository.

lando push-tag --lando-repo firefox-main --tag-name TAG_NAME --tag-sha sha12345

push-merge

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-job

Check the status of a previously submitted job.

lando check-job 123

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lando_cli-0.2.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lando_cli-0.2.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file lando_cli-0.2.0.tar.gz.

File metadata

  • Download URL: lando_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lando_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1318a96c3ffca22b95145127853616ddcbedd74ebcad1e844f634346f0d0b67f
MD5 41621bfac49037875aaf56005b9e6d72
BLAKE2b-256 0fd24b88f3204a6d41b119e37fb01d337b9d3061efb49f6cc591521316d36c6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for lando_cli-0.2.0.tar.gz:

Publisher: publish.yml on mozilla-conduit/lando-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lando_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: lando_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lando_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67fb2ab47fb1d21fb97b68e0063952a6eeb87128501acb4b20f24306ea366a73
MD5 a1abdc46137c75603d89591de0f51788
BLAKE2b-256 aff0e90a1118e1dc974ccb05b643d59dc136c26b95960d1d66d9d55d17e23fc9

See more details on using hashes here.

Provenance

The following attestation bundles were made for lando_cli-0.2.0-py3-none-any.whl:

Publisher: publish.yml on mozilla-conduit/lando-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page