Setting up Lightwing CLI

Introduction

Lightwing CLI provides a command line interface to Lightwing. This also allows to proxy TCP traffic in to the resources managed by lightwing.

Downloading lightwing CLI

Windows:

  1. Download: https://lightwing-downloads.s3-ap-southeast-1.amazonaws.com/lwc_1.2.1_windows_amd64.zip
  2. Extract the zip file and execute lwc.exe
  3. You can place lwc.exe in to the PATH so that it can be invoked easily from the command prompt

Linux

> wget https://lightwing-downloads.s3-ap-southeast-1.amazonaws.com/lwc_1.2.1_linux_amd64.zip
> unzip lwc_1.2.1_linux_amd64.zip
> sudo cp lwc /usr/local/bin

MacOS

> wget https://lightwing-downloads.s3-ap-southeast-1.amazonaws.com/lwc_1.2.1_darwin_amd64.zip
> unzip lwc_1.2.1_darwin_amd64.zip
> sudo cp lwc /usr/local/bin

Configuring

To verify the installation is successful, run:

> lwc version
Version: 1.0.0
Commit : 5f8a6a30f014ddcd730474be9d82fd0901706193
Built  : Fri Jan  3 13:06:05 IST 2020

Lightwing CLI needs to be connected to your lightwing account. To do that:

> lwc init
Enter Lightwing URL (https://api.lightwing.io): https://api.lightwing.io
Lightwing CLI initialized

> lwc login
Enter Username: youremail@company.com
Enter Password:
Login successful