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.2.0.tar.gz (46.8 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.2.0-py3-none-any.whl (173.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for lambda_ai_cloud_api_client-1.2.0.tar.gz
Algorithm Hash digest
SHA256 244fd6e22620ea31fb41733dc6a106424ee4d028347a918d7c5a547b2f7d2dd9
MD5 0ecf5fd8c3bfb98e1c9b922dc0e199dd
BLAKE2b-256 2598fcee242e55696a7e354d362d2cd6656ca5a2416219231ccbe9821639af33

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lambda_ai_cloud_api_client-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2df6a2efc3f6518ab11261c3b20b285adb5d6a83c3494b1a6f2701b2ae597228
MD5 077c4024e187f0b3d5dee1077720cb70
BLAKE2b-256 1b53627368ee5d45e84b2e4dfbf6ed8edb89079631723517548dbe1fd7651dd4

See more details on using hashes here.

Provenance

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