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.0.9.tar.gz (16.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.0.9-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lando_cli-0.0.9.tar.gz
  • Upload date:
  • Size: 16.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.0.9.tar.gz
Algorithm Hash digest
SHA256 6a87fee3b2fd427ea9843a98d5c03f3dd6a5ea703086395769c3930cc0830900
MD5 0e2475ef07abd9ba569810b5614f51b1
BLAKE2b-256 3f58d129ebaf1dcfce65f0d630a3d0c76a4d4d4c338ec8f0605c7ccea3f0a0e4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lando_cli-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 14.4 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.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 411fa50ad0581fbd9c39dee0fdc6e5221275ccb9c6605f00a4cdc06f6d79bb6a
MD5 da2672284ca6d36573fbc7d33e13554d
BLAKE2b-256 a5579eeed71719024a02ddea61e1ed547af56e3236bbdf7ca64250a5a461273e

See more details on using hashes here.

Provenance

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