@dcdavidev/bastion-cli 0.3.1 → 0.4.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.
- package/README.md +23 -15
- package/bin/darwin_amd64/bastion-cli +0 -0
- package/bin/darwin_arm64/bastion-cli +0 -0
- package/bin/linux_amd64/bastion-cli +0 -0
- package/bin/linux_arm64/bastion-cli +0 -0
- package/bin/windows_amd64/bastion-cli.exe +0 -0
- package/bin/windows_arm64/bastion-cli.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,9 +5,9 @@ The official Node.js wrapper for **Bastion**, a secure E2EE (End-to-End Encrypte
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
7
|
- **Zero-Config Secrets**: Inject secrets directly into your application's environment.
|
|
8
|
-
- **E2EE**: All secrets are encrypted client-side
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
8
|
+
- **E2EE**: All secrets are encrypted client-side.
|
|
9
|
+
- **Profiles**: Manage multiple environments (dev, staging, prod) with `bastion profile`.
|
|
10
|
+
- **CI/CD Ready**: All commands support flags to bypass interactive prompts.
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ npm install -g @dcdavidev/bastion-cli
|
|
|
17
17
|
|
|
18
18
|
## Quick Start
|
|
19
19
|
|
|
20
|
-
### 1. Initialize
|
|
20
|
+
### 1. Initialize and Configure
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
bastion init
|
|
@@ -26,34 +26,42 @@ bastion init
|
|
|
26
26
|
### 2. Login
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
bastion login --email your@email.com
|
|
29
|
+
bastion login --email your@email.com --password your-pass
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
### 3. Run your application with secrets
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
bastion run --project
|
|
35
|
+
bastion run --project PROJECT_ID --password vault-pass -- node main.js
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## CLI Reference 📖
|
|
39
39
|
|
|
40
|
-
### Setup &
|
|
40
|
+
### Setup & Profiles
|
|
41
41
|
|
|
42
|
-
- `bastion init`: Interactive setup wizard for
|
|
43
|
-
- `bastion
|
|
44
|
-
- `bastion
|
|
42
|
+
- `bastion init`: Interactive setup wizard for server and profile configuration.
|
|
43
|
+
- `bastion profile list`: List all configured environments.
|
|
44
|
+
- `bastion profile add <name> <url>`: Add a new server environment.
|
|
45
|
+
- `bastion profile use <name>`: Switch the active environment.
|
|
46
|
+
- `bastion login`: Authenticate and store session token for the active profile.
|
|
45
47
|
|
|
46
48
|
### Management
|
|
47
49
|
|
|
48
|
-
- `bastion create client
|
|
49
|
-
- `bastion create project
|
|
50
|
+
- `bastion create client --name <name>`: Register a new tenant.
|
|
51
|
+
- `bastion create project --client <id> --name <name>`: Add an E2EE project.
|
|
50
52
|
- `bastion list clients`: Show all registered clients.
|
|
51
|
-
- `bastion list projects
|
|
53
|
+
- `bastion list projects --client <id>`: Show projects for a client.
|
|
52
54
|
|
|
53
55
|
### Secrets
|
|
54
56
|
|
|
55
|
-
- `bastion set <KEY> <VALUE>
|
|
56
|
-
- `bastion run
|
|
57
|
+
- `bastion set <KEY> <VALUE> --project <id> --password <vault-pass>`: Encrypt and store a secret.
|
|
58
|
+
- `bastion run --project <id> --password <vault-pass> -- <command>`: Inject secrets and execute a command.
|
|
59
|
+
|
|
60
|
+
## Global Flags
|
|
61
|
+
|
|
62
|
+
- `--profile, -P <name>`: Use a specific profile for the command.
|
|
63
|
+
- `--url, -u <url>`: Override the Bastion server URL for any command.
|
|
64
|
+
- `--help, -h`: Help for any command.
|
|
57
65
|
|
|
58
66
|
## Documentation
|
|
59
67
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|