From c0fe5bbe12973c1a9193ecc2e9e2226a38e6cc15 Mon Sep 17 00:00:00 2001 From: bndw Date: Sun, 25 Jan 2026 08:08:24 -0800 Subject: Add examples to help text --- cmd/ship/main.go | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/ship/main.go b/cmd/ship/main.go index 47dd579..cd2b0c1 100644 --- a/cmd/ship/main.go +++ b/cmd/ship/main.go @@ -44,7 +44,24 @@ How it works: Requirements: • A VPS with SSH access (use 'ship host init' to set up a new server) • An SSH config entry or user@host for your server - • A domain pointing to your VPS`, + • A domain pointing to your VPS + +Examples: + # Deploy a Go binary + ship --binary ./myapp --domain api.example.com + + # Deploy with auto-generated subdomain (requires base domain) + ship --binary ./myapp --name myapp + + # Deploy a static site + ship --static --dir ./dist --domain example.com + + # Update config without redeploying binary + ship --name myapp --memory 512M --cpu 50% + ship --name myapp --env DEBUG=true + + # Set up a new VPS with base domain + ship host init --host user@vps --base-domain apps.example.com`, RunE: runDeploy, SilenceUsage: true, SilenceErrors: true, -- cgit v1.2.3