Skip to main content
nicky-fortinet
Staff
Staff
July 31, 2025

Technical Tip: Configure the Lacework CLI using a downloaded API key

Description This article explains how to configure the Lacework FortiCNAPP CLI with a downloaded API key. 
Scope FortiCNAPP, Lacework, CLI, API.
Solution

First, download an API key from the Lacework FortiCNAPP platform by going to Settings -> API Keys. Select the key, then select the icon to download it.


lwcliplatform.jpg

 

Next, switch to the command line with the FortiCNAPP CLI installed:

 

Run the following command:

 

lacework configure -j <PATH TO API KEY FILE>

This will then automatically configure the FortiCNAPP Lacework CLI with the downloaded key.

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT