envlink 0.0.1 → 1.0.2
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/LICENSE +21 -0
- package/README.md +62 -0
- package/commands.md +134 -0
- package/dist/index.js +118 -0
- package/package.json +56 -6
- package/index.js +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License Copyright (c) 2026 AbabilCore
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of
|
|
4
|
+
charge, to any person obtaining a copy of this software and associated
|
|
5
|
+
documentation files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use, copy, modify, merge,
|
|
7
|
+
publish, distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice
|
|
12
|
+
(including the next paragraph) shall be included in all copies or substantial
|
|
13
|
+
portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
16
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
17
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
18
|
+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
19
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
20
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# EnvLink
|
|
2
|
+
|
|
3
|
+
Secure and anonymous environment file sharing CLI - Share `.env` files with expiration and password protection.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/envlink)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
### Permanent Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install -g envlink
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### One-Time Use (No Installation)
|
|
17
|
+
|
|
18
|
+
You can use EnvLink without installing it permanently:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# Using npx (Node.js)
|
|
22
|
+
npx envlink create
|
|
23
|
+
npx envlink install el_abc123xyz456
|
|
24
|
+
|
|
25
|
+
# Using bunx (Bun)
|
|
26
|
+
bunx envlink create
|
|
27
|
+
bunx envlink install el_abc123xyz456
|
|
28
|
+
|
|
29
|
+
# Using pnpm
|
|
30
|
+
pnpm dlx envlink create
|
|
31
|
+
pnpm dlx envlink install el_abc123xyz456
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Quick Start
|
|
35
|
+
|
|
36
|
+
### Create and Share
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
cd my-project
|
|
40
|
+
envlink create
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Share the generated EnvLink ID with your team!
|
|
44
|
+
|
|
45
|
+
### Install on Another Machine
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
envlink install el_abc123xyz456
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
That's it! Your environment files are now installed.
|
|
52
|
+
|
|
53
|
+
## Documentation
|
|
54
|
+
|
|
55
|
+
For complete command reference including update, expire, and advanced options, see [commands.md](./commands.md)
|
|
56
|
+
|
|
57
|
+
## Security
|
|
58
|
+
|
|
59
|
+
- Auto-expiration (configurable)
|
|
60
|
+
- Optional password protection
|
|
61
|
+
- No signup required
|
|
62
|
+
- Anonymous sharing
|
package/commands.md
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
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), `M` (hours), `d` (days), `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`, `24M`, `5d`, `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:** 24 days 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
|