CLI Commands
Cyberstrike provides a powerful command line interface for security assessments. This reference covers all available commands, options, and usage patterns.
🎬 GIF: g02-model-switch.gif
İnteraktif model değiştirme demosu (10s)
📸 SCREENSHOT: s04-model-dialog.png
Model seçim dialogu
📊 DIAGRAM: command-hierarchy.mermaid
Komut hiyerarşi diyagramı
Command Structure
cyberstrike [global-options] <command> [command-options] [arguments]Global Options
| Option | Alias | Description |
|---|---|---|
--help | -h | Display help information |
--version | -v | Show version number |
--print-logs | Print logs to stderr | |
--log-level | Set log level (DEBUG, INFO, WARN, ERROR) |
Interactive Mode
Launch the terminal user interface without arguments:
cyberstrikeInteractive Mode Options
| Option | Alias | Description |
|---|---|---|
--model <model> | -m | Model in format provider/model |
--agent <name> | Security agent to use | |
--continue | -c | Continue last session |
--session <id> | -s | Resume specific session |
Examples
# Start with specific modelcyberstrike --model anthropic/claude-sonnet-4-20250514
# Use web application agentcyberstrike --agent web-application
# Continue previous sessioncyberstrike --continuerun
Execute a single prompt without entering interactive mode.
cyberstrike run [message..] [options]Options
| Option | Alias | Description |
|---|---|---|
--model <model> | -m | Model in format provider/model |
--agent <name> | Agent to use | |
--continue | -c | Continue last session |
--session <id> | -s | Resume specific session |
--file <path> | -f | Attach file(s) to message |
--format <type> | Output format: default or json | |
--share | Share the session | |
--title <text> | Set session title | |
--attach <url> | Attach to running server | |
--variant <type> | Model variant (high, max, minimal) |
Examples
# Run single commandcyberstrike run "scan example.com for open ports"
# Attach file to requestcyberstrike run "analyze this config" -f nginx.conf
# Output as JSONcyberstrike run "list vulnerabilities" --format json
# Continue previous sessioncyberstrike run "now check for XSS" --continuePiping Input
Accept input from stdin:
echo "analyze this code" | cyberstrike runcat report.txt | cyberstrike run "summarize this"auth
Manage authentication credentials for AI providers.
auth login
Add credentials for an AI provider:
cyberstrike auth login [url]Interactive Login
cyberstrike auth login# Select provider from list# Enter API key when promptedWell-Known URL Login
cyberstrike auth login https://custom-provider.example.comauth logout
Remove stored credentials:
cyberstrike auth logout# Select provider from listauth list
Display all configured credentials:
cyberstrike auth listOutput shows:
- Stored credentials by provider
- Authentication type (api, oauth)
- Active environment variables
mcp
Manage Model Context Protocol (MCP) servers.
mcp list
List configured MCP servers and their status:
cyberstrike mcp listStatus indicators:
✓Connectedâ—‹Not initialized / DisabledâšNeeds authentication✗Failed
mcp add
Add a new MCP server interactively:
cyberstrike mcp addThe wizard prompts for:
- Location (project or global)
- Server name
- Server type (local or remote)
- Connection details
Local Server Example
# After running `cyberstrike mcp add`:# Location: Current project# Name: filesystem# Type: Local# Command: npx @modelcontextprotocol/server-filesystem /path/to/dirRemote Server Example
# After running `cyberstrike mcp add`:# Location: Global# Name: custom-api# Type: Remote# URL: https://api.example.com/mcp# OAuth: Yes/Nomcp auth
Authenticate with an OAuth-enabled MCP server:
cyberstrike mcp auth [name]mcp auth list
List OAuth status for all MCP servers:
cyberstrike mcp auth listmcp logout
Remove OAuth credentials:
cyberstrike mcp logout [name]mcp debug
Debug OAuth connection issues:
cyberstrike mcp debug <name>session
Manage conversation sessions.
session list
List all sessions:
cyberstrike session list [options]| Option | Alias | Description |
|---|---|---|
--max-count <n> | -n | Limit to N recent sessions |
--format <type> | Output: table or json |
Examples
# List 10 most recent sessionscyberstrike session list -n 10
# Export as JSONcyberstrike session list --format jsonmodels
List available AI models.
cyberstrike modelsDisplays all models organized by provider with:
- Model identifier
- Model name
- Capabilities
agent
Manage security agents.
cyberstrike agent [name]Listing Agents
cyberstrike agent# Shows available agentsAgent Information
cyberstrike agent web-application# Shows agent details and promptgithub
GitHub integration commands.
github pr
Create or review pull requests:
cyberstrike github pr [options]github issue
Work with GitHub issues:
cyberstrike github issue [number]pr
Quick pull request operations.
cyberstrike pr [options]export
Export session data.
cyberstrike export <session-id> [options]| Option | Description |
|---|---|
--format <type> | Export format |
--output <path> | Output file path |
import
Import session data.
cyberstrike import <file> [options]upgrade
Update Cyberstrike to the latest version.
cyberstrike upgradeuninstall
Remove Cyberstrike from your system.
cyberstrike uninstallserve
Start the Cyberstrike API server.
cyberstrike serve [options]| Option | Description |
|---|---|
--port <number> | Server port |
--host <address> | Bind address |
stats
Display usage statistics.
cyberstrike statsShows:
- Token usage
- Session counts
- Cost estimates
completion
Generate shell completion scripts.
# Bashcyberstrike completion >> ~/.bashrc
# Zshcyberstrike completion >> ~/.zshrc
# Fishcyberstrike completion | sourceEnvironment Variables
Configure Cyberstrike behavior through environment variables:
| Variable | Description |
|---|---|
CYBERSTRIKE_PROVIDER | Default AI provider |
CYBERSTRIKE_MODEL | Default model |
CYBERSTRIKE_AGENT | Default agent |
CYBERSTRIKE_AUTO_SHARE | Auto-share sessions |
ANTHROPIC_API_KEY | Anthropic API key |
OPENAI_API_KEY | OpenAI API key |
GOOGLE_API_KEY | Google AI API key |
OPENROUTER_API_KEY | OpenRouter API key |
Exit Codes
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
2 | Invalid arguments |
130 | Interrupted (Ctrl+C) |
Configuration Files
Cyberstrike reads configuration from these locations:
| Path | Scope |
|---|---|
./cyberstrike.json | Project |
./.cyberstrike/config.json | Project |
~/.cyberstrike/config.json | Global |
See Configuration Reference for schema details.