postgresai 0.11.0-alpha.2 → 0.11.0-alpha.4

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
@@ -10,9 +10,10 @@ npm install -g postgresai@alpha
10
10
 
11
11
  ## Usage
12
12
 
13
- The CLI provides two command aliases:
13
+ The CLI provides three command aliases:
14
14
  ```bash
15
15
  postgres-ai --help
16
+ postgresai --help
16
17
  pgai --help # short alias
17
18
  ```
18
19
 
@@ -199,6 +199,12 @@ program
199
199
  const list = filtered.length > 0 ? filtered : [];
200
200
  if (list.length === 0) {
201
201
  console.log("No instances configured");
202
+ console.log("");
203
+ console.log("To add an instance:");
204
+ console.log(" postgres-ai add-instance <connection-string> <name>");
205
+ console.log("");
206
+ console.log("Example:");
207
+ console.log(" postgres-ai add-instance 'postgresql://user:pass@host:5432/db' my-db");
202
208
  return;
203
209
  }
204
210
  for (const n of list) console.log(`Instance: ${n}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postgresai",
3
- "version": "0.11.0-alpha.2",
3
+ "version": "0.11.0-alpha.4",
4
4
  "description": "PostgresAI CLI (Node.js)",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -14,6 +14,7 @@
14
14
  },
15
15
  "bin": {
16
16
  "postgres-ai": "./bin/postgres-ai.js",
17
+ "postgresai": "./bin/postgres-ai.js",
17
18
  "pgai": "./bin/postgres-ai.js"
18
19
  },
19
20
  "type": "commonjs",