@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 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; the server never sees your plaintext data.
9
- - **Blind Backend**: Secure, self-hosted architecture.
10
- - **Cross-Platform**: Built-in binaries for Linux, macOS, and Windows.
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 your vault
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=PROJECT_ID -- node main.js
35
+ bastion run --project PROJECT_ID --password vault-pass -- node main.js
36
36
  ```
37
37
 
38
38
  ## CLI Reference 📖
39
39
 
40
- ### Setup & Auth
40
+ ### Setup & Profiles
41
41
 
42
- - `bastion init`: Interactive setup wizard for database and admin.
43
- - `bastion login --email <email>`: Authenticate and store session token.
44
- - `bastion version`: Show current version and check for updates.
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`: Register a new tenant.
49
- - `bastion create project`: Add an E2EE environment to a client.
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 -c <CLIENT_ID>`: Show projects for a client.
53
+ - `bastion list projects --client <id>`: Show projects for a client.
52
54
 
53
55
  ### Secrets
54
56
 
55
- - `bastion set <KEY> <VALUE> -p <PROJECT_ID>`: Encrypt and store a secret.
56
- - `bastion run -p <PROJECT_ID> -- <command>`: Inject secrets and execute a command.
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcdavidev/bastion-cli",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Bastion CLI - Secure secret management and execution",
5
5
  "keywords": [
6
6
  "secrets",