CLI Commands
Detailed reference for all CLI commands.
incident
Manage security incidents.
list
tw-cli incident list [OPTIONS]
Options:
--status <STATUS> Filter by status (open, triaged, resolved)
--severity <SEVERITY> Filter by severity
--type <TYPE> Filter by incident type
--limit <N> Maximum results (default: 20)
--offset <N> Skip first N results
--sort <FIELD> Sort field (created_at, severity)
--desc Sort descending
get
tw-cli incident get <ID> [OPTIONS]
Options:
--format <FORMAT> Output format (table, json, yaml)
--include-actions Include action history
--include-enrichment Include enrichment data
create
tw-cli incident create [OPTIONS]
Options:
--type <TYPE> Incident type (required)
--source <SOURCE> Incident source (required)
--severity <SEVERITY> Initial severity (default: medium)
--data <JSON> Raw incident data as JSON
--file <FILE> Read data from file
--auto-triage Run triage after creation
update
tw-cli incident update <ID> [OPTIONS]
Options:
--severity <SEVERITY> Update severity
--status <STATUS> Update status
--assignee <USER> Assign to user
resolve
tw-cli incident resolve <ID> [OPTIONS]
Options:
--resolution <TEXT> Resolution notes
--false-positive Mark as false positive
action
Execute and manage actions.
execute
tw-cli action execute [OPTIONS]
Options:
--incident <ID> Associated incident
--action <NAME> Action to execute (required)
--param <KEY=VALUE> Action parameter (repeatable)
--emergency Emergency override (manager only)
list
tw-cli action list [OPTIONS]
Options:
--incident <ID> Filter by incident
--status <STATUS> Filter by status
--pending Show only pending approval
get
tw-cli action get <ID>
approve
tw-cli action approve <ID> [OPTIONS]
Options:
--comment <TEXT> Approval comment
reject
tw-cli action reject <ID> [OPTIONS]
Options:
--reason <TEXT> Rejection reason (required)
rollback
tw-cli action rollback <ID> [OPTIONS]
Options:
--reason <TEXT> Rollback reason
triage
Run AI triage.
run
tw-cli triage run [OPTIONS]
Options:
--incident <ID> Incident to triage (required)
--playbook <NAME> Specific playbook
--model <MODEL> AI model override
--wait Wait for completion
status
tw-cli triage status <TRIAGE_ID>
playbook
Manage playbooks.
list
tw-cli playbook list [OPTIONS]
Options:
--enabled Only enabled playbooks
--trigger-type <TYPE> Filter by trigger type
get
tw-cli playbook get <ID>
add
tw-cli playbook add <FILE>
update
tw-cli playbook update <ID> <FILE>
delete
tw-cli playbook delete <ID>
run
tw-cli playbook run <ID> [OPTIONS]
Options:
--incident <ID> Incident to process
--var <KEY=VALUE> Override variable (repeatable)
--dry-run Don't execute actions
test
tw-cli playbook test <NAME> [OPTIONS]
Options:
--incident <ID> Use existing incident
--data <JSON> Use mock data
--dry-run Don't execute actions
validate
tw-cli playbook validate <FILE>
export
tw-cli playbook export <ID> [OPTIONS]
Options:
-o, --output <FILE> Output file (default: stdout)
policy
Manage policy rules.
list
tw-cli policy list
add
tw-cli policy add [OPTIONS]
Options:
--name <NAME> Rule name (required)
--action <ACTION> Action to match
--pattern <PATTERN> Action pattern (glob)
--severity <SEVERITY> Severity condition
--approval-level <L> Required approval level
--allow Auto-allow
--deny Deny with reason
--reason <TEXT> Denial reason
delete
tw-cli policy delete <NAME>
test
tw-cli policy test [OPTIONS]
Options:
--action <ACTION> Action to test
--severity <SEVERITY> Incident severity
--proposer-type <T> Proposer type
--confidence <N> AI confidence score
connector
Manage connectors.
status
tw-cli connector status
test
tw-cli connector test <NAME>
configure
tw-cli connector configure <NAME> [OPTIONS]
Options:
--mode <MODE> Connector mode
--api-key <KEY> API key
--url <URL> Service URL
user
User management.
list
tw-cli user list
create
tw-cli user create [OPTIONS]
Options:
--username <NAME> Username (required)
--email <EMAIL> Email address
--role <ROLE> User role
--service-account Create as service account
update
tw-cli user update <ID> [OPTIONS]
Options:
--role <ROLE> New role
--enabled Enable user
--disabled Disable user
delete
tw-cli user delete <ID>
api-key
API key management.
list
tw-cli api-key list
create
tw-cli api-key create [OPTIONS]
Options:
--name <NAME> Key name (required)
--scopes <SCOPES> Comma-separated scopes
--user <USER> Associated user
--expires <DATE> Expiration date
revoke
tw-cli api-key revoke <PREFIX>
rotate
tw-cli api-key rotate <PREFIX>
webhook
Webhook management.
list
tw-cli webhook list
add
tw-cli webhook add <SOURCE> [OPTIONS]
Options:
--secret <SECRET> Webhook secret
--auto-triage Enable auto-triage
--playbook <NAME> Playbook to run
test
tw-cli webhook test <SOURCE>
delete
tw-cli webhook delete <SOURCE>
db
Database operations.
migrate
tw-cli db migrate
backup
tw-cli db backup [OPTIONS]
Options:
-o, --output <FILE> Backup file path
restore
tw-cli db restore <FILE>
serve
Start the API server.
tw-cli serve [OPTIONS]
Options:
--host <HOST> Bind address (default: 0.0.0.0)
--port <PORT> Port number (default: 8080)
--config <FILE> Configuration file