Decided to make a CLI for the Lambda GPU. WIP, but works for me, hope it works for you! Made mainly with Typer and Bullet.
poetry build
pip install --user ./dist/lambda_cli-0.1.0-py3-none-any.whl
Usage:
$ lambda [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:
ls
: List running instances.new
: Provision a new GPU instance.stop
: Terminate a running instance.
List running instances.
Usage:
$ lambda ls [OPTIONS]
Options:
--help
: Show this message and exit.
Provision a new GPU instance.
Usage:
$ lambda new [OPTIONS]
Options:
--ssh / --no-ssh
: Append an entry to ssh config at ~/.ssh/config [default: no-ssh]--help
: Show this message and exit.
Terminate a running instance.
Usage:
$ lambda stop [OPTIONS]
Options:
--help
: Show this message and exit.