cli

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

lacework-cli

The Lacework Command Line Interface is a tool that helps you manage your Lacework cloud security platform. You can use it to manage compliance reports, external integrations, vulnerability scans, and other operations.

Install

Bash:
$ curl https://raw.githubusercontent.com/lacework/go-sdk/master/cli/install.sh | sudo bash
Powershell:
C:\> Set-ExecutionPolicy Bypass -Scope Process -Force
C:\> iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/lacework/go-sdk/master/cli/install.ps1'))

Configuration File

The lacework-cli looks for a file named .lacework.toml inside your home directory ($HOME/.lacework.toml) to access the following parameters:

  • account: Account subdomain of URL (i.e. <ACCOUNT>.lacework.net)
  • api_key: API Access Key ID
  • api_secret: API Access Secret Key

An example of a Lacework configuration file:

account = "example"
api_key = "EXAMPLE_1234567890ABC"
api_secret = "_super_secret_key"

You can provide a different configuration file with the option --config.

Basic Usage

Once you have created your configuration file $HOME/.lacework.toml, you are ready to use the Lacework cli, a few basic commands are:

  1. List all integration in your account:
$ lacework-cli integration list
  1. Use the api command to access Lacework's ResfulAPI, for example, to get details about and specific event:
$ lacework-cli api get '/external/events/GetEventDetails?EVENT_ID=16700'

Development

To build and install the CLI from source, use the make install-cli directive, this command will ask you to update your PATH environment variable to point to the compiled lacework-cli binary.

$ make install-cli

# Make sure to update your PATH with the command provided from the above command

$ lacework-cli help

Copyright 2020, Lacework Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL