Unofficial CLI to manage Lambdalabs Cloud resources such as: instances, ssh keys
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for lamblbs-2024.2a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 822943bf878d777d2f8484c6f2eeb985bbdf86be7ee9fa605f768997006ee1cf |
|
MD5 | 8bfb06b2be88a8076aefee11bd893c29 |
|
BLAKE2b-256 | bee947364d182f1cff77d7ce2e78a69445595b2710375b98f18cbfa886873a3f |