CLI Reference
Complete reference for all Osmedeus command-line commands and options.Global Options
These options are available for all commands:| Option | Description |
|---|---|
--config | Path to config file (default: ~/.osmedeus/config.yaml) |
--debug | Enable debug logging |
--quiet | Suppress non-essential output |
--no-color | Disable colored output |
--help, -h | Show help |
run
Execute workflows against targets.Basic Usage
Options
| Option | Short | Description |
|---|---|---|
--flow | -f | Flow workflow to run |
--module | -m | Module workflow to run (repeatable) |
--target | -t | Target to scan |
--targets | -T | File containing targets |
--params | -P | Params file (YAML) |
--param | -p | Single param (key=value, repeatable) |
--concurrency | -c | Concurrent target scans (default: 1) |
--timeout | Run timeout (e.g., 2h, 30m) | |
--repeat | Repeat execution continuously | |
--exclude | -x | Exclude modules (comma-separated) |
--threads-hold | Override thread count | |
--dry-run | Validate without executing | |
--progress-bar | -G | Show progress bar during execution (enables silent mode) |
--workspace | -w | Custom workspace name |
--resume | Resume from previous state |
Chunk Mode Options
For distributed scanning across multiple machines:| Option | Description |
|---|---|
--chunk-size N | Split targets into chunks of N targets each |
--chunk-count N | Split targets into N equal chunks |
--chunk-part M | Execute only chunk M (0-indexed) |
--chunk-threads | Override concurrency within chunk |
Advanced Options
| Option | Description |
|---|---|
--skip-validation | Skip target type validation from dependencies.variables |
--disable-workflow-state | Disable writing workflow YAML to output directory |
--heuristics-check | Heuristics check level: none, basic, advanced (default: basic) |
--module-url | URL to fetch module YAML from (supports GitHub private repos) |
--std-module | Read module YAML from stdin |
Examples
Chunk Mode Examples
{{ChunkIndex}}, {{ChunkSize}}, {{TotalChunks}}, {{ChunkStart}}, {{ChunkEnd}}
workflow
Manage and inspect workflows.workflow list
List all available workflows.| Option | Description |
|---|---|
--tags | Filter by tags (comma-separated) |
--show-tags | Show tags column in output |
--verbose, -v | Show workflows with errors |
workflow show
Display workflow details.| Option | Description |
|---|---|
--verbose, -v | Show detailed variable descriptions |
--yaml | Show raw YAML with syntax highlighting |
workflow validate / lint
Validate and lint workflow YAML files.| Option | Description |
|---|---|
--check | Exit with error code if issues found (for CI) |
--format | Output format: pretty, json, github |
--severity | Minimum severity: info, warning, error |
--disable | Disable rules (comma-separated) |
--fail-fast | Stop on first validation failure |
| Rule | Severity | Description |
|---|---|---|
missing-required-field | warning | Required fields (name, kind, type) missing |
duplicate-step-name | warning | Multiple steps with same name |
empty-step | warning | Step has no executable content |
unused-variable | info | Variable exported but never used |
undefined-variable | warning | Variable referenced but not defined |
invalid-goto | warning | Decision goto references non-existent step |
invalid-depends-on | warning | depends_on references non-existent step |
circular-dependency | warning | Circular step dependencies detected |
func
Execute and inspect utility functions.func list
List all available utility functions.| Option | Description |
|---|---|
--category | Filter by category |
--search | Search function names/descriptions |
func execute
Execute a function expression.server
Start the REST API server.| Option | Description |
|---|---|
--port | Server port (default: 8080) |
--host | Bind address (default: 0.0.0.0) |
--master | Run as distributed master |
--token | API authentication token |
worker
Manage distributed workers.worker join
Join as a distributed worker.| Option | Description |
|---|---|
--master | Master server URL |
--token | Authentication token |
--name | Worker name |
install
Install external binaries and configure environment.install binary
Install security tools.| Option | Description |
|---|---|
--name | Specific binary to install |
--all | Install all binaries |
--check | Check installation status |
--nix-build-install | Install via Nix |
--nix-installation | Install Nix package manager |
--list-registry-nix-build | List Nix-available binaries |
--list-registry-direct-fetch | List direct-download binaries |
install env
Configure shell environment.| Option | Description |
|---|---|
--all | Add to all shell configs |
--shell | Specific shell (bash, zsh, fish) |
update
Self-update Osmedeus.| Option | Description |
|---|---|
--check | Check for updates without installing |
snapshot
Export and import workspace archives.snapshot export
Export workspace as ZIP archive.| Option | Description |
|---|---|
--output | Output file path |
--include-artifacts | Include all artifacts |
snapshot import
Import workspace from archive.- Local file path
- HTTP/HTTPS URL
snapshot list
List available snapshots.db
Database management commands.db list
List database entries.| Option | Description |
|---|---|
--workspace | Filter by workspace |
--format | Output format (table, json, csv) |
db export
Export database to file.health
Check system health and configuration.- Configuration file status
- Database connectivity
- External binaries availability
- Workflows loaded count
- Disk space
- Network connectivity
Usage Examples
Show all usage examples.Environment Variables
| Variable | Description |
|---|---|
OSM_CONFIG | Config file path |
OSM_BASE | Base folder path |
OSM_WORKSPACES | Workspaces folder path |
OSM_DEBUG | Enable debug mode |
OSM_TOKEN | API authentication token |