Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1.49 KB

README.md

File metadata and controls

62 lines (42 loc) · 1.49 KB

lamblbs

Unofficial Lambdalabs CLI

⚡ Minimalistic CLI to manage your Lambdalabs Cloud instances ⚡


Introduction

This is a personal project that helped me automate the provisioning and deprovisioning of Lambdalabs Cloud instances while I was playing with Ray on-prem clusters. I thought it might be useful for others and decided to share it for anyone to use it. This CLI is leveraging the Lambdalabs API, but it is by no means endorsed by or associated with the Lambdalabs company.

Pre-requisites

Configure your Lambdalabs API key using

export LAMBDALABS_API_KEY=....

Installation

pip install lamblbs

Usage

List instance types

lamblbs instance types

List running instances

lamblbs instance show-all

Launch a new instance

lamblbs instance launch \
--name ray-head-node \
--type gpu_1x_a10 \
--region us-west-1 \
--ssh_key lambdalabs-ssh-ray \
--qty 1

NOTE: This assumes you've created the lambdalabs-ssh-ray before hand.

Check and wait for your instances to be active

lamblbs instance check-status --status active

There are other supported commands as well which can be displayed using:

lamblbs --help