Implementation:0xSteph Pentest ai Install Wizard
| Knowledge Sources | |
|---|---|
| Domains | CLI, Tool_Installation, Interactive_Wizard |
| Last Updated | 2026-10-23 00:00 GMT |
Overview
Concrete tool for interactive tier-based tool installation with a 1-2-3 picker and per-tool option, provided by the pentest-ai CLI module.
Description
The install_wizard module presents an interactive tool-installer wizard for ptai. It offers a 1-2-3 tier picker (Core, Recommended, Full), a per-tool install option, and accepts a comma-separated skip list. It dispatches to engine.tool_installer.install_tier or install_tool_by_name for the actual installation. Kept dependency-light so it works whether or not rich is fully wired.
Usage
Import this module when you need to run the interactive install wizard. Used by the ptai install CLI command.
Code Reference
Source Location
- Repository: 0xSteph_Pentest_ai
- File: cli/install_wizard.py
- Lines: 1-127
Signature
def _prompt_choice(input_fn=input) -> InstallTier | str | object: ...
def install_named(names: list[str]) -> dict: ...
def run(skip_interactive: bool = False, tier: str = "recommended", skip_list: str = "") -> int: ...
Import
from cli.install_wizard import run, install_named
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| skip_interactive | bool | No | Skip prompts, use defaults |
| tier | str | No | Tier to install when non-interactive (default: "recommended") |
| skip_list | str | No | Comma-separated tool names to skip |
Outputs
| Name | Type | Description |
|---|---|---|
| exit code | int | 0 on success |
Usage Examples
Interactive Wizard
from cli.install_wizard import run
# Prompts the user for tier choice
exit_code = run()
Non-Interactive Install
from cli.install_wizard import run
# Install recommended tier, skip nmap and hydra
exit_code = run(skip_interactive=True, tier="recommended", skip_list="nmap,hydra")