Skip to main content

A client library for accessing Lambda Cloud API

Project description

Lambda Cloud API - CLI wrapper

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)
  • List images: lambda-ai images
  • List SSH keys: lambda-ai ssh-keys
  • List instances: lambda-ai instances ls
  • 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.1.0.tar.gz (46.2 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.1.0-py3-none-any.whl (173.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for lambda_ai_cloud_api_client-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d82640790fac4cbdf8a6edb4974feb53bd8082eb5c69f9c699f2e3a53529b132
MD5 587a794bebce12909135b846e6bb2e33
BLAKE2b-256 31dd7abc98e709c0dd4493b2eae9fd75ae19472476371eaeb2a07cca2122eafe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lambda_ai_cloud_api_client-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ed989f077d4f15d6434045d23cc76f37f866d97d4366edc1c60763e3964c33e
MD5 4911561bdeaee91c5144ac028885eaac
BLAKE2b-256 fb9c5988299dfeeeb748511219b16686d11a4ab791b4904dd8707045d20c9f04

See more details on using hashes here.

Provenance

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