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.1.0.tar.gz (17.6 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.1.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lando_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 56e1420986719d17a629086a7e0760925677a37597df07053a8cf3b84a603763
MD5 966278136ae687295a20d37127c29a4d
BLAKE2b-256 463823ae0412bd22d8fe7b2055a9a69de286d3e67622a23f7faee11ce639b57a

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for lando_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1058bd2a454ab2f302eecb456499682e8f810fa8e2e5c5d1937c15bfffb22d7
MD5 2d1139647c6b619778faa7a0071f3e5a
BLAKE2b-256 7304213261627b19fe2d3cbe8be39b626d71dce4c0dfac91a18858920c37eee2

See more details on using hashes here.

Provenance

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