bundle.lambdalabs.cli

CLI for Lambda Labs cloud GPU management.

Attributes

Functions

lambdalabs()

Lambda Labs cloud GPU — launch, manage, and run remote jobs.

setup(api_key, ssh_key, region, instance_type, filesystem)

Save API key and defaults to ~/.bundle/lambdalabs.json.

types(api_key)

List available GPU instance types and prices.

instances()

Manage Lambda Labs instances.

instances_list(api_key)

List all active instances.

instances_launch(instance_type, ssh_key_name, region, ...)

Launch a new GPU instance.

instances_terminate(instance_id, api_key, yes)

Terminate an instance by ID.

keys()

Manage SSH keys in your Lambda Labs account.

keys_list(api_key)

List SSH keys in your account.

keys_add(name, pub_key_path, api_key)

Add an SSH public key to your Lambda account.

filesystems()

Manage Lambda Labs persistent filesystems (NFS, survives instance termination).

filesystems_list(api_key)

List all filesystems in your account.

filesystems_create(name, region, set_default, api_key)

Create a new persistent filesystem.

quickstart()

Interactive guided setup: from zero to a running GPU instance.

Module Contents

bundle.lambdalabs.cli.log
bundle.lambdalabs.cli.console
async bundle.lambdalabs.cli.lambdalabs()

Lambda Labs cloud GPU — launch, manage, and run remote jobs.

async bundle.lambdalabs.cli.setup(api_key: str, ssh_key: str, region: str, instance_type: str, filesystem: str)

Save API key and defaults to ~/.bundle/lambdalabs.json.

async bundle.lambdalabs.cli.types(api_key: str | None)

List available GPU instance types and prices.

async bundle.lambdalabs.cli.instances()

Manage Lambda Labs instances.

async bundle.lambdalabs.cli.instances_list(api_key: str | None)

List all active instances.

async bundle.lambdalabs.cli.instances_launch(instance_type: str | None, ssh_key_name: str | None, region: str | None, name: str | None, filesystem: str | None, wait: bool, api_key: str | None)

Launch a new GPU instance.

async bundle.lambdalabs.cli.instances_terminate(instance_id: str, api_key: str | None, yes: bool)

Terminate an instance by ID.

async bundle.lambdalabs.cli.keys()

Manage SSH keys in your Lambda Labs account.

async bundle.lambdalabs.cli.keys_list(api_key: str | None)

List SSH keys in your account.

async bundle.lambdalabs.cli.keys_add(name: str, pub_key_path: pathlib.Path, api_key: str | None)

Add an SSH public key to your Lambda account.

async bundle.lambdalabs.cli.filesystems()

Manage Lambda Labs persistent filesystems (NFS, survives instance termination).

async bundle.lambdalabs.cli.filesystems_list(api_key: str | None)

List all filesystems in your account.

async bundle.lambdalabs.cli.filesystems_create(name: str, region: str | None, set_default: bool, api_key: str | None)

Create a new persistent filesystem.

async bundle.lambdalabs.cli.quickstart()

Interactive guided setup: from zero to a running GPU instance.

Walks you through:
  1. Creating a Lambda Labs account

  2. Generating an API key

  3. Saving config locally

  4. Adding your SSH key

  5. Choosing and launching an instance type

  6. Connecting via SSH