Command line
The hostlens command is installed with the Python package
The CLI calls the same HostLens methods as the Python API
Identify one address
The command prints known identity fields and the overall confidence
Scan a network
Use the detected local subnet
Choose a mode
Pass a subnet explicitly
--fast and --deep cannot be used together
The scan command prints an address as soon as it is found, then prints the completed profile after enrichment
Quick discovery
This uses fast mode and prints the resulting profiles
Passive watch
Stop the command with Ctrl+C
Run without the console script
This is useful when checking which Python environment contains HostLens
If python -m hostlens.cli works but hostlens does not, the virtual environment is probably inactive or its scripts directory is missing from PATH