Skip to main content
lsh is Latitude.sh’s command line interface. Free and open source. lsh is the easiest way to deploy and manage your infrastructure without leaving the terminal. Use lsh to work with servers, settings and more.
The CLI is open source and contributions are welcome. Go to the Github repo, share what you’d like to see, or open a PR with your suggestions!

Try Latitude.sh on the command line

Install on MacOS, Linux or WSL: Using Homebrew
brew install latitudesh/tools/lsh
Using the installation script
curl -fsSL https://cli.latitude.sh/install.sh | sh
After installation concludes, the lsh command should be available.

Getting started

Using lsh is as easy as using the API or dashboard. The response is returned in a table format, but JSON is also available by passing the --json argument.

Authentication

The CLI supports two authentication methods: Browser-assisted login (recommended) Run lsh login without arguments. The CLI opens your browser to authorize the session:
lsh login
  1. A verification code appears in your terminal
  2. Your browser opens to the authorization page
  3. Confirm the code matches, select a team, and click Authorize
  4. Return to your terminal—you’re logged in
API key login You can authenticate directly with an API key. Create one from Settings → API Keys in the dashboard, then run:
lsh login --with-token <API_KEY>