Links
Comment on page

Installation

Guide for installing lstn inside your environments.
lstn is a command-line utility that serves as the primary interface for listen.dev.
It runs on your local machine and CI, and supports a variety of operating systems and architectures. Please select the appropriate installation method depending on your environment using the instructions below. For information on releases, please refer to the release page on the official GitHub repo for lstn.

-> Install lstn on local machine

Follow the instrutions depending on your operating system:
 macOS
Linux
Docker
Windows
Run the following commands in your terminal to download the lstn binary:
curl -sSfL https://lstn.dev/get -o install.sh
chmod +x install.sh
sudo ./install.sh -b /usr/local/bin
Verify installation:
lstn version
Run the following commands in your terminal to download the lstn binary:
curl -sSfL https://lstn.dev/get -o install.sh
chmod +x install.sh
sudo ./install.sh -b /usr/local/bin
Verify installation:
lstn version
Pull and use the container image for the lstn CLI to use in local or CI environments:
docker pull garnetlabs/lstn:0.3.0
alias lstn='docker run --rm docker.io/garnetlabs/lstn:0.3.0'
Coming soon

-> Install lstn in CI

There are a few ways to install lstn on your CI runner. Any CI runner
  • To install the binary in $GOPATH (requires go)
curl -sSfL https://lstn.dev/get | sh -s -- -b $(go env GOPATH)/bin
  • To install into $PWD/bin/
curl -sSfL https://lstn.dev/get | sh -s
  • For Alpine Linux (as it does not come with curl by default):
wget -O- -nv https://lstn.dev/get | sh -s
GitHub actions
Follow the dedicated Integration guidefor GitHub actions.
Last modified 8mo ago
© 2023 Garnet Labs