Commands
ctpf targets list
List all configured targets.
ctpf targets add
Add a new scan target. Supply the name and URI as positional arguments, or omit both to use
interactive prompts in a terminal.
| Argument | Description |
|---|---|
NAME | Human-readable target name. Prompted interactively if omitted. |
URI | Connection endpoint. Prompted interactively if omitted. |
| Option | Default | Description |
|---|---|---|
--type, -t | server | Target type, such as server or endpoint. |
--meta KEY=VALUE | — | Target metadata. Repeat the option to add multiple values. |
ctpf targets delete
Delete a scan target.
| Argument | Description |
|---|---|
ID | Target ID. Supports partial IDs (first 8+ characters). |
| Option | Description |
|---|---|
--yes | Skip confirmation prompt. |
- Removes the target from the database
- Associated runs are orphaned (their
target_idis set to NULL) - Runs, findings, and evidence are not deleted
Partial ID matching requires at least 8 characters and must be unambiguous. If multiple targets match, you’ll be prompted to use a longer prefix.