CLI Installation
Download CLI

- Logon to SBOM360 portal (https://app.veedna.com) 
- Click on "Integrations" icon 
- Click on "Download CLI" 
- Click on "Download SBOMDetect CLI" link 
- Extract the CLI with the below steps 
# Run these commands as a regular user
# Extract the veecli.tar.gz
[email protected]:~$ tar -xzf veecli.tar.gz
# This will create a directory called veecli
[email protected]:~$ cd veecli
# Run pre.sh to set the permissions of the CLI and associated files
[email protected]:~$ bash pre.sh- Go back to SBOM360 portal and click on "Verify Device" (Step-2) 

- Click on "Verify Link" and a device confirmation code will appear 

- Click on “Confirm” 
- Provide the SBOM360 credentials when prompted the login page. If credentials are cached, then it may not prompt for the SBOM360 credentials again. 
Register CLI
- Once the device registration is successful, a code will be displayed in SBOM360 portal. The device registration code is valid only for 5 min. If it expires, click on "Verify Device"->"Verify Link" again to get a new code. 

- Run the following commands from your ubuntu machine where 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 veeCLI
Last updated
