@cimplify/cli 0.6.1 → 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.
@@ -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-O6RONGAI.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.6.1",
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-OILDQUAD.mjs';
3
- import { package_default } from './chunk-O6RONGAI.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";
@@ -61,6 +61,7 @@ Domains:
61
61
  cimplify domains ls List business domains
62
62
  cimplify domains ls --attached List domains attached to the linked project
63
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)
64
65
  cimplify domains verify <dom> Trigger verification after DNS is configured
65
66
  cimplify domains rm <dom> Remove a domain
66
67
  cimplify domains attach <dom> [flags] Attach a verified domain to the linked project
@@ -132,19 +133,19 @@ var COMMANDS = {
132
133
  cancel: () => import('./cancel-HANLRA6Q.mjs'),
133
134
  rollback: () => import('./rollback-DD4RNRFM.mjs'),
134
135
  env: () => import('./env-7ISJ73YI.mjs'),
135
- domains: () => import('./domains-AHH56CL7.mjs'),
136
+ domains: () => import('./domains-6GJASWJU.mjs'),
136
137
  logs: () => import('./logs-YNN2PQ24.mjs'),
137
138
  status: () => import('./status-JSYXM5RT.mjs'),
138
139
  dev: () => import('./dev-ONW2S77K.mjs'),
139
- introspect: () => import('./introspect-PQ476BL7.mjs'),
140
- doctor: () => import('./doctor-YPO2MQZF.mjs'),
141
- explain: () => import('./explain-L5ZDNMHC.mjs'),
140
+ introspect: () => import('./introspect-5ELLE23M.mjs'),
141
+ doctor: () => import('./doctor-26CFG2CR.mjs'),
142
+ explain: () => import('./explain-AIMUFEME.mjs'),
142
143
  assets: () => import('./assets-EBEMMENZ.mjs'),
143
144
  repo: () => import('./repo-WOBWKEAO.mjs'),
144
- list: () => import('./list-5ORRWEYK.mjs'),
145
- add: () => import('./add-5EMD74VD.mjs'),
146
- update: () => import('./update-4AZUFFQ3.mjs'),
147
- upgrade: () => import('./update-4AZUFFQ3.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'),
148
149
  "auth-step-up": () => import('./auth-step-up-BIUYQJP6.mjs')
149
150
  };
150
151
  var COMMAND_PREFIXES = {
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { gatherIntrospection } from './chunk-DAHD6YWI.mjs';
2
+ import { gatherIntrospection } from './chunk-SAESFNUJ.mjs';
3
3
  import './chunk-K5464A3L.mjs';
4
4
  import './chunk-DBZ3UOQ2.mjs';
5
- import './chunk-O6RONGAI.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-O6RONGAI.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-DAHD6YWI.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-O6RONGAI.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-OILDQUAD.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-O6RONGAI.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.6.1",
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",
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.1",
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"
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.1",
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"
@@ -19,7 +19,7 @@
19
19
  "check": "bun run typecheck && bun run test:run"
20
20
  },
21
21
  "dependencies": {
22
- "@cimplify/sdk": "^0.46.1",
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"
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.1",
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"
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.1",
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"
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.1",
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"
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.1",
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"
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.46.1",
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"