Install the CLI
The liblab CLI can be installed by using your terminal of choice using npm, pnpm or Homebrew:
- npm
- pnpm
- Homebrew
To install the liblab CLI make sure you have Node.js version 18.17 or later installed. We recommend using nvm
to manage your Node.js versions.
You can install the CLI using npm
by running this command in your terminal:
npm install -g liblab
To install the liblab CLI make sure you have Node.js version 18.17 or later installed, as well as pnpm
.
You can install the CLI using pnpm
by running this command in your terminal:
pnpm add -g liblab
If you are using Homebrew, first you need to add the liblab repository to your list of Homebrew taps. You can do this by running this command in your terminal:
brew tap liblaber/homebrew-liblab
Then you can install the liblab CLI by running this command:
brew install liblab
This will install the latest version of the CLI to your computer. To verify that the CLI has been installed properly, run:
liblab --version
You should see the version in the output:
➜ ~ liblab --version
liblab/0.18.0 darwin-arm64 node-v18.17.2
If a new version of the CLI is released, you will need to update - if you try to run a command with an outdated version of the CLI, you will see an error message telling you to update. To update the CLI to the latest version, run:
- npm
- pnpm
- Homebrew
npm update -g liblab
If you prefer to run the latest version at all times, you can do so using npx
. Just add npx
before any of your commands. For example:
npx liblab@latest [command]
This is useful when an automated system needs to run the CLI such as in the case of CI/CD.
pnpm up -g liblab
First update the Homebrew package list by running:
brew update
Then upgrade the CLI:
brew install liblab