@letterstory/cli 0.15.0 → 0.15.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/lib/cli.mjs CHANGED
@@ -41,7 +41,7 @@ import {
41
41
  } from "./commands.mjs";
42
42
 
43
43
  // Keep in sync with cli/package.json.
44
- export const VERSION = "0.15.0";
44
+ export const VERSION = "0.15.2";
45
45
 
46
46
  // Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
47
47
  // can't accidentally swallow the id as --json's value.
@@ -325,7 +325,7 @@ Domain onboarding (ONE SHOT: a bare domain in, a fully-configured organization o
325
325
  [--name "<main collection name>"] [--posts N] [--no-phantom] [--phantom-name X]
326
326
  [--site-domain host] [--domain-mode subdomain|buy_now|connect_later]
327
327
  [--seers suggest|skip] [--no-visuals] [--no-enhance] [--test]
328
- [--readiness-minutes N] [--watch]
328
+ [--readiness-minutes N] [--client-email jo@acme.com] [--watch]
329
329
  On the org behind the key (its registered
330
330
  domain): onboard the main blog (the
331
331
  collection recipe), infer org visuals from
@@ -6,7 +6,7 @@
6
6
  // admin create-org --domain acme.com [--name "Acme"] [--test] [--no-key] [--key-name N]
7
7
  // [--capabilities a,b] [--onboard] [--about "…"] [--sitemap <url>]
8
8
  // [--cms <provider>] [--posts N] [--seers suggest|skip] [--no-visuals]
9
- // [--no-enhance] [--readiness-minutes N] [--watch]
9
+ // [--no-enhance] [--readiness-minutes N] [--client-email jo@acme.com] [--watch]
10
10
  //
11
11
  // The KEY EXCHANGE: create the client org from its domain (one org per domain; an existing
12
12
  // owner is adopted), mint an ORG-scoped API key for it and print the plaintext ONCE. With
@@ -79,6 +79,7 @@ function onboardOptionsFromFlags(flags) {
79
79
  visuals: flagBool(flags["no-visuals"]) ? false : undefined,
80
80
  enhance: flagBool(flags["no-enhance"]) ? false : undefined,
81
81
  readiness_minutes: flagNum(flags["readiness-minutes"]),
82
+ client_email: flagStr(flags["client-email"]),
82
83
  });
83
84
  return compact({
84
85
  direction: flagStr(flags.about) ?? flagStr(flags.direction),
@@ -275,7 +275,9 @@ async function deployList(ctx) {
275
275
  return 0;
276
276
  }
277
277
  for (const d of items) {
278
- io.log(`${d.status.padEnd(13)} ${d.deployment_id} ${d.name}${d.url ? ` ${d.url}` : ""}`);
278
+ io.log(
279
+ `${d.status.padEnd(13)} ${d.deployment_id} collection:${d.collection_id ?? "(none)"} ${d.name}${d.url ? ` ${d.url}` : ""}`
280
+ );
279
281
  }
280
282
  return 0;
281
283
  }
@@ -342,6 +342,7 @@ async function cmdOnboardDomain(ctx) {
342
342
  enhance: flagBool(flags["no-enhance"]) ? false : undefined,
343
343
  is_test: flagBool(flags.test) ? true : undefined,
344
344
  readiness_minutes: flagNum(flags["readiness-minutes"]),
345
+ client_email: flagStr(flags["client-email"]),
345
346
  });
346
347
 
347
348
  ok(ctx, "Starting domain onboarding…");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "description": "Spin up and manage Letterstory phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",