envbook 0.3.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 +38 -0
- package/bin/envbook.js +19 -0
- package/package.json +29 -0
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# envbook
|
|
2
|
+
|
|
3
|
+
The command line for [EnvBook](https://envbook.com) — your setup book for
|
|
4
|
+
AI-assisted projects.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npx envbook pull # write .env.local for this repo
|
|
8
|
+
npx envbook check # does this repo have everything it needs? (no vault password)
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
`pull` works out which EnvBook project this directory is from your git remote
|
|
12
|
+
(then the folder name), decrypts your values **locally**, and writes
|
|
13
|
+
`.env.local`. Values never appear in the terminal — it prints key names only.
|
|
14
|
+
|
|
15
|
+
`check` reads the code for the environment variables it actually uses and
|
|
16
|
+
tells you which ones you don't hold yet. It needs no vault password, so it
|
|
17
|
+
runs in CI and on a fresh clone.
|
|
18
|
+
|
|
19
|
+
## Setup
|
|
20
|
+
|
|
21
|
+
| Variable | Needed for | |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| `ENVBOOK_TOKEN` | everything | create one at [envbook.com/account/security](https://envbook.com/account/security) |
|
|
24
|
+
| `ENVBOOK_VAULT_PASSWORD` | `pull` only | your vault password — decryption happens on your machine |
|
|
25
|
+
| `ENVBOOK_PROJECT` | optional | default project slug, when the guess is wrong |
|
|
26
|
+
| `ENVBOOK_URL` | optional | self-hosted instance |
|
|
27
|
+
|
|
28
|
+
## What this package is
|
|
29
|
+
|
|
30
|
+
A bin and nothing more. The implementation lives in
|
|
31
|
+
[`envbook-mcp`](https://www.npmjs.com/package/envbook-mcp), which also
|
|
32
|
+
provides the MCP server for coding agents:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx envbook-mcp # MCP server (stdio)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Both packages release together at the same version.
|
package/bin/envbook.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* `npx envbook` — a bin, and nothing else.
|
|
4
|
+
*
|
|
5
|
+
* The CLI itself lives in `envbook-mcp`, which also ships the MCP server. It
|
|
6
|
+
* declares an `envbook` bin too, but reaching that through
|
|
7
|
+
* `npx -p envbook-mcp envbook` is unreliable: on Windows the shim isn't
|
|
8
|
+
* always resolvable, which is exactly what happened the first time anyone
|
|
9
|
+
* tried it. `npx <name>` only works cleanly when the PACKAGE is named what
|
|
10
|
+
* you type, so this package exists to own that name.
|
|
11
|
+
*
|
|
12
|
+
* It deliberately contains NO logic. One implementation, imported through a
|
|
13
|
+
* public export path (`envbook-mcp/cli`) rather than a deep `dist/` reach,
|
|
14
|
+
* so the two can't drift and adding an exports map upstream can't break it.
|
|
15
|
+
* The dependency is pinned EXACTLY: the wrapper and the implementation ship
|
|
16
|
+
* as one release, and `version-lockstep.test.ts` fails the build if they
|
|
17
|
+
* ever disagree.
|
|
18
|
+
*/
|
|
19
|
+
import "envbook-mcp/cli";
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "envbook",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "EnvBook on the command line \u2014 pull your project's .env.local, or check whether this repo has everything it needs.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"envbook",
|
|
7
|
+
"dotenv",
|
|
8
|
+
"env",
|
|
9
|
+
"secrets",
|
|
10
|
+
"cli",
|
|
11
|
+
"zero-knowledge"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://envbook.com",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"bin": {
|
|
17
|
+
"envbook": "bin/envbook.js"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"bin",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=20"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"envbook-mcp": "0.3.1"
|
|
28
|
+
}
|
|
29
|
+
}
|