staticx 0.1.6 → 0.1.8

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
@@ -40,13 +40,17 @@ staticx mcp
40
40
 
41
41
  ## Custom domains
42
42
 
43
- Use the CLI when you want to connect a domain without opening the dashboard.
43
+ Use the CLI when you want to start custom domain setup without opening the dashboard.
44
44
 
45
45
  ```bash
46
46
  staticx domain --site-id SITE_ID --domain app.example.com
47
47
  ```
48
48
 
49
- The command moves the site to that domain and prints the single DNS record to create. After the DNS record is added, StaticX detects it and activates SSL automatically.
49
+ The command starts the manual DNS flow and prints the single DNS record to create. After the DNS record is added, StaticX detects it and activates SSL automatically.
50
+
51
+ If you want StaticX to create the DNS record inside an external DNS account, approve DNS Connect from the dashboard. The CLI cannot authorize an external provider silently because the domain owner must approve access in a browser.
52
+
53
+ Generated subdomain suffixes are configured from the dashboard. If an account has an active publishing domain, open `Site → Settings → Domain` to save a free subdomain on either the StaticX default domain or that publishing domain. The CLI custom-domain command is for exact hosts such as `app.example.com`.
50
54
 
51
55
  Check progress any time:
52
56
 
@@ -117,5 +121,5 @@ STATICX_API_TOKEN=sx_replace_with_your_token npx staticx-mcp-server http
117
121
  - `staticx login` stores the base URL and bearer token locally.
118
122
  - `staticx whoami` verifies the token with `GET /user`.
119
123
  - `staticx deploy` zips the contents of the given build directory, uploads them, and publishes a new release. The directory must contain `index.html` or `index.htm` plus `404.html` at its root.
120
- - `staticx domain` calls `POST /projects/{project}/domain` and returns the DNS record plus activation status.
124
+ - `staticx domain` calls `POST /projects/{project}/domain` and returns the manual DNS record plus activation status.
121
125
  - Golden deploy prompt: “Deploy `dist` to StaticX project `SITE_ID` using `STATICX_API_TOKEN`. Build, validate `index.html` + `404.html`, apply StaticX form rules if forms exist, zip `dist` root, upload, deploy, check logs, then return the live URL or the exact API error. If you receive `PLAN_QUOTA_EXCEEDED`, stop and return the exact quota message. Never expose the token.”
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "staticx",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Public CLI for STATICX using token-authenticated /api/v1 routes.",
5
5
  "type": "module",
6
6
  "publishConfig": {
package/src/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  mcpGuideJson,
20
20
  } from './output.js';
21
21
 
22
- const CLI_VERSION = '0.1.5';
22
+ const CLI_VERSION = '0.1.7';
23
23
 
24
24
  export async function run(argv) {
25
25
  const program = new Command();
@@ -296,7 +296,7 @@ Deploy rule:
296
296
 
297
297
  program
298
298
  .command('domain')
299
- .description('Move a site to a custom domain and print the one DNS record to create.')
299
+ .description('Start manual custom domain setup and print the one DNS record to create.')
300
300
  .requiredOption('--site-id <id>', 'Site ID')
301
301
  .requiredOption('--domain <domain>', 'Custom domain, for example app.example.com')
302
302
  .option('--json', 'Print JSON output')
package/src/output.js CHANGED
@@ -65,7 +65,7 @@ export function printLoginSuccess({ baseUrl, user, token }) {
65
65
  ['staticx guide', 'Show the complete CLI workflow.'],
66
66
  ['staticx sites', 'List the sites visible to this token.'],
67
67
  ['staticx deploy --site-id SITE_ID --dir dist', 'Upload and publish a build folder.'],
68
- ['staticx domain --site-id SITE_ID --domain app.example.com', 'Move a site to a custom domain.'],
68
+ ['staticx domain --site-id SITE_ID --domain app.example.com', 'Start manual custom domain setup.'],
69
69
  ]);
70
70
  console.log('');
71
71
  console.log('Build rule: deploy folders must include index.html or index.htm and 404.html at the root.');
@@ -95,7 +95,7 @@ export function printCliGuide() {
95
95
  ]);
96
96
  console.log('');
97
97
  printCommandGroup('Custom domains', [
98
- ['staticx domain --site-id SITE_ID --domain app.example.com', 'Move a site to a custom domain and print the DNS record.'],
98
+ ['staticx domain --site-id SITE_ID --domain app.example.com', 'Start manual custom domain setup and print the DNS record.'],
99
99
  ['staticx domain-status --site-id SITE_ID', 'Check DNS, SSL, and activation status.'],
100
100
  ]);
101
101
  console.log('');
@@ -112,6 +112,8 @@ export function printCliGuide() {
112
112
  console.log('');
113
113
  console.log('Token scopes: use Site tokens for one-site deploys, Workspace tokens for client workspaces, and Global tokens only for broad operator workflows.');
114
114
  console.log('Build rule: deploy folders must include index.html or index.htm and 404.html at the root.');
115
+ console.log('Domain rule: CLI custom domains use the one-record manual DNS flow. DNS Connect requires browser approval in the dashboard.');
116
+ console.log('Publishing-domain rule: generated subdomain suffix changes are dashboard-only in Site Settings > Domain.');
115
117
  console.log('Plan limits: Free includes 1 site, 500 MB storage, 500 MB uploads, 1,000 form entries, 1 seat, and 5 rollback versions. Plus and Pro raise capacity. Agency uses custom capacity.');
116
118
  console.log('Quota rule: stop on PLAN_QUOTA_EXCEEDED and return the exact API message before retrying.');
117
119
  }
@@ -193,6 +195,7 @@ export function cliGuideJson() {
193
195
  'https://staticx.site/api/v1/openapi.json',
194
196
  ],
195
197
  build_rule: 'Deploy folders must include index.html or index.htm and 404.html at the root.',
198
+ domain_rule: 'CLI exact custom domains use the one-record manual DNS flow. Generated subdomain suffix changes are dashboard-only in Site Settings > Domain.',
196
199
  token_scopes: 'Use Site tokens for one-site deploys, Workspace tokens for client workspaces, and Global tokens only for broad operator workflows.',
197
200
  plan_limits: {
198
201
  free: '1 site, 500 MB storage, 500 MB max upload, 1,000 form entries, 1 team seat, last 5 rollback versions.',