@freecodecamp/universe-cli 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -3
- package/dist/index.cjs +14897 -5078
- package/dist/index.js +53 -9
- package/package.json +21 -5
package/README.md
CHANGED
|
@@ -53,18 +53,27 @@ universe --version
|
|
|
53
53
|
# Deploy a static site (from a directory with platform.yaml and a built dist/)
|
|
54
54
|
universe static deploy
|
|
55
55
|
|
|
56
|
+
# Deploy without git metadata
|
|
57
|
+
universe static deploy --force
|
|
58
|
+
|
|
59
|
+
# Deploy a non-default build output directory
|
|
60
|
+
universe static deploy --output-dir build
|
|
61
|
+
|
|
56
62
|
# Promote preview to production
|
|
57
63
|
universe static promote
|
|
58
64
|
|
|
65
|
+
# Promote a specific deploy
|
|
66
|
+
universe static promote 20260413-120000-abc1234
|
|
67
|
+
|
|
59
68
|
# Rollback production to previous deploy
|
|
60
69
|
universe static rollback --confirm
|
|
61
70
|
```
|
|
62
71
|
|
|
63
|
-
All commands support `--json` for CI integration.
|
|
72
|
+
All commands support `--json` for CI integration. In JSON mode, `rollback` also requires `--confirm`.
|
|
64
73
|
|
|
65
74
|
## Credentials
|
|
66
75
|
|
|
67
|
-
The CLI needs R2 credentials. See the [Staff Guide](STAFF-GUIDE.md#2-credentials) for setup.
|
|
76
|
+
The CLI needs R2 credentials. See the [Staff Guide](docs/STAFF-GUIDE.md#2-credentials) for setup.
|
|
68
77
|
|
|
69
78
|
## Development
|
|
70
79
|
|
|
@@ -77,4 +86,4 @@ pnpm tsc --noEmit # typecheck
|
|
|
77
86
|
|
|
78
87
|
## Releasing
|
|
79
88
|
|
|
80
|
-
See [RELEASING.md](RELEASING.md).
|
|
89
|
+
See [RELEASING.md](docs/RELEASING.md).
|