@cimplify/cli 0.5.4 → 0.6.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.
Files changed (30) hide show
  1. package/dist/{add-FU46PRCJ.mjs → add-2DGJIRBT.mjs} +1 -1
  2. package/dist/cancel-HANLRA6Q.mjs +34 -0
  3. package/dist/{chunk-OPWMPCPM.mjs → chunk-PPU3YTG7.mjs} +16 -16
  4. package/dist/{chunk-A6BBQWTB.mjs → chunk-SAESFNUJ.mjs} +1 -1
  5. package/dist/{chunk-72IHRRLU.mjs → chunk-XYEZPYCO.mjs} +1 -1
  6. package/dist/dispatcher.mjs +14 -11
  7. package/dist/{doctor-FZCJWAPT.mjs → doctor-26CFG2CR.mjs} +2 -2
  8. package/dist/{domains-AHH56CL7.mjs → domains-6GJASWJU.mjs} +20 -2
  9. package/dist/{explain-4I6JLKDW.mjs → explain-AIMUFEME.mjs} +1 -1
  10. package/dist/{introspect-5ODUL6UC.mjs → introspect-5ELLE23M.mjs} +2 -2
  11. package/dist/{list-EKOWQ53I.mjs → list-74VZJRQE.mjs} +1 -1
  12. package/dist/{update-NHGK3AAH.mjs → update-5E646EVY.mjs} +1 -1
  13. package/package.json +1 -1
  14. package/templates/storefront-auto/next.config.ts +6 -0
  15. package/templates/storefront-auto/package.json +1 -1
  16. package/templates/storefront-bakery/next.config.ts +6 -0
  17. package/templates/storefront-bakery/package.json +1 -1
  18. package/templates/storefront-fashion/next.config.ts +6 -0
  19. package/templates/storefront-fashion/package.json +1 -1
  20. package/templates/storefront-grocery/next.config.ts +6 -0
  21. package/templates/storefront-grocery/package.json +1 -1
  22. package/templates/storefront-pharmacy/next.config.ts +6 -0
  23. package/templates/storefront-pharmacy/package.json +1 -1
  24. package/templates/storefront-restaurant/next.config.ts +6 -0
  25. package/templates/storefront-restaurant/package.json +1 -1
  26. package/templates/storefront-retail/next.config.ts +6 -0
  27. package/templates/storefront-retail/package.json +1 -1
  28. package/templates/storefront-services/next.config.ts +6 -0
  29. package/templates/storefront-services/package.json +1 -1
  30. package/dist/{deploy-3IFXUWPM.mjs → deploy-7BPO5BNB.mjs} +1 -1
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { gitDetectRoot, gitCurrentBranch, gitCurrentSha, gitStatusPorcelain } from './chunk-K5464A3L.mjs';
3
3
  import { parseEnvFile } from './chunk-DBZ3UOQ2.mjs';
4
- import { package_default } from './chunk-72IHRRLU.mjs';
4
+ import { package_default } from './chunk-XYEZPYCO.mjs';
5
5
  import { parseArgs } from './chunk-C4M3DXKC.mjs';
6
6
  import { readAuthOrNull, readProjectLinkOrNull, readProjectState } from './chunk-UBAI443T.mjs';
7
7
  import { bold, dim, yellow, green, info, result, red } from './chunk-E2T2SBP5.mjs';
@@ -2,7 +2,7 @@
2
2
  // package.json
3
3
  var package_default = {
4
4
  name: "@cimplify/cli",
5
- version: "0.5.4",
5
+ version: "0.6.2",
6
6
  description: "Cimplify CLI \u2014 deploy, manage env vars, link projects, and scaffold storefronts",
7
7
  keywords: [
8
8
  "cimplify",
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { TEMPLATES } from './chunk-OPWMPCPM.mjs';
3
- import { package_default } from './chunk-72IHRRLU.mjs';
2
+ import { TEMPLATES } from './chunk-PPU3YTG7.mjs';
3
+ import { package_default } from './chunk-XYEZPYCO.mjs';
4
4
 
5
5
  // src/dispatcher.ts
6
6
  var VERSION = package_default.version ?? "unknown";
@@ -27,6 +27,7 @@ Project:
27
27
 
28
28
  Deploy:
29
29
  cimplify deploy [flags] Push current SHA + trigger a build
30
+ cimplify cancel <deploy-id> Cancel a pending or in-progress deployment
30
31
  cimplify rollback <deploy-id> Re-deploy a previous deployment's SHA
31
32
  cimplify status Show the latest deployment for the linked project
32
33
  cimplify logs [flags] Stream build logs for the latest (or given) deployment
@@ -60,6 +61,7 @@ Domains:
60
61
  cimplify domains ls List business domains
61
62
  cimplify domains ls --attached List domains attached to the linked project
62
63
  cimplify domains add <domain> Add a domain (prints DNS records to set)
64
+ cimplify domains records <domain> Re-fetch DNS records (e.g. after CF populates DCV)
63
65
  cimplify domains verify <dom> Trigger verification after DNS is configured
64
66
  cimplify domains rm <dom> Remove a domain
65
67
  cimplify domains attach <dom> [flags] Attach a verified domain to the linked project
@@ -127,22 +129,23 @@ var COMMANDS = {
127
129
  projects: () => import('./projects-JSEC2YCX.mjs'),
128
130
  link: () => import('./link-DZSILT5N.mjs'),
129
131
  unlink: () => import('./unlink-RFK74SFP.mjs'),
130
- deploy: () => import('./deploy-3IFXUWPM.mjs'),
132
+ deploy: () => import('./deploy-7BPO5BNB.mjs'),
133
+ cancel: () => import('./cancel-HANLRA6Q.mjs'),
131
134
  rollback: () => import('./rollback-DD4RNRFM.mjs'),
132
135
  env: () => import('./env-7ISJ73YI.mjs'),
133
- domains: () => import('./domains-AHH56CL7.mjs'),
136
+ domains: () => import('./domains-6GJASWJU.mjs'),
134
137
  logs: () => import('./logs-YNN2PQ24.mjs'),
135
138
  status: () => import('./status-JSYXM5RT.mjs'),
136
139
  dev: () => import('./dev-ONW2S77K.mjs'),
137
- introspect: () => import('./introspect-5ODUL6UC.mjs'),
138
- doctor: () => import('./doctor-FZCJWAPT.mjs'),
139
- explain: () => import('./explain-4I6JLKDW.mjs'),
140
+ introspect: () => import('./introspect-5ELLE23M.mjs'),
141
+ doctor: () => import('./doctor-26CFG2CR.mjs'),
142
+ explain: () => import('./explain-AIMUFEME.mjs'),
140
143
  assets: () => import('./assets-EBEMMENZ.mjs'),
141
144
  repo: () => import('./repo-WOBWKEAO.mjs'),
142
- list: () => import('./list-EKOWQ53I.mjs'),
143
- add: () => import('./add-FU46PRCJ.mjs'),
144
- update: () => import('./update-NHGK3AAH.mjs'),
145
- upgrade: () => import('./update-NHGK3AAH.mjs'),
145
+ list: () => import('./list-74VZJRQE.mjs'),
146
+ add: () => import('./add-2DGJIRBT.mjs'),
147
+ update: () => import('./update-5E646EVY.mjs'),
148
+ upgrade: () => import('./update-5E646EVY.mjs'),
146
149
  "auth-step-up": () => import('./auth-step-up-BIUYQJP6.mjs')
147
150
  };
148
151
  var COMMAND_PREFIXES = {
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { gatherIntrospection } from './chunk-A6BBQWTB.mjs';
2
+ import { gatherIntrospection } from './chunk-SAESFNUJ.mjs';
3
3
  import './chunk-K5464A3L.mjs';
4
4
  import './chunk-DBZ3UOQ2.mjs';
5
- import './chunk-72IHRRLU.mjs';
5
+ import './chunk-XYEZPYCO.mjs';
6
6
  import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
7
7
  import { ApiClient } from './chunk-MAOO6ZZ5.mjs';
8
8
  import { readAuthOrNull } from './chunk-UBAI443T.mjs';
@@ -4,7 +4,7 @@ import { ENV_SCOPE, DOMAIN_TYPE } from './chunk-MXYUAJEW.mjs';
4
4
  import { parseArgs, flagBool, flagString } from './chunk-C4M3DXKC.mjs';
5
5
  import { ApiClient } from './chunk-MAOO6ZZ5.mjs';
6
6
  import { readAuth, readProjectLink } from './chunk-UBAI443T.mjs';
7
- import { CliError, CLI_ERROR_CODE, info, dim, result, bold, success } from './chunk-E2T2SBP5.mjs';
7
+ import { CliError, CLI_ERROR_CODE, result, info, dim, bold, success } from './chunk-E2T2SBP5.mjs';
8
8
 
9
9
  // src/commands/domains.ts
10
10
  var SUB_LS = "ls";
@@ -16,6 +16,7 @@ var SUB_REMOVE = "remove";
16
16
  var SUB_ATTACH = "attach";
17
17
  var SUB_DETACH = "detach";
18
18
  var SUB_PRIMARY = "primary";
19
+ var SUB_RECORDS = "records";
19
20
  var FLAG_TYPE = "type";
20
21
  var FLAG_YES = "yes";
21
22
  var FLAG_ENV = "env";
@@ -79,7 +80,7 @@ async function run(argv) {
79
80
  if (!sub) {
80
81
  throw new CliError(
81
82
  CLI_ERROR_CODE.INVALID_INPUT,
82
- `Usage: cimplify domains <${SUB_LS}|${SUB_ADD}|${SUB_VERIFY}|${SUB_RM}|${SUB_ATTACH}|${SUB_DETACH}|${SUB_PRIMARY}>`
83
+ `Usage: cimplify domains <${SUB_LS}|${SUB_ADD}|${SUB_VERIFY}|${SUB_RM}|${SUB_ATTACH}|${SUB_DETACH}|${SUB_PRIMARY}|${SUB_RECORDS}>`
83
84
  );
84
85
  }
85
86
  const auth = await readAuth();
@@ -116,8 +117,25 @@ async function run(argv) {
116
117
  await setPrimaryAttachment(client, auth.businessId, args);
117
118
  return;
118
119
  }
120
+ if (sub === SUB_RECORDS) {
121
+ await fetchDnsRecords(client, args);
122
+ return;
123
+ }
119
124
  throw new CliError(CLI_ERROR_CODE.INVALID_INPUT, `Unknown domains subcommand "${sub}"`);
120
125
  }
126
+ async function fetchDnsRecords(client, args) {
127
+ const domain = args.positional[1];
128
+ if (!domain) {
129
+ throw new CliError(
130
+ CLI_ERROR_CODE.INVALID_INPUT,
131
+ `Usage: cimplify domains ${SUB_RECORDS} <domain>`
132
+ );
133
+ }
134
+ const dns = await client.get(dnsRecordsEndpoint(domain));
135
+ const records = Array.isArray(dns) ? dns : dns.records;
136
+ printDnsRecords(domain, records);
137
+ result({ domain, dns_records: records });
138
+ }
121
139
  async function listDomains(client, businessId) {
122
140
  const domains = await client.get(domainsEndpoint(businessId));
123
141
  if (domains.length === 0) {
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { package_default } from './chunk-72IHRRLU.mjs';
2
+ import { package_default } from './chunk-XYEZPYCO.mjs';
3
3
  import { parseArgs } from './chunk-C4M3DXKC.mjs';
4
4
  import { bold, dim, info, result, CliError, CLI_ERROR_CODE } from './chunk-E2T2SBP5.mjs';
5
5
 
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- export { run as default, extractMockSeed, gatherIntrospection, renderIntrospection } from './chunk-A6BBQWTB.mjs';
2
+ export { run as default, extractMockSeed, gatherIntrospection, renderIntrospection } from './chunk-SAESFNUJ.mjs';
3
3
  import './chunk-K5464A3L.mjs';
4
4
  import './chunk-DBZ3UOQ2.mjs';
5
- import './chunk-72IHRRLU.mjs';
5
+ import './chunk-XYEZPYCO.mjs';
6
6
  import './chunk-C4M3DXKC.mjs';
7
7
  import './chunk-UBAI443T.mjs';
8
8
  import './chunk-E2T2SBP5.mjs';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { REGISTRY_INDEX } from './chunk-OPWMPCPM.mjs';
2
+ import { REGISTRY_INDEX } from './chunk-PPU3YTG7.mjs';
3
3
  import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
4
4
  import { CliError, CLI_ERROR_CODE, info, bold, dim, green, result } from './chunk-E2T2SBP5.mjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { package_default } from './chunk-72IHRRLU.mjs';
2
+ import { package_default } from './chunk-XYEZPYCO.mjs';
3
3
  import { promptYesNo } from './chunk-ITAFAORS.mjs';
4
4
  import { parseArgs, flagBool, flagString } from './chunk-C4M3DXKC.mjs';
5
5
  import { success, bold, info, dim, result, failure, CliError, CLI_ERROR_CODE, step, isJsonMode } from './chunk-E2T2SBP5.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/cli",
3
- "version": "0.5.4",
3
+ "version": "0.6.2",
4
4
  "description": "Cimplify CLI — deploy, manage env vars, link projects, and scaffold storefronts",
5
5
  "keywords": [
6
6
  "cimplify",
@@ -7,6 +7,12 @@ const STOREFRONT_URL =
7
7
  ? "https://storefronts.cimplify.io"
8
8
  : "http://127.0.0.1:8787";
9
9
 
10
+ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
11
+ console.warn(
12
+ "[cimplify] next.config resolved the local storefront API URL; production deploys must run with NODE_ENV=production.",
13
+ );
14
+ }
15
+
10
16
  const nextConfig: NextConfig = {
11
17
  // Enable Next 16's `cacheComponents` mode so we can use `'use cache'` +
12
18
  // `cacheTag` / `cacheLife` for SSR caching. Cached chrome streams first,
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.0",
20
+ "@cimplify/sdk": "^0.47.0",
21
21
  "next": "^16.2.4",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -7,6 +7,12 @@ const STOREFRONT_URL =
7
7
  ? "https://storefronts.cimplify.io"
8
8
  : "http://127.0.0.1:8787";
9
9
 
10
+ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
11
+ console.warn(
12
+ "[cimplify] next.config resolved the local storefront API URL; production deploys must run with NODE_ENV=production.",
13
+ );
14
+ }
15
+
10
16
  const nextConfig: NextConfig = {
11
17
  // Enable Next 16's `cacheComponents` mode so we can use `'use cache'` +
12
18
  // `cacheTag` / `cacheLife` for SSR caching. Cached chrome streams first,
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.0",
20
+ "@cimplify/sdk": "^0.47.0",
21
21
  "next": "^16.2.4",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -7,6 +7,12 @@ const STOREFRONT_URL =
7
7
  ? "https://storefronts.cimplify.io"
8
8
  : "http://127.0.0.1:8787";
9
9
 
10
+ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
11
+ console.warn(
12
+ "[cimplify] next.config resolved the local storefront API URL; production deploys must run with NODE_ENV=production.",
13
+ );
14
+ }
15
+
10
16
  const nextConfig: NextConfig = {
11
17
  // Enable Next 16's `cacheComponents` mode so we can use `'use cache'` +
12
18
  // `cacheTag` / `cacheLife` for SSR caching. Cached chrome streams first,
@@ -19,7 +19,7 @@
19
19
  "check": "bun run typecheck && bun run test:run"
20
20
  },
21
21
  "dependencies": {
22
- "@cimplify/sdk": "^0.46.0",
22
+ "@cimplify/sdk": "^0.47.0",
23
23
  "next": "^16.2.4",
24
24
  "react": "^19.0.0",
25
25
  "react-dom": "^19.0.0"
@@ -7,6 +7,12 @@ const STOREFRONT_URL =
7
7
  ? "https://storefronts.cimplify.io"
8
8
  : "http://127.0.0.1:8787";
9
9
 
10
+ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
11
+ console.warn(
12
+ "[cimplify] next.config resolved the local storefront API URL; production deploys must run with NODE_ENV=production.",
13
+ );
14
+ }
15
+
10
16
  const nextConfig: NextConfig = {
11
17
  // Enable Next 16's `cacheComponents` mode so we can use `'use cache'` +
12
18
  // `cacheTag` / `cacheLife` for SSR caching. Cached chrome streams first,
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.0",
20
+ "@cimplify/sdk": "^0.47.0",
21
21
  "next": "^16.2.4",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -7,6 +7,12 @@ const STOREFRONT_URL =
7
7
  ? "https://storefronts.cimplify.io"
8
8
  : "http://127.0.0.1:8787";
9
9
 
10
+ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
11
+ console.warn(
12
+ "[cimplify] next.config resolved the local storefront API URL; production deploys must run with NODE_ENV=production.",
13
+ );
14
+ }
15
+
10
16
  const nextConfig: NextConfig = {
11
17
  // Enable Next 16's `cacheComponents` mode so we can use `'use cache'` +
12
18
  // `cacheTag` / `cacheLife` for SSR caching. Cached chrome streams first,
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.0",
20
+ "@cimplify/sdk": "^0.47.0",
21
21
  "next": "^16.2.4",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -7,6 +7,12 @@ const STOREFRONT_URL =
7
7
  ? "https://storefronts.cimplify.io"
8
8
  : "http://127.0.0.1:8787";
9
9
 
10
+ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
11
+ console.warn(
12
+ "[cimplify] next.config resolved the local storefront API URL; production deploys must run with NODE_ENV=production.",
13
+ );
14
+ }
15
+
10
16
  const nextConfig: NextConfig = {
11
17
  // Enable Next 16's `cacheComponents` mode so we can use `'use cache'` +
12
18
  // `cacheTag` / `cacheLife` for SSR caching. Cached chrome streams first,
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.0",
20
+ "@cimplify/sdk": "^0.47.0",
21
21
  "next": "^16.2.4",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -7,6 +7,12 @@ const STOREFRONT_URL =
7
7
  ? "https://storefronts.cimplify.io"
8
8
  : "http://127.0.0.1:8787";
9
9
 
10
+ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
11
+ console.warn(
12
+ "[cimplify] next.config resolved the local storefront API URL; production deploys must run with NODE_ENV=production.",
13
+ );
14
+ }
15
+
10
16
  const nextConfig: NextConfig = {
11
17
  // Enable Next 16's `cacheComponents` mode so we can use `'use cache'` +
12
18
  // `cacheTag` / `cacheLife` for SSR caching. Cached chrome streams first,
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.0",
20
+ "@cimplify/sdk": "^0.47.0",
21
21
  "next": "^16.2.4",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -7,6 +7,12 @@ const STOREFRONT_URL =
7
7
  ? "https://storefronts.cimplify.io"
8
8
  : "http://127.0.0.1:8787";
9
9
 
10
+ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
11
+ console.warn(
12
+ "[cimplify] next.config resolved the local storefront API URL; production deploys must run with NODE_ENV=production.",
13
+ );
14
+ }
15
+
10
16
  const nextConfig: NextConfig = {
11
17
  // Enable Next 16's `cacheComponents` mode so we can use `'use cache'` +
12
18
  // `cacheTag` / `cacheLife` for SSR caching. Cached chrome streams first,
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.0",
20
+ "@cimplify/sdk": "^0.47.0",
21
21
  "next": "^16.2.4",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { pollDeployment } from './chunk-VTR5R5NQ.mjs';
3
2
  import { gitDetectRoot, gitStatusPorcelain, gitCurrentBranch, gitCurrentSha, gitGetRemoteUrl, isFreestyleRemote, gitPushToUrl, gitPush } from './chunk-K5464A3L.mjs';
3
+ import { pollDeployment } from './chunk-VTR5R5NQ.mjs';
4
4
  import { fetchCloneToken } from './chunk-R3FDBXR6.mjs';
5
5
  import { promptYesNo } from './chunk-ITAFAORS.mjs';
6
6
  import { TOKEN_PURPOSE, ENV_SCOPE, DEPLOY_TRIGGER, DEPLOYMENT_STATUS } from './chunk-MXYUAJEW.mjs';