一键导入
fortinet-cli-setup
Install and configure the Lacework CLI with IaC and SCA scanning components
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Install and configure the Lacework CLI with IaC and SCA scanning components
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | fortinet:cli-setup |
| description | Install and configure the Lacework CLI with IaC and SCA scanning components |
| user-invocable | true |
Install and configure the Lacework CLI and security scanning components.
Run the setup script:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/install-lw.sh"
The script will:
jq if missingThe script resolves Lacework credentials in this order:
~/.lacework.toml — if already configured (e.g. from a previous lacework configure run), it is used as-is with no prompts.LW_ACCOUNT, LW_API_KEY, and LW_API_SECRET are set, the script runs lacework configure --noninteractive to persist them. LW_SUBACCOUNT is optional.lacework configure and the Lacework CLI prompts for the required fields.This only happens in a non-interactive environment (e.g. CI) with no existing ~/.lacework.toml and no env vars set. Tell the user to either:
export LW_ACCOUNT="your-account.lacework.net"
export LW_API_KEY="your-api-key"
export LW_API_SECRET="your-api-secret"
export LW_SUBACCOUNT="your-subaccount" # optional, for multi-tenant accounts
lacework configure themselves in a terminal to create ~/.lacework.toml, then re-run setup.Report a summary of what happened:
If everything succeeded, tell the user they can now use /fortinet:code-review to scan their code.
During setup, the script asks the user to choose a scanning mode:
git commit. Critical/High findings block the commit.In non-interactive environments, the default is pre-commit.
The mode is stored in ~/.lacework/plugins/code-security.json and can be changed later via /fortinet:settings.