CLI Reference
Complete reference for all HostFn CLI commands.
HostFn provides a comprehensive CLI for managing application deployments. All commands are available after installing the hostfn package globally.
npm install -g hostfnCommands Overview
| Command | Description |
|---|---|
hostfn init | Initialize HostFn configuration in current project |
hostfn deploy | Deploy application to server |
hostfn expose | Configure Nginx and SSL for deployed services |
hostfn status | Show application status |
hostfn logs | View application logs |
hostfn rollback | Rollback to previous deployment |
hostfn env | Manage environment variables |
hostfn server | Server management commands |
Global Options
hostfn --version # Show version number
hostfn --help # Show help
hostfn <cmd> --help # Show help for a specific command