@envpilot/cli 0.1.0 → 0.1.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 +83 -0
- package/package.json +9 -3
package/README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# @envpilot/cli
|
|
2
|
+
|
|
3
|
+
The official CLI for [Envpilot](https://www.envpilot.dev) — a secure environment variable management platform for teams.
|
|
4
|
+
|
|
5
|
+
Envpilot lets you sync, share, and manage `.env` files across your team without leaking secrets in Slack, email, or Git. Variables are encrypted at rest using [WorkOS Vault](https://workos.com/vault) and access is controlled through role-based permissions.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g @envpilot/cli
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or with bun:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
bun install -g @envpilot/cli
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Or run without installing:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx @envpilot/cli login
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Authenticate with your Envpilot account
|
|
29
|
+
envpilot login
|
|
30
|
+
|
|
31
|
+
# Initialize a project in the current directory
|
|
32
|
+
envpilot init
|
|
33
|
+
|
|
34
|
+
# Pull environment variables into a .env file
|
|
35
|
+
envpilot pull
|
|
36
|
+
|
|
37
|
+
# Push local .env changes to Envpilot
|
|
38
|
+
envpilot push
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Commands
|
|
42
|
+
|
|
43
|
+
| Command | Description |
|
|
44
|
+
|---------|-------------|
|
|
45
|
+
| `envpilot login` | Authenticate with your Envpilot account |
|
|
46
|
+
| `envpilot logout` | Log out and clear stored credentials |
|
|
47
|
+
| `envpilot init` | Link the current directory to an Envpilot project |
|
|
48
|
+
| `envpilot pull` | Pull environment variables into a local `.env` file |
|
|
49
|
+
| `envpilot push` | Push local `.env` changes to Envpilot |
|
|
50
|
+
| `envpilot list orgs` | List your organizations |
|
|
51
|
+
| `envpilot list projects` | List projects in the active organization |
|
|
52
|
+
| `envpilot list variables` | List variables in the active project |
|
|
53
|
+
| `envpilot switch` | Switch the active project |
|
|
54
|
+
| `envpilot config` | View or update CLI configuration |
|
|
55
|
+
| `envpilot whoami` | Show the currently authenticated user |
|
|
56
|
+
|
|
57
|
+
## Role-Based Access
|
|
58
|
+
|
|
59
|
+
Envpilot enforces two-tier role-based access control:
|
|
60
|
+
|
|
61
|
+
**Organization roles**: Admin, Team Lead, Member
|
|
62
|
+
|
|
63
|
+
**Project roles**: Manager, Developer, Viewer
|
|
64
|
+
|
|
65
|
+
- **Viewers** have read-only access to explicitly permitted variables
|
|
66
|
+
- **Developers** can push changes, which creates pending approval requests
|
|
67
|
+
- **Managers** can push directly and approve pending requests
|
|
68
|
+
|
|
69
|
+
## Requirements
|
|
70
|
+
|
|
71
|
+
- Node.js 18 or later
|
|
72
|
+
- An [Envpilot](https://www.envpilot.dev) account
|
|
73
|
+
|
|
74
|
+
## Links
|
|
75
|
+
|
|
76
|
+
- [Website](https://www.envpilot.dev)
|
|
77
|
+
- [Privacy Policy](https://www.envpilot.dev/privacy)
|
|
78
|
+
- [Terms & Conditions](https://www.envpilot.dev/terms)
|
|
79
|
+
- [GitHub](https://github.com/rafay99-epic/envpilot.dev)
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
This software is proprietary. See [Terms & Conditions](https://www.envpilot.dev/terms) for details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envpilot/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "CLI tool for Envpilot environment variable management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"files": [
|
|
11
|
-
"dist"
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
12
13
|
],
|
|
13
14
|
"scripts": {
|
|
14
15
|
"build": "tsup src/index.ts --format esm --dts --clean",
|
|
@@ -51,5 +52,10 @@
|
|
|
51
52
|
"secrets"
|
|
52
53
|
],
|
|
53
54
|
"author": "",
|
|
54
|
-
"license": "
|
|
55
|
+
"license": "UNLICENSED",
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "https://github.com/rafay99-epic/envpilot.dev"
|
|
59
|
+
},
|
|
60
|
+
"homepage": "https://www.envpilot.dev"
|
|
55
61
|
}
|