HostnExtraHostnExtra Docs

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 production

Built-in Commands

The HostnExtra CLI includes several built-in commands for managing the CLI and official plugins.

CommandDescription
helpDisplay CLI help
versionDisplay the installed version
plugin listList available plugins
plugin addInstall a plugin
plugin removeRemove a plugin
plugin updateUpdate 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 list
hostnextra ssh add
hostnextra ssh connect production

The 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.

On this page