less-cli
less-cli
is a command-line interface (CLI) tool that allows you to interact with Less framework, making it easier to deploy your Less projects. With less-cli
, you can quickly deploy your Less project to the Less platform.
Table of Contents
Installation
To use less-cli
, you'll need to have Node.js and npm (Node Package Manager) installed on your system. If you haven't already, you can download them from the official Node.js website.
Once you have Node.js and npm installed, you can install less-cli
globally using the following command:
npm install -g @chuva.io/less-cli
This will make the less-cli
command available globally on your system.
Usage
After installation, you can use less-cli
from the command line by running:
less-cli [COMMAND]
Replace [COMMAND]
with one of the available commands described below.
Commands
Deploy
The deploy
command allows you to deploy your Less project to the Less platform.
less-cli deploy <projectName>
<projectName>
: The name of your Less project. It must satisfy the regular expression pattern: [a-zA-Z][-a-zA-Z0-9]
.
Before using the deploy
command, make sure to set the LESS_TOKEN
environment variable with your Less token and you running this command on the root of your less project.
Example:
export LESS_TOKEN=your-less-token
less-cli deploy my-project
Happy deploying with less-cli
!