@zerct/zerct 0.1.8 → 0.1.9
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 +2 -1
- package/bin/zerct.js +8 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,8 @@ From a full-stack repo root, the same deploy command discovers nested
|
|
|
22
22
|
|
|
23
23
|
Agents can also inspect API capabilities, account identity, usage, account
|
|
24
24
|
activity, apps, complete app overviews, deploys, builds, app/deploy/build logs,
|
|
25
|
-
env metadata, custom domains, and billing portal links
|
|
25
|
+
env metadata, custom domains, domain verification, and billing portal links
|
|
26
|
+
through the same CLI.
|
|
26
27
|
|
|
27
28
|
On first deploy, the CLI opens browser login, waits for GitHub or Google, stores
|
|
28
29
|
the Zerct session in the OS credential store when available, and continues the
|
package/bin/zerct.js
CHANGED
|
@@ -4,7 +4,7 @@ import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSy
|
|
|
4
4
|
import { homedir } from 'node:os'
|
|
5
5
|
import path from 'node:path'
|
|
6
6
|
|
|
7
|
-
const VERSION = '0.1.
|
|
7
|
+
const VERSION = '0.1.9'
|
|
8
8
|
const DEFAULT_API_URL = 'https://api.zerct.com'
|
|
9
9
|
const ARCHIVE_LIMIT_BYTES = 48 * 1024 * 1024
|
|
10
10
|
const SESSION_DIR = '.zerct'
|
|
@@ -82,6 +82,7 @@ Usage:
|
|
|
82
82
|
zerct env delete --app <app_id> KEY [--api <url>] [--json]
|
|
83
83
|
zerct domains list --app <app_id> [--api <url>] [--json]
|
|
84
84
|
zerct domains add --app <app_id> <domain> [--api <url>] [--json]
|
|
85
|
+
zerct domains verify --app <app_id> <domain> [--api <url>] [--json]
|
|
85
86
|
zerct domains delete --app <app_id> <domain> [--api <url>] [--json]
|
|
86
87
|
zerct billing [portal] [--api <url>] [--json]
|
|
87
88
|
|
|
@@ -681,13 +682,18 @@ async function domainsCommand(cli) {
|
|
|
681
682
|
printJsonOrPretty(cli, response)
|
|
682
683
|
return
|
|
683
684
|
}
|
|
685
|
+
if (action === 'verify') {
|
|
686
|
+
const response = await apiRequest(cli, 'POST', `/v1/apps/${encodeURIComponent(app)}/domains/${encodeURIComponent(domain)}/verify`, token, null)
|
|
687
|
+
printJsonOrPretty(cli, response)
|
|
688
|
+
return
|
|
689
|
+
}
|
|
684
690
|
if (action === 'delete') {
|
|
685
691
|
const response = await apiRequest(cli, 'DELETE', `/v1/apps/${encodeURIComponent(app)}/domains/${encodeURIComponent(domain)}`, token, null)
|
|
686
692
|
printJsonOrPretty(cli, response)
|
|
687
693
|
return
|
|
688
694
|
}
|
|
689
695
|
|
|
690
|
-
throw agentError('unknown_command', 'Unknown domains command.', 'Use `domains list`, `domains add`, or `domains delete`.', cli.json)
|
|
696
|
+
throw agentError('unknown_command', 'Unknown domains command.', 'Use `domains list`, `domains add`, `domains verify`, or `domains delete`.', cli.json)
|
|
691
697
|
}
|
|
692
698
|
|
|
693
699
|
async function billing(cli) {
|