Skip to main content

A CLI tool that enables you to interact with the Lambda Labs APIs

Project description

Lambdo

Lambdo is a CLI tool that utilizes the Lambda GPU Cloud Public APIs

help_output.png

Lambda Labs Cloud API

https://docs.lambdalabs.com/public-cloud/cloud-api/

Lambda Labs Redoc

https://cloud.lambdalabs.com/api/v1/docs

How does it work?

Lambdo was built using Typer by tiangolo

All the features of Typer are included in this package and work out of the box, including command completion. Be sure to install it!

I utilized the requests library to handle the API calls and store project variables in ~/.lambdo/config.json.

Documentation

Usage:

$ lambdo [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • filesystems: List your persistent storage filesystems
  • firewall: List your firewall rules
  • images: List available images
  • instances: Manage your Lambda GPU Cloud instances
  • instance-types: List the instances types offered by Lambda...
  • setup: Setup Lambdo with your API KEY and SSH path
  • ssh-keys: Manage SSH Keys for your instances

lambdo filesystems

List your persistent storage filesystems

Usage:

$ lambdo filesystems [OPTIONS] COMMAND [ARGS]...

Options:

  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

Commands:

  • create: Create a filesystem
  • delete: Delete a filesystem

lambdo filesystems create

Create a filesystem

Usage:

$ lambdo filesystems create [OPTIONS]

Options:

  • --name TEXT: The name of the filesystem [required]
  • --region TEXT: The region name [required]
  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

lambdo filesystems delete

Delete a filesystem

Usage:

$ lambdo filesystems delete [OPTIONS]

Options:

  • --id TEXT: The id of the filesystem you want to delete [required]
  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

lambdo firewall

List your firewall rules

Usage:

$ lambdo firewall [OPTIONS] COMMAND [ARGS]...

Options:

  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

Commands:

  • update: Overwrites the inbound firewall rules...

lambdo firewall update

Overwrites the inbound firewall rules currently active

Usage:

$ lambdo firewall update [OPTIONS]

Options:

  • -p, --protocol TEXT
  • -r, --port-range TEXT: Range of ports allowed
  • -s, --source-net TEXT: Source network allowed
  • --description TEXT: Description of the firewall rule
  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

lambdo images

List available images

Usage:

$ lambdo images [OPTIONS] COMMAND [ARGS]...

Options:

  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

lambdo instances

Manage your Lambda GPU Cloud instances

Usage:

$ lambdo instances [OPTIONS] COMMAND [ARGS]...

Options:

  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

Commands:

  • detail: Retrieve the details of an instance
  • create: Create an instance
  • restart: Restart instance(s)
  • delete: Delete instance(s)

lambdo instances detail

Retrieve the details of an instance

Usage:

$ lambdo instances detail [OPTIONS]

Options:

  • --inst-id TEXT: The id of the instance [required]
  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

lambdo instances create

Create an instance

Usage:

$ lambdo instances create [OPTIONS]

Options:

  • --region-name TEXT: The region name [required]
  • --instance-type-name TEXT: The instance type name [required]
  • --ssh-key-names TEXT: The name of the ssh key [required]
  • --filesystems TEXT: The name of the filesystems [required]
  • --quantity INTEGER: The quantity of instances [default: 1]
  • --name TEXT: The custom name of the instance
  • --from-file TEXT: Path to a file containing required parameters
  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

lambdo instances restart

Restart instance(s)

Usage:

$ lambdo instances restart [OPTIONS]

Options:

  • --inst-id TEXT: The id of the instance(s) you want to restart [required]
  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

lambdo instances delete

Delete instance(s)

Usage:

$ lambdo instances delete [OPTIONS]

Options:

  • --inst-id TEXT: The id of the instance(s) you want to delete [required]
  • --from-file TEXT: Path to a file containing required parameters
  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

lambdo instance-types

List the instances types offered by Lambda GPU Cloud

Usage:

$ lambdo instance-types [OPTIONS] COMMAND [ARGS]...

Options:

  • --available: Show only available instance types.
  • --unavailable: Show only unavailable instance types.
  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

Commands:

  • gpu: Search for a particular GPU by name
  • location: Search for GPUs by location

lambdo instance-types gpu

Search for a particular GPU by name

Usage:

$ lambdo instance-types gpu [OPTIONS]

Options:

  • -n, --name TEXT: Provide the name of the gpu [required]
  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

lambdo instance-types location

Search for GPUs by location

Usage:

$ lambdo instance-types location [OPTIONS]

Options:

  • -n, --name TEXT: Search by location [required]
  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

lambdo setup

Setup Lambdo with your API KEY and SSH path

Usage:

$ lambdo setup [OPTIONS] COMMAND [ARGS]...

Options:

  • --api-key TEXT: [required]
  • --ssh-path TEXT: [required]
  • --help: Show this message and exit.

lambdo ssh-keys

Manage SSH Keys for your instances

Usage:

$ lambdo ssh-keys [OPTIONS] COMMAND [ARGS]...

Options:

  • -d, --debug: Print additional helpful information.
  • --help: Show this message and exit.

Commands:

  • add: Add an SSH key
  • delete: Delete an SSH key

lambdo ssh-keys add

Add an SSH key

Usage:

$ lambdo ssh-keys add [OPTIONS]

Options:

  • -n, --new: Add a new SSH Key
  • --help: Show this message and exit.

lambdo ssh-keys delete

Delete an SSH key

Usage:

$ lambdo ssh-keys delete [OPTIONS]

Options:

  • --key TEXT: The id of the SSH key you want to delete [required]
  • --help: Show this message and exit.

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

lambdo-0.1.3.tar.gz (172.6 kB view details)

Uploaded Source

Built Distribution

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

lambdo-0.1.3-py3-none-any.whl (164.8 kB view details)

Uploaded Python 3

File details

Details for the file lambdo-0.1.3.tar.gz.

File metadata

  • Download URL: lambdo-0.1.3.tar.gz
  • Upload date:
  • Size: 172.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.0

File hashes

Hashes for lambdo-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9665ea3cfbca64ea5a45ddc2d1eb71a3fd7e5e76bf6774d75c46ed2ac26deafd
MD5 7008bbf67c7ed4a77beaf2e0c260400e
BLAKE2b-256 d06ba833e857fc5eae90e71adce93ef729d718ac5015b8bf516208ba5a6013e9

See more details on using hashes here.

File details

Details for the file lambdo-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: lambdo-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 164.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.0

File hashes

Hashes for lambdo-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9977fe40352bb5d2f6bc159051eb1f389612230214e4783a4c52a877cb0b6d9f
MD5 f46a2795dc115f0619d23eb2b80685a7
BLAKE2b-256 5a7f7c5c538121f364708a1ea8adf56a2846c72f9658d2483038ab66b58f2377

See more details on using hashes here.

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