Skip to content

fix(cli): show installed component commands in help text#1818

Merged
lokesh-vadlamudi merged 2 commits intomainfrom
lvadlamudi/LINK-4290
Mar 12, 2026
Merged

fix(cli): show installed component commands in help text#1818
lokesh-vadlamudi merged 2 commits intomainfrom
lvadlamudi/LINK-4290

Conversation

@lokesh-vadlamudi
Copy link
Collaborator

@lokesh-vadlamudi lokesh-vadlamudi commented Mar 12, 2026

Summary

The Lacework CLI doesn't show the component (iac/sca/etc) commands in the CLI help even after component is installed via lacework component install

How did you test this change?

Tested on dev space.

### Before fix:

`msimos@ubuntu-vm:~$ lacework component list
     STATUS                NAME             VERSION                  DESCRIPTION                 
----------------+-------------------------+---------+--------------------------------------------
  Installed       sca                       0.1.87    Software Component Analysis                
  Not Installed   preflight                 0.8.21    Preflight check for Cloud Setup            
  Not Installed   vuln-scanner              0.24.0    Lacework inline scanner                    
  Not Installed   chronicle-alert-channel   0.0.4     Send Alerts to Google Chronicle            
  Not Installed   component-example         0.9.7     Component description                      
  Installed       iac                       1.0.47    Infrastructure as Code (IaC) scanner       
  Not Installed   remediate                 0.6.4     A tool to isolate and remediate resources
  
  msimos@ubuntu-vm:~$ lacework
The Lacework Command Line Interface is a tool that helps you manage the
Lacework cloud security platform. Use it to manage compliance reports,
external integrations, vulnerability scans, and other operations.

Start by configuring the Lacework CLI with the command:

lacework configure

This will prompt you for your Lacework account and a set of API access keys.

Usage:
  lacework [command]

Available Commands:
  access-token            Generate temporary API access tokens
  account                 Manage accounts in an organization (org admins only)
  agent                   Manage Lacework agents
  alert                   Inspect and manage alerts
  alert-channel           Manage alert channels
  alert-profile           Manage alert profiles
  alert-rule              Manage alert rules
  api                     Helper to call Lacework's API
  cloud-account           Manage cloud accounts
  compliance              Manage compliance reports
  component               Manage components
  configure               Configure the Lacework CLI
  container-registry      Manage container registries
  generate                Generate code to onboard your account
  help                    Help about any command
  policy                  Manage policies
  policy-exception        Manage policy exceptions
  query                   Run and manage queries
  report-rule             Manage report rules
  resource-group          Manage resource groups
  team-member             Manage team members
  version                 Print the Lacework CLI version
  vulnerability           Container and host vulnerability assessments
  vulnerability-exception Manage vulnerability exceptions`

### After fix:

lvadlamudimacOS 15:~ lvadlamudi$ lacework component list
     STATUS             NAME          VERSION                  DESCRIPTION                 
----------------+-------------------+---------+--------------------------------------------
  Not Installed   remediate           0.6.4     A tool to isolate and remediate resources  
  Not Installed   sca                 0.1.92    Software Component Analysis                
  Not Installed   component-example   0.9.7     Component description                      
  Installed       iac                 1.1.3     Infrastructure as Code (IaC) scanner       
  Not Installed   preflight           0.8.21    Preflight check for Cloud Setup            
lvadlamudimacOS 15:~ lvadlamudi$ lacework
The Lacework Command Line Interface is a tool that helps you manage the
Lacework cloud security platform. Use it to manage compliance reports,
external integrations, vulnerability scans, and other operations.

Start by configuring the Lacework CLI with the command:

    lacework configure

This will prompt you for your Lacework account and a set of API access keys.

Usage:
  lacework [command]

Available Commands:
  access-token            Generate temporary API access tokens
  account                 Manage accounts in an organization (org admins only)
  agent                   Manage Lacework agents
  alert                   Inspect and manage alerts
  alert-channel           Manage alert channels
  alert-profile           Manage alert profiles
  alert-rule              Manage alert rules
  api                     Helper to call Lacework's API
  cloud-account           Manage cloud accounts
  compliance              Manage compliance reports
  component               Manage components
  configure               Configure the Lacework CLI
  container-registry      Manage container registries
  generate                Generate code to onboard your account
  help                    Help about any command
  policy                  Manage policies
  policy-exception        Manage policy exceptions
  query                   Run and manage queries
  report-rule             Manage report rules
  resource-group          Manage resource groups
  team-member             Manage team members
  version                 Print the Lacework CLI version
  vulnerability           Container and host vulnerability assessments
  vulnerability-exception Manage vulnerability exceptions

Commands from components:
  iac                     Infrastructure as Code (IaC) scanner

Flags:
  -a, --account string      account subdomain of URL (i.e. <ACCOUNT>.lacework.net)
  -k, --api_key string      access key id
  -s, --api_secret string   secret access key
      --api_token string    access token (replaces the use of api_key and api_secret)
      --debug               turn on debug logging
      --json                switch commands output from human-readable to json format
      --nocache             turn off caching
      --nocolor             turn off colors
      --noninteractive      turn off interactive mode (disable spinners, prompts, etc.)
      --organization        access organization level data sets (org admins only)
  -p, --profile string      switch between profiles configured at ~/.lacework.toml
      --subaccount string   sub-account name inside your organization (org admins only)

Use "lacework [command] --help" for more information about a command.`

```




**### ## Issue**

https://lacework.atlassian.net/browse/LINK-4290


Adding @ian-fox Change as well in this PR.
https://github.com/lacework/go-sdk/pull/1817 

@lokesh-vadlamudi lokesh-vadlamudi self-assigned this Mar 12, 2026
@lokesh-vadlamudi lokesh-vadlamudi marked this pull request as ready for review March 12, 2026 17:48
@lokesh-vadlamudi lokesh-vadlamudi requested a review from a team as a code owner March 12, 2026 17:48
@lokesh-vadlamudi lokesh-vadlamudi enabled auto-merge (squash) March 12, 2026 17:48
@lokesh-vadlamudi lokesh-vadlamudi merged commit 9a857ae into main Mar 12, 2026
13 checks passed
@lokesh-vadlamudi lokesh-vadlamudi deleted the lvadlamudi/LINK-4290 branch March 12, 2026 18:29
@lacework-releng lacework-releng mentioned this pull request Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants