envlink 1.0.0 → 1.0.6

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.

Potentially problematic release.


This version of envlink might be problematic. Click here for more details.

package/README.md CHANGED
@@ -5,89 +5,59 @@ Secure and anonymous environment file sharing CLI - Share `.env` files with expi
5
5
  [![npm version](https://img.shields.io/npm/v/envlink.svg)](https://www.npmjs.com/package/envlink)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
7
 
8
- ## Features
9
-
10
- - Secure sharing with encryption
11
- - Auto-expiration (minutes, hours, days, years, or never)
12
- - Optional password protection
13
- - No signup or authentication required
14
- - Share multiple files at once
15
- - Update existing EnvLinks
16
-
17
8
  ## Installation
18
9
 
10
+ ### Permanent Installation
11
+
19
12
  ```bash
20
13
  npm install -g envlink
21
14
  ```
22
15
 
23
- ## Quick Start
16
+ ### One-Time Use (No Installation)
24
17
 
25
- ### Create and Share
18
+ You can use EnvLink without installing it permanently:
26
19
 
27
20
  ```bash
28
- cd my-project
29
- envlink create
30
- ```
21
+ # Using npx (Node.js)
22
+ npx envlink create
23
+ npx envlink install el_abc123xyz456
31
24
 
32
- ### Install
25
+ # Using bunx (Bun)
26
+ bunx envlink create
27
+ bunx envlink install el_abc123xyz456
33
28
 
34
- ```bash
35
- envlink install <id>
29
+ # Using pnpm
30
+ pnpm dlx envlink create
31
+ pnpm dlx envlink install el_abc123xyz456
36
32
  ```
37
33
 
38
- ## Usage
34
+ ## Quick Start
39
35
 
40
- ### Create EnvLink
36
+ ### Create and Share
41
37
 
42
38
  ```bash
43
- # Interactive mode
39
+ cd my-project
44
40
  envlink create
45
-
46
- # With options
47
- envlink create --exp 7d
48
- envlink create --exp-pass mypassword
49
- envlink create --exp 5d --exp-pass secretpass
50
41
  ```
51
42
 
52
- **Expiration formats:** `30m`, `24h`, `5d`, `1y`, `never`
43
+ Share the generated EnvLink ID with your team!
53
44
 
54
- ### Install EnvLink
45
+ ### Install on Another Machine
55
46
 
56
47
  ```bash
57
- envlink install <id>
48
+ envlink install el_abc123xyz456
58
49
  ```
59
50
 
60
- ### View Info
51
+ That's it! Your environment files are now installed.
61
52
 
62
- ```bash
63
- envlink info <id>
64
- ```
65
-
66
- ### Update EnvLink
67
-
68
- ```bash
69
- envlink update <id> --files
70
- envlink update <id> --exp never
71
- ```
72
-
73
- ### Expire EnvLink
53
+ ## Documentation
74
54
 
75
- ```bash
76
- envlink expire <id>
77
- envlink expire <id> --exp-pass mypassword
78
- ```
79
-
80
- ### Help
81
-
82
- ```bash
83
- envlink --help
84
- envlink create --help
85
- ```
55
+ - **[commands.md](./commands.md)** - Complete command reference including update, expire, and advanced options
56
+ - **[faq.md](./faq.md)** - Frequently Asked Questions
86
57
 
87
58
  ## Security
88
59
 
89
- - End-to-end encryption
90
- - Password hashing with bcrypt
91
- - Automatic expiration
92
- - HTTPS transport only
93
- - No authentication required (anonymous)
60
+ - Auto-expiration (configurable)
61
+ - Optional password protection
62
+ - No signup required
63
+ - Anonymous sharing
package/commands.md ADDED
@@ -0,0 +1,135 @@
1
+ # EnvLink CLI Commands Reference
2
+
3
+ Complete command reference for EnvLink CLI tool.
4
+
5
+ ## Version & Help
6
+
7
+ ```bash
8
+ # Show version number
9
+ envlink -v
10
+ envlink -V
11
+ envlink --version
12
+
13
+ # Show help for all commands
14
+ envlink -h
15
+ envlink --help
16
+
17
+ # Show help for a specific command
18
+ envlink help <command>
19
+ ```
20
+
21
+ ## Create Commands
22
+
23
+ ```bash
24
+ # Interactive creation (prompts for files, expiration, password)
25
+ envlink create
26
+
27
+ # Create with 5 day expiration
28
+ envlink create --exp 5d
29
+
30
+ # Create with password protection
31
+ envlink create --exp-pass <password>
32
+
33
+ # Create with 1 year expiration and password
34
+ envlink create --exp 1y --exp-pass <password>
35
+ ```
36
+
37
+ **Expiration units:** `m` (minutes), `h` (hours), `d` (days), `M` (months), `y` (years), `never`
38
+
39
+ ## Install Commands
40
+
41
+ ```bash
42
+ # Install all files from EnvLink
43
+ envlink install <id>
44
+
45
+ # Install with file selection prompt
46
+ envlink install <id> -s
47
+ envlink install <id> --select-files
48
+ ```
49
+
50
+ ## Info Commands
51
+
52
+ ```bash
53
+ # Show EnvLink details (status, files, expiry, install count)
54
+ envlink info <id>
55
+ ```
56
+
57
+ ## Update Commands
58
+
59
+ ```bash
60
+ # Update files from current directory
61
+ envlink update <id> -f
62
+ envlink update <id> --files
63
+
64
+ # Update expiration to 30 days
65
+ envlink update <id> --exp 30d
66
+
67
+ # Update/set expiration password
68
+ envlink update <id> --exp-pass <new-password>
69
+
70
+ # Provide current password for protected EnvLink
71
+ envlink update <id> --current-pass <password>
72
+
73
+ # Update files and set to never expire
74
+ envlink update <id> -f --exp never
75
+
76
+ # Update files with authentication
77
+ envlink update <id> --files --current-pass <password>
78
+ ```
79
+
80
+ ## Expire Commands
81
+
82
+ ```bash
83
+ # Manually expire an EnvLink (if not password protected)
84
+ envlink expire <id>
85
+
86
+ # Expire EnvLink with password validation
87
+ envlink expire <id> --exp-pass <password>
88
+ ```
89
+
90
+ ## Examples
91
+
92
+ ### Basic Workflow
93
+
94
+ ```bash
95
+ # 1. Create an EnvLink
96
+ envlink create
97
+
98
+ # 2. Check EnvLink status
99
+ envlink info el_abc123xyz456
100
+
101
+ # 3. Install on another machine
102
+ envlink install el_abc123xyz456
103
+ ```
104
+
105
+ ### Advanced Workflow
106
+
107
+ ```bash
108
+ # 1. Create 7-day link with password
109
+ envlink create --exp 7d --exp-pass mypass123
110
+
111
+ # 2. Update files later
112
+ envlink update el_abc123xyz456 --files --current-pass mypass123
113
+
114
+ # 3. Manually expire when done
115
+ envlink expire el_abc123xyz456 --exp-pass mypass123
116
+ ```
117
+
118
+ ## Common Options
119
+
120
+ | Option | Description |
121
+ | --------------------------- | --------------------------------------------------------------- |
122
+ | `--exp <duration>` | Expiration duration: `30m`, `24h`, `5d`, `6M`, `1y`, or `never` |
123
+ | `--exp-pass <password>` | Password for protection/expiration |
124
+ | `--current-pass <password>` | Current password (required for updating protected links) |
125
+ | `-f, --files` | Update files flag |
126
+ | `-s, --select-files` | File selection mode for install |
127
+
128
+ ## Notes
129
+
130
+ - **Default expiration:** 1 day if not specified
131
+ - **EnvLink ID format:** `el_<16-char-alphanumeric>`
132
+ - **Password protection:** Required for updates and manual expiration of protected links
133
+ - **Expired links:** Cannot be installed or updated
134
+ - **Never expire:** Use `--exp never` for permanent links
135
+ - **Time units:** `m` (minutes), `h` (hours), `d` (days), `M` (months), `y` (years)