CLI Overview
Learn how the HostnExtra command-line interface is organised.
CLI Overview
The HostnExtra CLI provides a single command for managing official HostnExtra plugins and running their commands.
Instead of installing multiple standalone tools, you install the HostnExtra CLI once and extend it by adding the plugins you need.
Command Structure
All commands begin with the hostnextra executable.
hostnextra <command> [options]Examples:
hostnextra help
hostnextra version
hostnextra plugin list
hostnextra plugin add ssh-config
hostnextra ssh list
hostnextra ssh connect productionBuilt-in Commands
The HostnExtra CLI includes several built-in commands for managing the CLI and official plugins.
| Command | Description |
|---|---|
help | Display CLI help |
version | Display the installed version |
plugin list | List available plugins |
plugin add | Install a plugin |
plugin remove | Remove a plugin |
plugin update | Update an installed plugin |
Plugin Commands
Once a plugin is installed, its commands become available through the hostnextra command.
For example, after installing the SSH Config plugin:
hostnextra ssh listhostnextra ssh addhostnextra ssh connect productionThe HostnExtra CLI automatically discovers and executes the appropriate plugin.
Design Principles
The HostnExtra CLI is designed around a few core principles:
- One CLI for the entire HostnExtra ecosystem
- Modular plugin architecture
- Consistent command structure
- Independent plugin releases
- Cross-platform compatibility
Next Steps
Continue with the command reference to learn how each built-in command works.