@freecodecamp/universe-cli 0.3.0 → 0.3.2

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 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).
package/dist/index.cjs CHANGED
@@ -43543,7 +43543,7 @@ function loadConfig(options = {}) {
43543
43543
  } catch (err) {
43544
43544
  if (err instanceof Error && err.code === "ENOENT") {
43545
43545
  throw new ConfigError(
43546
- `platform.yaml not found at ${configPath}. See STAFF-GUIDE.md for the required format.`
43546
+ `platform.yaml not found at ${configPath}. See docs/STAFF-GUIDE.md for the required format.`
43547
43547
  );
43548
43548
  }
43549
43549
  throw err;
@@ -43558,7 +43558,7 @@ function loadConfig(options = {}) {
43558
43558
  throw new ConfigError(
43559
43559
  `platform.yaml is invalid:
43560
43560
  ${issues}
43561
- See STAFF-GUIDE.md for the required format.`
43561
+ See docs/STAFF-GUIDE.md for the required format.`
43562
43562
  );
43563
43563
  }
43564
43564
  const yamlValidated = parseResult.data;
@@ -54692,7 +54692,7 @@ async function rollback(options) {
54692
54692
  }
54693
54693
 
54694
54694
  // src/cli.ts
54695
- var version2 = true ? "0.3.0" : "0.0.0";
54695
+ var version2 = true ? "0.3.2" : "0.0.0";
54696
54696
  function handleActionError(command, json2, err) {
54697
54697
  const ctx = { json: json2, command };
54698
54698
  const message = err instanceof Error ? err.message : "unknown error";
package/dist/index.js CHANGED
@@ -119,7 +119,7 @@ function loadConfig(options = {}) {
119
119
  } catch (err) {
120
120
  if (err instanceof Error && err.code === "ENOENT") {
121
121
  throw new ConfigError(
122
- `platform.yaml not found at ${configPath}. See STAFF-GUIDE.md for the required format.`
122
+ `platform.yaml not found at ${configPath}. See docs/STAFF-GUIDE.md for the required format.`
123
123
  );
124
124
  }
125
125
  throw err;
@@ -134,7 +134,7 @@ function loadConfig(options = {}) {
134
134
  throw new ConfigError(
135
135
  `platform.yaml is invalid:
136
136
  ${issues}
137
- See STAFF-GUIDE.md for the required format.`
137
+ See docs/STAFF-GUIDE.md for the required format.`
138
138
  );
139
139
  }
140
140
  const yamlValidated = parseResult.data;
@@ -916,7 +916,7 @@ async function rollback(options) {
916
916
  }
917
917
 
918
918
  // src/cli.ts
919
- var version = true ? "0.3.0" : "0.0.0";
919
+ var version = true ? "0.3.2" : "0.0.0";
920
920
  function handleActionError(command, json, err) {
921
921
  const ctx = { json, command };
922
922
  const message = err instanceof Error ? err.message : "unknown error";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freecodecamp/universe-cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "vitest run",