summaryrefslogtreecommitdiffstats
path: root/cmd/ship/main.go
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-01-25 08:08:24 -0800
committerbndw <ben@bdw.to>2026-01-25 08:08:24 -0800
commitc0fe5bbe12973c1a9193ecc2e9e2226a38e6cc15 (patch)
treee9d5740237627bab5311ef0c74a1a805b91ac8fc /cmd/ship/main.go
parent85e97bf1ebe339513ab0661f6cc1ab1ff17a46cb (diff)
Add examples to help text
Diffstat (limited to 'cmd/ship/main.go')
-rw-r--r--cmd/ship/main.go19
1 files changed, 18 insertions, 1 deletions
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:
44Requirements: 44Requirements:
45 • A VPS with SSH access (use 'ship host init' to set up a new server) 45 • A VPS with SSH access (use 'ship host init' to set up a new server)
46 • An SSH config entry or user@host for your server 46 • An SSH config entry or user@host for your server
47 • A domain pointing to your VPS`, 47 • A domain pointing to your VPS
48
49Examples:
50 # Deploy a Go binary
51 ship --binary ./myapp --domain api.example.com
52
53 # Deploy with auto-generated subdomain (requires base domain)
54 ship --binary ./myapp --name myapp
55
56 # Deploy a static site
57 ship --static --dir ./dist --domain example.com
58
59 # Update config without redeploying binary
60 ship --name myapp --memory 512M --cpu 50%
61 ship --name myapp --env DEBUG=true
62
63 # Set up a new VPS with base domain
64 ship host init --host user@vps --base-domain apps.example.com`,
48 RunE: runDeploy, 65 RunE: runDeploy,
49 SilenceUsage: true, 66 SilenceUsage: true,
50 SilenceErrors: true, 67 SilenceErrors: true,