@cortex-context/cli 0.0.19 → 0.0.20
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 +49 -14
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,23 +68,58 @@ cortex-context doctor
|
|
|
68
68
|
|
|
69
69
|
## Commands
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
| `cortex-context
|
|
76
|
-
| `cortex-context
|
|
71
|
+
### Workspace setup
|
|
72
|
+
|
|
73
|
+
| Command | Description |
|
|
74
|
+
| --------------------------------- | ------------------------------------------------------ |
|
|
75
|
+
| `cortex-context init` | Full interactive setup (Skills, MCP, hooks, rules) |
|
|
76
|
+
| `cortex-context update` | Update Skills + MCP files to latest bundled version |
|
|
77
|
+
| `cortex-context update --dry-run` | Preview update changes without writing files |
|
|
78
|
+
| `cortex-context sync` | Ingest latest git diff into the Cortex Knowledge Graph |
|
|
79
|
+
| `cortex-context sync --dry-run` | Show diff without sending to Cortex API |
|
|
80
|
+
| `cortex-context doctor` | Validate installation + test Cortex connectivity |
|
|
81
|
+
| `cortex-context uninstall` | Remove Cortex Context from the workspace |
|
|
82
|
+
|
|
83
|
+
### Local server
|
|
84
|
+
|
|
85
|
+
| Command | Description |
|
|
86
|
+
| ---------------------------------------- | ----------------------------------------------------------------------- |
|
|
87
|
+
| `cortex-context server` | Install Docker (if needed) and start Neo4j + Cortex API locally |
|
|
88
|
+
| `cortex-context server --embeddings` | Start with embeddings image (sentence-transformers, CPU, ~1.5 GB) |
|
|
89
|
+
| `cortex-context server --embeddings-gpu` | Start with embeddings GPU image (PyTorch CUDA, ~2 GB — requires nvidia) |
|
|
90
|
+
| `cortex-context upgrade` | Pull latest Cortex backend image and restart the local stack |
|
|
91
|
+
| `cortex-context upgrade --embeddings` | Upgrade using the embeddings image variant |
|
|
92
|
+
| `cortex-context upgrade --pull-only` | Pull latest image without recreating the container |
|
|
93
|
+
|
|
94
|
+
### Token management
|
|
95
|
+
|
|
96
|
+
| Command | Description |
|
|
97
|
+
| ---------------------------------- | ------------------------------------------------------- |
|
|
98
|
+
| `cortex-context token` | Show current API token (masked) |
|
|
99
|
+
| `cortex-context token --show` | Reveal the full token |
|
|
100
|
+
| `cortex-context token --rotate` | Generate a new random token, save it, and restart stack |
|
|
101
|
+
| `cortex-context token --set <val>` | Set a specific token value (empty string clears auth) |
|
|
102
|
+
|
|
103
|
+
### Advanced
|
|
104
|
+
|
|
105
|
+
| Command | Description |
|
|
106
|
+
| -------------------------- | ------------------------------------------------------------------- |
|
|
107
|
+
| `cortex-context reset` | Wipe all nodes and relationships from the Knowledge Graph |
|
|
108
|
+
| `cortex-context mcp-serve` | Start the MCP server over stdio (used internally by VS Code/Cursor) |
|
|
77
109
|
|
|
78
110
|
## Options (init)
|
|
79
111
|
|
|
80
|
-
| Flag | Description
|
|
81
|
-
| --------------- |
|
|
82
|
-
| `--url <url>` | Cortex server URL (skips prompt)
|
|
83
|
-
| `--token <tok>` | API token (skips prompt)
|
|
84
|
-
| `--workspace` | Target workspace path (default: cwd)
|
|
85
|
-
| `--
|
|
86
|
-
| `--skip-
|
|
87
|
-
| `--
|
|
112
|
+
| Flag | Description |
|
|
113
|
+
| --------------- | ------------------------------------------------------------------------- |
|
|
114
|
+
| `--url <url>` | Cortex server URL (skips prompt) |
|
|
115
|
+
| `--token <tok>` | API token (skips prompt) |
|
|
116
|
+
| `--workspace` | Target workspace path (default: cwd) |
|
|
117
|
+
| `--local` | Deploy a local Cortex stack with Docker (mutually exclusive with `--url`) |
|
|
118
|
+
| `--skip-mcp` | Don't configure MCP server |
|
|
119
|
+
| `--skip-skills` | Don't install Skills |
|
|
120
|
+
| `--skip-hooks` | Don't install git hooks |
|
|
121
|
+
| `--skip-rules` | Don't inject Copilot/Cursor rules |
|
|
122
|
+
| `--force` | Overwrite existing files without prompting |
|
|
88
123
|
|
|
89
124
|
## Contributing
|
|
90
125
|
|
package/dist/index.js
CHANGED
|
@@ -28897,7 +28897,7 @@ async function upgradeCommand(options) {
|
|
|
28897
28897
|
console.log("");
|
|
28898
28898
|
process.exit(1);
|
|
28899
28899
|
}
|
|
28900
|
-
const imageTag = options.embeddings ? "latest-embeddings" : "latest";
|
|
28900
|
+
const imageTag = options.embeddingsGpu ? "latest-embeddings-gpu" : options.embeddings ? "latest-embeddings" : "latest";
|
|
28901
28901
|
const cortexImage = `ghcr.io/rodrigoroldan/cortex-context:${imageTag}`;
|
|
28902
28902
|
console.log(source_default.dim(` Target image: ${cortexImage}`));
|
|
28903
28903
|
console.log(source_default.dim(` Compose dir: ${workDir}`));
|
|
@@ -28932,7 +28932,8 @@ async function upgradeCommand(options) {
|
|
|
28932
28932
|
return;
|
|
28933
28933
|
}
|
|
28934
28934
|
const result = await upgradeLocalStack(workDir, {
|
|
28935
|
-
embeddings: options.embeddings
|
|
28935
|
+
embeddings: options.embeddings,
|
|
28936
|
+
gpu: options.embeddingsGpu
|
|
28936
28937
|
});
|
|
28937
28938
|
if (!result.upgraded) {
|
|
28938
28939
|
console.error(source_default.red(` \u2717 Upgrade failed: ${result.error}`));
|
|
@@ -29034,6 +29035,9 @@ function createCli() {
|
|
|
29034
29035
|
"--dir <path>",
|
|
29035
29036
|
"Directory with docker-compose.local.yml (defaults to ~/.cortex-context)"
|
|
29036
29037
|
).option("--embeddings", "Use the embeddings-enabled image variant").option(
|
|
29038
|
+
"--embeddings-gpu",
|
|
29039
|
+
"Use the embeddings GPU image variant (PyTorch CUDA, ~2 GB \u2014 requires nvidia)"
|
|
29040
|
+
).option(
|
|
29037
29041
|
"--pull-only",
|
|
29038
29042
|
"Pull the latest image without recreating the container"
|
|
29039
29043
|
).action(upgradeCommand);
|