neon 4.13.0 → 4.13.1
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 +4 -4
- package/dist/commands/ask.js +2 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Neon CLI
|
|
2
2
|
|
|
3
|
-
The `neon` package is a command-line interface that lets you manage [Neon](https://neon.
|
|
3
|
+
The `neon` package is a command-line interface that lets you manage [Neon](https://neon.com/) — Lakebase Postgres, Object Storage, Functions, Managed Better Auth, and the AI Gateway — directly from the terminal. For the complete documentation, see [Neon CLI](https://neon.com/docs/cli).
|
|
4
4
|
|
|
5
5
|
The legacy `neonctl` package is a lightweight compatibility package that depends
|
|
6
6
|
on this package and invokes the same CLI entry point. The implementation and
|
|
@@ -54,7 +54,7 @@ Run the following command to authenticate a connection to Neon:
|
|
|
54
54
|
neon auth
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
The `auth` command launches a browser window where you can authorize the Neon CLI to access your Neon account. Running a Neon CLI command without authenticating with [neon auth](https://neon.
|
|
57
|
+
The `auth` command launches a browser window where you can authorize the Neon CLI to access your Neon account. Running a Neon CLI command without authenticating with [neon auth](https://neon.com/docs/cli/auth) automatically launches the browser authentication process.
|
|
58
58
|
|
|
59
59
|
Alternatively, you can authenticate a connection with a Neon API key using the `--api-key` option when running a Neon CLI command. For example, an API key is used with the following `neon projects list` command:
|
|
60
60
|
|
|
@@ -165,7 +165,7 @@ neon projects update <project-id> --enable-logical-replication --yes
|
|
|
165
165
|
|
|
166
166
|
### The `psql` command
|
|
167
167
|
|
|
168
|
-
`neon psql [branch]` opens a psql session against a branch. It builds the connection string for the branch and launches psql — a shortcut for `neon connection-string --psql`. See [Neon CLI commands — psql](https://neon.com/docs/
|
|
168
|
+
`neon psql [branch]` opens a psql session against a branch. It builds the connection string for the branch and launches psql — a shortcut for `neon connection-string --psql`. See [Neon CLI commands — psql](https://neon.com/docs/cli/psql) for the full reference.
|
|
169
169
|
|
|
170
170
|
```bash
|
|
171
171
|
neon psql # default branch
|
|
@@ -259,7 +259,7 @@ regression + TAP tests.
|
|
|
259
259
|
|
|
260
260
|
## Configure autocompletion
|
|
261
261
|
|
|
262
|
-
The Neon CLI supports autocompletion, which you can configure in a few easy steps. See [Neon CLI commands — completion](https://neon.
|
|
262
|
+
The Neon CLI supports autocompletion, which you can configure in a few easy steps. See [Neon CLI commands — completion](https://neon.com/docs/cli/completion) for instructions.
|
|
263
263
|
|
|
264
264
|
## Linking a project
|
|
265
265
|
|
package/dist/commands/ask.js
CHANGED
|
@@ -128,7 +128,8 @@ async function askAssistant(opts) {
|
|
|
128
128
|
method: "POST",
|
|
129
129
|
headers: {
|
|
130
130
|
"Content-Type": "application/json",
|
|
131
|
-
Accept: opts.acceptEventStream ? "text/event-stream" : "application/json"
|
|
131
|
+
Accept: opts.acceptEventStream ? "text/event-stream" : "application/json",
|
|
132
|
+
"x-neon-source": "cli"
|
|
132
133
|
},
|
|
133
134
|
body: JSON.stringify({ prompt: opts.prompt }),
|
|
134
135
|
signal: AbortSignal.timeout(ASK_TIMEOUT_MS)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neon",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.1",
|
|
4
4
|
"description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"neon",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"yaml": "^2.9.0",
|
|
64
64
|
"yargs": "17.7.2",
|
|
65
65
|
"yoctocolors": "^2.1.2",
|
|
66
|
-
"@neon/config": "1.1.0",
|
|
66
|
+
"@neon/config-runtime": "1.1.0",
|
|
67
67
|
"@neon/sdk": "3.0.0",
|
|
68
|
-
"@neon/config
|
|
68
|
+
"@neon/config": "1.1.0"
|
|
69
69
|
},
|
|
70
70
|
"optionalDependencies": {
|
|
71
71
|
"@napi-rs/keyring": "1.3.0",
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"typescript": "^5.9.0",
|
|
98
98
|
"vitest": "^3.0.9",
|
|
99
99
|
"@neon-internals/cli-core": "0.0.0",
|
|
100
|
-
"@neon/
|
|
101
|
-
"@neon
|
|
100
|
+
"@neon-internals/env-core": "0.0.6",
|
|
101
|
+
"@neon/e2e-harness": "0.0.0"
|
|
102
102
|
},
|
|
103
103
|
"publishConfig": {
|
|
104
104
|
"access": "public",
|