Installing and Registering the CLI
Use this guide to install the CLI on your VM, register it with Lineaje, or deregister it when you no longer need it.
Installing the CLI
Download the CLI from the Lineaje Portal, extract it on your VM, and register it with your device code.
Log in to the Lineaje Portal.
From the left-hand navigation, choose Integrations.
Under SCA360, click Download SCA360.
Extract the CLI using the following steps:
# Run these commands as a regular user
# Extract the veecli.tar.gz
ubuntu@ip-a.b.c.d:~$ tar -xzf veecli.tar.gz
# This will create a directory called veecli
ubuntu@ip-a.b.c.d:~$ cd veecli
# Run pre.sh to set the permissions of the CLI and associated files
ubuntu@ip-a.b.c.d:~$ bash pre.shGo to the Lineaje Portal and click Verify Device.

Click Verify Link. The device confirmation code appears.

Click Confirm.
Provide your credentials, if prompted.
Registering the CLI
After device registration succeeds, copy the code shown in the Lineaje Portal. The device registration code is valid for 5 minutes. If it expires, click Verify Device → Verify Link to get a new code.

Run the following commands from the Ubuntu machine where the CLI is extracted.
# Run these commands as a regular user
# Go inside the directory where CLI is extracted
ubuntu@ip-172-31-26-185:~$ cd veecli
# Register the CLI with the SBOM360 backend using the device code obtained from portal
ubuntu@ip-172-31-26-185:~$ ./veecli register --devicecode npbP_fImda2Cj_Hzk9LgxJUn
2022-07-07T14:18:15.584+0300 info Starting to register veeCLI
2022-07-07T14:18:16.924+0300 info Successfully configured authentication
2022-07-07T14:18:16.924+0300 debug Signature in auth0 access token payload is
unknown
2022-07-07T14:18:16.933+0300 info Authenticated for Tenant Name - ******, Tenant
Id - vdna_************** and Device Code - npbP_fImda2Cj_Hzk9LgxJUn
2022-07-07T14:18:16.934+0300 info Successfully registered veeCLILast updated