lsh is the Latitude.sh command-line interface that will help you make it easier to retrieve any data from your team or perform any action you need.
Installing the latest version
brew install latitudesh/tools/lsh
curl -sSL https://raw.githubusercontent.com/latitudesh/lsh/main/install.sh | bash
Visit the Releases page and select any version you want to download.
Log in into Latitude.sh. An API Key is required.
lsh login <API_KEY>
List your servers
lsh servers list
The list of the available commands is available here.
List a server with a specific hostname
lsh servers list --hostname <HOSTNAME>
Create a server with Ubuntu 22
lsh servers create --operating_system ubuntu_22_04_x64_lts --project <PROJECT_ID_OR_SLUG> --site <LOCATION> --hostname <HOSTNAME> --plan <PLAN>
List all GPU plans
lsh plans list --gpu true
You can see more examples here. Reach out if you want to see other use cases on lsh
.
If you encounter any problems when installing the CLI with the installation script, you can use the command below to uninstall the CLI.
curl -sSL https://raw.githubusercontent.com/latitudesh/lsh/main/uninstall.sh | bash
For more information, see the documentation.
-
Open an issue for questions, feedback, bug reports or feature requests.
-
We welcome pull requests for bug fixes, new features, and improvements to the examples.