@fentz26/envcp 1.0.71 → 1.0.72

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
@@ -15,11 +15,19 @@
15
15
 
16
16
  ## Installation
17
17
 
18
+ ### npm
19
+
18
20
  ```bash
19
21
  npm install -g @fentz26/envcp
20
22
  ```
21
23
 
22
- Or use without installing:
24
+ ### One-line install (curl)
25
+
26
+ ```bash
27
+ curl -fsSL https://raw.githubusercontent.com/fentz26/EnvCP/main/scripts/install.sh | bash
28
+ ```
29
+
30
+ ### Use without installing
23
31
 
24
32
  ```bash
25
33
  npx @fentz26/envcp init
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fentz26/envcp",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
4
4
  "description": "MCP server for secure environment variable management - Keep your secrets safe from AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,54 @@
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ RED='\033[0;31m'
6
+ GREEN='\033[0;32m'
7
+ BLUE='\033[0;34m'
8
+ BOLD='\033[1m'
9
+ NC='\033[0m'
10
+
11
+ echo -e "${BOLD}${BLUE}"
12
+ cat << "EOF"
13
+ ███████╗███╗ ██╗██╗ ██╗ ██████╗██████╗
14
+ ██╔════╝████╗ ██║██║ ██║██╔════╝██╔══██╗
15
+ █████╗ ██╔██╗ ██║██║ ██║██║ ██████╔╝
16
+ ██╔══╝ ██║╚██╗██║╚██╗ ██╔╝██║ ██╔═══╝
17
+ ███████╗██║ ╚████║ ╚████╔╝ ╚██████╗██║
18
+ ╚══════╝╚═╝ ╚═══╝ ╚═══╝ ╚═════╝╚═╝
19
+ EOF
20
+ echo -e "${NC}"
21
+
22
+ echo -e "${BLUE}Installing EnvCP...${NC}"
23
+ echo ""
24
+
25
+ if ! command -v npm &> /dev/null; then
26
+ echo -e "${RED}Error: npm is not installed.${NC}"
27
+ echo "Please install Node.js first: https://nodejs.org/"
28
+ exit 1
29
+ fi
30
+
31
+ NODE_VERSION=$(node -e "console.log(process.version.slice(1).split('.')[0])")
32
+ if [ "$NODE_VERSION" -lt 18 ]; then
33
+ echo -e "${RED}Error: Node.js 18 or higher is required (you have $NODE_VERSION).${NC}"
34
+ exit 1
35
+ fi
36
+
37
+ echo -e "${BLUE}Installing @fentz26/envcp globally...${NC}"
38
+
39
+ if npm install -g @fentz26/envcp; then
40
+ echo ""
41
+ echo -e "${GREEN}${BOLD}Successfully installed EnvCP!${NC}"
42
+ echo ""
43
+ echo -e "${BOLD}Get started:${NC}"
44
+ echo " envcp init # Initialize configuration"
45
+ echo " envcp add KEY # Add a secret"
46
+ echo " envcp --help # See all commands"
47
+ echo ""
48
+ echo -e "${BOLD}Docs:${NC} https://github.com/fentz26/EnvCP"
49
+ else
50
+ echo ""
51
+ echo -e "${RED}Installation failed. Try with sudo:${NC}"
52
+ echo " curl -fsSL https://raw.githubusercontent.com/fentz26/EnvCP/main/scripts/install.sh | sudo bash"
53
+ exit 1
54
+ fi
@@ -13,18 +13,26 @@ const message = `
13
13
 
14
14
  ─────────────────────────────────────────────
15
15
 
16
- Setup options:
16
+ Vault location:
17
+
18
+ ~/ or / -> Global vault (shared across all projects)
19
+ any folder -> Project vault (named after the folder)
20
+ You can rename it anytime with: envcp vault rename [name]
21
+
22
+ ─────────────────────────────────────────────
23
+
24
+ Get started:
17
25
 
18
26
  Simple (one-time setup):
19
- $ envcp init # Interactive guided setup
27
+ $ envcp init # Interactive guided setup
20
28
 
21
29
  Advanced (manual config):
22
- $ envcp init --advanced # Full config options
23
- $ envcp add KEY # Add a secret manually
24
- $ envcp config set KEY VALUE # Set config values
30
+ $ envcp init --advanced # Full config options
31
+ $ envcp add [NAME] [VALUE] # Add a secret manually
32
+ $ envcp config set [KEY] [VALUE] # Set config values
25
33
 
26
34
  Explore:
27
- $ envcp --help # See all commands
35
+ $ envcp --help # See all commands
28
36
 
29
37
  Docs: https://github.com/fentz26/EnvCP
30
38
  `;