Skip to main content

A client library for accessing Lambda Cloud API

Reason this release was yanked:

Wrongfully released 2.0.0 as 1.3.0, breaking change.

Project description

Lambda Cloud API - CLI

This repo contains the generated Python client for the Lambda Cloud API and a lightweight CLI wrapper so you can call it directly from your terminal. The documentation for the api can be found here: https:/docs-api.lambda.ai/api/cloud

Running the CLI locally

  1. Set your API token via LAMBDA_CLOUD_TOKEN (or LAMBDA_CLOUD_API_TOKEN / LAMBDA_API_TOKEN), optionally LAMBDA_CLOUD_BASE_URL if you use a non-default endpoint.
  2. Install this CLI: uv pip install lambda-ai-cloud-api-client.
  3. Run commands: lambda-ai <command> ...

Examples:

  • List instance types: lambda-ai instance-types (add --available-only to show only types with capacity, --cheapest to filter to the lowest price)
  • Table view of types: lambda-ai types (filters: --available-only, --cheapest, --region, --gpu, --min-gpus, --min-vcpus, --min-memory, --max-price)
  • List images: lambda-ai images
  • List SSH keys: lambda-ai ssh-keys
  • List instances: lambda-ai instances ls
  • Shortcut table view: lambda-ai ls (renders a table; supports --region multiple times)
  • Quick launch: lambda-ai start --region us-east-1 --instance-type gpu_1x_a10 --ssh-key my-key
  • Quick stop: lambda-ai stop <id-1> <id-2>
  • Get one instance: lambda-ai instances get <instance-id>
  • Launch an instance: lambda-ai instances launch --region us-east-1 --instance-type gpu_1x_a10 --ssh-key my-key --name demo
  • Terminate instances: lambda-ai instances terminate <id-1> <id-2>

Flags:

  • --token to override the token (instead of env vars)
  • --base-url to target a specific control plane (defaults to https://cloud.lambdalabs.com)
  • --insecure to skip TLS verification (only for debugging)

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

lambda_ai_cloud_api_client-1.3.0.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

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

lambda_ai_cloud_api_client-1.3.0-py3-none-any.whl (182.0 kB view details)

Uploaded Python 3

File details

Details for the file lambda_ai_cloud_api_client-1.3.0.tar.gz.

File metadata

File hashes

Hashes for lambda_ai_cloud_api_client-1.3.0.tar.gz
Algorithm Hash digest
SHA256 38cd64be238bab76128e985e9cfb3080e855e72e5dfa15c05843f5d5d8eaa6a4
MD5 4b128ed6883956fa8fb7114f448281c8
BLAKE2b-256 7f0261a206d1f07313e2a3f9fe5d87cf87af361c952f39f736a4cad97db7baa1

See more details on using hashes here.

Provenance

The following attestation bundles were made for lambda_ai_cloud_api_client-1.3.0.tar.gz:

Publisher: ci.yml on alexandervaneck/lambda-ai-cloud-api-client

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

File details

Details for the file lambda_ai_cloud_api_client-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lambda_ai_cloud_api_client-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f04b4aada6a2019432fc5cfd857e5b759a34cea8eb53765180d19d26e8783922
MD5 3d9350b8618a3bea0cc6f2c52560ceae
BLAKE2b-256 56f89a6c8bd08360e6206f4fc52b34e924990bcfed9be17f5c300b687dd0d4a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for lambda_ai_cloud_api_client-1.3.0-py3-none-any.whl:

Publisher: ci.yml on alexandervaneck/lambda-ai-cloud-api-client

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