@constructive-io/cli 7.7.8 → 7.7.10

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
@@ -107,26 +107,32 @@ cnc codegen --api-names my_api --output ./codegen --orm
107
107
  - `--dry-run` - Preview without writing files
108
108
  - `--verbose` - Verbose output
109
109
 
110
- ### `cnc codegen --schema-only`
110
+ ### `cnc codegen --schema-enabled`
111
111
 
112
112
  Export GraphQL schema SDL without running full code generation. Works with any source (endpoint, file, database, PGPM).
113
113
 
114
114
  ```bash
115
115
  # From database schemas
116
- cnc codegen --schema-only --schemas myapp,public --output ./schemas
116
+ cnc codegen --schema-enabled --schemas myapp,public --schema-output ./schemas
117
117
 
118
118
  # From running server
119
- cnc codegen --schema-only --endpoint http://localhost:3000/graphql --output ./schemas
119
+ cnc codegen --schema-enabled --endpoint http://localhost:3000/graphql --schema-output ./schemas
120
120
 
121
121
  # From schema file (useful for converting/validating)
122
- cnc codegen --schema-only --schema-file ./input.graphql --output ./schemas
122
+ cnc codegen --schema-enabled --schema-file ./input.graphql --schema-output ./schemas
123
123
 
124
124
  # From a directory of .graphql files (multi-target)
125
- cnc codegen --schema-only --schema-dir ./schemas --output ./exported
125
+ cnc codegen --schema-enabled --schema-dir ./schemas --schema-output ./exported
126
+
127
+ # Custom filename
128
+ cnc codegen --schema-enabled --endpoint http://localhost:3000/graphql --schema-output ./schemas --schema-filename public.graphql
126
129
  ```
127
130
 
128
131
  **Options:**
129
132
 
133
+ - `--schema-enabled` - Enable schema SDL export
134
+ - `--schema-output <dir>` - Output directory for the exported schema file
135
+ - `--schema-filename <name>` - Filename for the exported schema (default: schema.graphql)
130
136
  - `--endpoint <url>` - GraphQL endpoint URL
131
137
  - `--schema-file <path>` - Path to GraphQL schema file
132
138
  - `--schemas <list>` - Comma-separated PostgreSQL schemas
@@ -26,9 +26,11 @@ Generator Options:
26
26
  --verbose Verbose output
27
27
 
28
28
  Schema Export:
29
- --schema-only Export GraphQL SDL instead of running full codegen.
29
+ --schema-enabled Export GraphQL SDL instead of running full codegen.
30
30
  Works with any source (endpoint, file, database, PGPM).
31
31
  With multiple apiNames, writes one .graphql per API.
32
+ --schema-output <dir> Output directory for the exported schema file
33
+ --schema-filename <name> Filename for the exported schema (default: schema.graphql)
32
34
 
33
35
  --help, -h Show this help message
34
36
  `;
@@ -24,9 +24,11 @@ Generator Options:
24
24
  --verbose Verbose output
25
25
 
26
26
  Schema Export:
27
- --schema-only Export GraphQL SDL instead of running full codegen.
27
+ --schema-enabled Export GraphQL SDL instead of running full codegen.
28
28
  Works with any source (endpoint, file, database, PGPM).
29
29
  With multiple apiNames, writes one .graphql per API.
30
+ --schema-output <dir> Output directory for the exported schema file
31
+ --schema-filename <name> Filename for the exported schema (default: schema.graphql)
30
32
 
31
33
  --help, -h Show this help message
32
34
  `;
@@ -33,7 +33,7 @@ export const usageText = `
33
33
  cnc server --port 8080 Start server on custom port
34
34
  cnc explorer Launch GraphiQL explorer
35
35
  cnc codegen --schema schema.graphql Generate types from schema
36
- cnc codegen --schema-only --out schema.graphql Export schema SDL
36
+ cnc codegen --schema-enabled --output ./schemas Export schema SDL
37
37
  cnc jobs up Start combined server (jobs runtime)
38
38
 
39
39
  # Execution Engine
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/cli",
3
- "version": "7.7.8",
3
+ "version": "7.7.10",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive CLI",
6
6
  "main": "index.js",
@@ -45,14 +45,14 @@
45
45
  "ts-node": "^10.9.2"
46
46
  },
47
47
  "dependencies": {
48
- "@constructive-io/graphql-codegen": "^4.15.2",
48
+ "@constructive-io/graphql-codegen": "^4.15.4",
49
49
  "@constructive-io/graphql-env": "^3.4.4",
50
- "@constructive-io/graphql-explorer": "^4.6.4",
51
- "@constructive-io/graphql-server": "^4.11.3",
50
+ "@constructive-io/graphql-explorer": "^4.6.5",
51
+ "@constructive-io/graphql-server": "^4.11.4",
52
52
  "@constructive-io/graphql-types": "^3.3.4",
53
- "@constructive-io/knative-job-service": "^2.6.5",
53
+ "@constructive-io/knative-job-service": "^2.6.6",
54
54
  "@inquirerer/utils": "^3.3.4",
55
- "@pgpmjs/core": "^6.7.0",
55
+ "@pgpmjs/core": "^6.7.1",
56
56
  "@pgpmjs/logger": "^2.4.3",
57
57
  "@pgpmjs/server-utils": "^3.4.4",
58
58
  "@pgpmjs/types": "^2.19.3",
@@ -62,7 +62,7 @@
62
62
  "js-yaml": "^4.1.0",
63
63
  "pg-cache": "^3.3.4",
64
64
  "pg-env": "^1.7.3",
65
- "pgpm": "^4.7.5",
65
+ "pgpm": "^4.7.6",
66
66
  "shelljs": "^0.10.0",
67
67
  "yanse": "^0.2.1"
68
68
  },
@@ -77,5 +77,5 @@
77
77
  "postgres",
78
78
  "graphile"
79
79
  ],
80
- "gitHead": "9f3837555601b15e693ae0b750124fb0a8df3176"
80
+ "gitHead": "8edfd4913d37603659afa968489dc84d6bab769d"
81
81
  }
@@ -1 +1 @@
1
- export declare const usageText = "\n Usage: cnc <command> [options]\n constructive <command> [options]\n\n Constructive CLI - API Server and Development Tools\n\n GraphQL Server:\n server Start a GraphQL server\n explorer Launch GraphiQL explorer interface\n\n Code Generation:\n codegen Generate TypeScript types and SDK from GraphQL schema\n\n Jobs:\n jobs up Start combined server (jobs runtime)\n\n Execution Engine:\n context Manage contexts (create, list, use, current, delete)\n auth Manage authentication (set-token, status, logout)\n execute Execute GraphQL queries against configured endpoints\n\n Global Options:\n -h, --help Display this help information\n -v, --version Display version information\n --cwd <directory> Working directory (default: current directory)\n\n Individual Command Help:\n cnc <command> --help Display detailed help for specific command\n cnc <command> -h Display detailed help for specific command\n\n Examples:\n cnc server Start GraphQL server\n cnc server --port 8080 Start server on custom port\n cnc explorer Launch GraphiQL explorer\n cnc codegen --schema schema.graphql Generate types from schema\n cnc codegen --schema-only --out schema.graphql Export schema SDL\n cnc jobs up Start combined server (jobs runtime)\n\n # Execution Engine\n cnc context create my-api --endpoint https://api.example.com/graphql\n cnc auth set-token\n cnc execute --query 'query { __typename }'\n\n Database Operations:\n For database migrations, packages, and deployment, use pgpm:\n https://pgpm.io\n ";
1
+ export declare const usageText = "\n Usage: cnc <command> [options]\n constructive <command> [options]\n\n Constructive CLI - API Server and Development Tools\n\n GraphQL Server:\n server Start a GraphQL server\n explorer Launch GraphiQL explorer interface\n\n Code Generation:\n codegen Generate TypeScript types and SDK from GraphQL schema\n\n Jobs:\n jobs up Start combined server (jobs runtime)\n\n Execution Engine:\n context Manage contexts (create, list, use, current, delete)\n auth Manage authentication (set-token, status, logout)\n execute Execute GraphQL queries against configured endpoints\n\n Global Options:\n -h, --help Display this help information\n -v, --version Display version information\n --cwd <directory> Working directory (default: current directory)\n\n Individual Command Help:\n cnc <command> --help Display detailed help for specific command\n cnc <command> -h Display detailed help for specific command\n\n Examples:\n cnc server Start GraphQL server\n cnc server --port 8080 Start server on custom port\n cnc explorer Launch GraphiQL explorer\n cnc codegen --schema schema.graphql Generate types from schema\n cnc codegen --schema-enabled --output ./schemas Export schema SDL\n cnc jobs up Start combined server (jobs runtime)\n\n # Execution Engine\n cnc context create my-api --endpoint https://api.example.com/graphql\n cnc auth set-token\n cnc execute --query 'query { __typename }'\n\n Database Operations:\n For database migrations, packages, and deployment, use pgpm:\n https://pgpm.io\n ";
package/utils/display.js CHANGED
@@ -36,7 +36,7 @@ exports.usageText = `
36
36
  cnc server --port 8080 Start server on custom port
37
37
  cnc explorer Launch GraphiQL explorer
38
38
  cnc codegen --schema schema.graphql Generate types from schema
39
- cnc codegen --schema-only --out schema.graphql Export schema SDL
39
+ cnc codegen --schema-enabled --output ./schemas Export schema SDL
40
40
  cnc jobs up Start combined server (jobs runtime)
41
41
 
42
42
  # Execution Engine