@constructive-io/cli 7.7.9 → 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 +11 -5
- package/commands/codegen.js +3 -1
- package/esm/commands/codegen.js +3 -1
- package/esm/utils/display.js +1 -1
- package/package.json +3 -3
- package/utils/display.d.ts +1 -1
- package/utils/display.js +1 -1
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-
|
|
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-
|
|
116
|
+
cnc codegen --schema-enabled --schemas myapp,public --schema-output ./schemas
|
|
117
117
|
|
|
118
118
|
# From running server
|
|
119
|
-
cnc codegen --schema-
|
|
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-
|
|
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-
|
|
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
|
package/commands/codegen.js
CHANGED
|
@@ -26,9 +26,11 @@ Generator Options:
|
|
|
26
26
|
--verbose Verbose output
|
|
27
27
|
|
|
28
28
|
Schema Export:
|
|
29
|
-
--schema-
|
|
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
|
`;
|
package/esm/commands/codegen.js
CHANGED
|
@@ -24,9 +24,11 @@ Generator Options:
|
|
|
24
24
|
--verbose Verbose output
|
|
25
25
|
|
|
26
26
|
Schema Export:
|
|
27
|
-
--schema-
|
|
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
|
`;
|
package/esm/utils/display.js
CHANGED
|
@@ -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-
|
|
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.
|
|
3
|
+
"version": "7.7.10",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive CLI",
|
|
6
6
|
"main": "index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"ts-node": "^10.9.2"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@constructive-io/graphql-codegen": "^4.15.
|
|
48
|
+
"@constructive-io/graphql-codegen": "^4.15.4",
|
|
49
49
|
"@constructive-io/graphql-env": "^3.4.4",
|
|
50
50
|
"@constructive-io/graphql-explorer": "^4.6.5",
|
|
51
51
|
"@constructive-io/graphql-server": "^4.11.4",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"postgres",
|
|
78
78
|
"graphile"
|
|
79
79
|
],
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "8edfd4913d37603659afa968489dc84d6bab769d"
|
|
81
81
|
}
|
package/utils/display.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|