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.4.0.tar.gz (18.7 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.4.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lando_cli-0.4.0.tar.gz
  • Upload date:
  • Size: 18.7 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.4.0.tar.gz
Algorithm Hash digest
SHA256 f1e0f5f706a3ca8ab0c51b9b3a20fef56a600bde86ed0334cd384e769bff454a
MD5 c0a86a70baf477ffdc59296d54d43acb
BLAKE2b-256 ff68f1e24fc1c0b59e5110e6684af154b26d0d3c2719c00b8ad7f4124fc8dd25

See more details on using hashes here.

Provenance

The following attestation bundles were made for lando_cli-0.4.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.4.0-py3-none-any.whl.

File metadata

  • Download URL: lando_cli-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a476e593b9a14e18d6dab520c4cb82daab6c8481b7425439d70f46cea1572932
MD5 19ab89b9bf4267884a81950403b32487
BLAKE2b-256 c84844c915ff43f9c125149447a2de1cbb3bd2a1dad140321ece922556821d1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for lando_cli-0.4.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