بنقرة واحدة
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.