@tolgamorf/env2op-cli 0.2.2 → 0.2.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/LICENSE +1 -1
- package/README.md +31 -6
- package/dist/cli.js +485 -478
- package/dist/index.d.ts +3 -0
- package/dist/index.js +130 -131
- package/dist/op2env-cli.js +478 -474
- package/package.json +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,8 +1,33 @@
|
|
|
1
|
-
# env2op
|
|
1
|
+
# 🔐 env2op ⇄ op2env
|
|
2
2
|
|
|
3
|
-
Push `.env` files to 1Password and pull them back with two simple commands.
|
|
3
|
+
### Push `.env` files to [1Password](https://1password.com) and pull them back with two simple commands.
|
|
4
4
|
|
|
5
|
-

|
|
6
|
+
[](https://www.npmjs.com/package/@tolgamorf/env2op-cli)
|
|
7
|
+
[](https://packagephobia.com/result?p=@tolgamorf/env2op-cli@0.2.2)
|
|
8
|
+
[](https://github.com/tolgamorf/env2op-cli/commits/main)
|
|
9
|
+
[](https://github.com/tolgamorf/env2op-cli/commits/main)
|
|
10
|
+
|
|
11
|
+
[](https://nodejs.org/)
|
|
12
|
+
[](https://www.typescriptlang.org/)
|
|
13
|
+
[](https://nodejs.org/api/esm.html)
|
|
14
|
+
[](https://bun.sh/)
|
|
15
|
+
[](https://biomejs.dev/)
|
|
16
|
+
|
|
17
|
+
[](https://www.npmjs.com/package/@tolgamorf/env2op-cli)
|
|
18
|
+
[](https://github.com/tolgamorf/homebrew-tap)
|
|
19
|
+
[](https://github.com/tolgamorf/env2op-cli/actions/workflows/ci.yml)
|
|
20
|
+
[](https://github.com/tolgamorf/env2op-cli/issues)
|
|
21
|
+
[](https://github.com/tolgamorf/env2op-cli/pulls)
|
|
22
|
+
[](https://github.com/tolgamorf/env2op-cli/blob/main/LICENSE)
|
|
23
|
+
|
|
24
|
+
<!--
|
|
25
|
+
[](https://bundlephobia.com/package/@tolgamorf/env2op-cli)
|
|
26
|
+
[](https://socket.dev/npm/package/@tolgamorf/env2op-cli)
|
|
27
|
+
[](https://github.com/tolgamorf/env2op-cli/stargazers)
|
|
28
|
+
-->
|
|
29
|
+
|
|
30
|
+

|
|
6
31
|
|
|
7
32
|
## Installation
|
|
8
33
|
|
|
@@ -58,7 +83,7 @@ pnpm dlx @tolgamorf/env2op-cli .env Personal "MyApp"
|
|
|
58
83
|
This package provides two commands:
|
|
59
84
|
|
|
60
85
|
| Command | Description |
|
|
61
|
-
|
|
86
|
+
|:--------:|--------------------------------------------------------|
|
|
62
87
|
| `env2op` | Push `.env` to 1Password, generate `.env.tpl` template |
|
|
63
88
|
| `op2env` | Pull secrets from 1Password using `.env.tpl` template |
|
|
64
89
|
|
|
@@ -92,7 +117,7 @@ env2op .env.production Personal "MyApp" -f
|
|
|
92
117
|
### Options for env2op
|
|
93
118
|
|
|
94
119
|
| Flag | Description |
|
|
95
|
-
|
|
120
|
+
|----------------:|-------------------------------------------------------|
|
|
96
121
|
| `-o, --output` | Output template path (default: `<env_file>.tpl`) |
|
|
97
122
|
| `-f, --force` | Skip confirmation prompts |
|
|
98
123
|
| `--dry-run` | Preview actions without executing |
|
|
@@ -129,7 +154,7 @@ op2env .env.tpl -f
|
|
|
129
154
|
### Options for op2env
|
|
130
155
|
|
|
131
156
|
| Flag | Description |
|
|
132
|
-
|
|
157
|
+
|----------------:|-----------------------------------------------------|
|
|
133
158
|
| `-o, --output` | Output .env path (default: template without `.tpl`) |
|
|
134
159
|
| `-f, --force` | Overwrite without prompting |
|
|
135
160
|
| `--dry-run` | Preview actions without executing |
|