CLI Documentation
#
OverviewThe LiftStation.cloud CLI is used to enter well and lift station data through a command line interface. This may be preferred to sending API requests.
The CLI is written with Node.js. You will need to install Node.js and the NPM package manager to install this program on your computer. Note that the CLI requires version 12 or greater of Node.js.
#
InstallationOnce you have installed Node.js and npm for your operating system run the following command:
Once the installation completes run the following command to verify installation. Note that this screen lists the commands for the CLI.
#
Windows Powershell NotesYou may receive this a message that says lscloud cannot be loaded because running scripts is disabled on this system. You have three options
- Run
Set-ExecutionPolicy RemoteSigned
as an administrator. This command will allow you to run scripts. When you are done you can runSet-ExecutionPolicy Restricted
as an administrator to put things back the way they were. - If you prefer to use Powershell, and you don't want to change the settings for security purposes you can install the
script in the Windows Subsystem for Linux and call it from Powershell. You do this by prefacing commands with
wsl
. Sowsl lscloud get wells
. The Windows Subsystem for Linux also provides a terminal that you could use if you don't need to use powershell. - You can run the script in cmd.
#
BasicsYou can use the parameter --help
with any command to find out more about it