@fkodelabs/vaultenv 0.0.0-stage → 0.1.0

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.
Files changed (3) hide show
  1. package/README.md +31 -2
  2. package/dist/index.js +2356 -0
  3. package/package.json +30 -4
package/README.md CHANGED
@@ -1,3 +1,32 @@
1
- # Temporary Holding Version
1
+ # vaultenv
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Zero-knowledge environment sync for GitHub projects, from the terminal.
4
+
5
+ ```bash
6
+ npm install -g @fkodelabs/vaultenv
7
+ vaultenv login
8
+ vaultenv init --create
9
+ vaultenv import .env.production --env production
10
+ vaultenv export production --out .env.production
11
+ ```
12
+
13
+ `vaultenv login` prints a link, opens it in the browser and waits for approval. After approval the machine stores a session and unlocks the private key with your vault passphrase. Plaintext `.env` files never leave the machine; the server receives AES-256-GCM ciphertext only.
14
+
15
+ ## Commands
16
+
17
+ - `login` / `logout`
18
+ - `unlock`
19
+ - `init [--create] [--repo owner/name]`
20
+ - `projects` / `use <slug>`
21
+ - `import <file> [--env production]`
22
+ - `export <env> [--out .env.production]`
23
+ - `push` / `pull` aliases
24
+ - `whoami`
25
+
26
+ ## Environment
27
+
28
+ - `VAULTENV_API_URL`: API origin, defaults to `https://env-vault.fkodelabs.com`
29
+ - `VAULTENV_CONFIG_DIR`: local credentials directory, defaults to `~/.vaultenv`
30
+ - `VAULTENV_PASSPHRASE`: vault passphrase for non-interactive shells
31
+
32
+ Source: https://github.com/fk219/envvault