You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enveil server connect http://your-server:8080 --key shared-api-key
272
-
273
-
# Register your project on the server
270
+
# 2. Register and import the project locally BEFORE connecting to the server
274
271
cd~/projects/myapp
275
272
enveil init
276
-
277
-
# Import your existing secrets
278
273
enveil import .env
274
+
275
+
# 3. Connect to the server
276
+
enveil server connect http://your-server:8080 --key shared-api-key
277
+
278
+
# 4. Push the local project to the server
279
+
enveil server push
279
280
```
280
281
281
-
**Each developer (one time):**
282
+
`server push` creates the project on the server if it does not exist, then uploads all environments and variables encrypted. From this point the server is the source of truth for the team.
283
+
284
+
**Each developer (one time setup):**
282
285
283
286
```bash
284
-
# Connect to the server
287
+
#1. Connect to the server
285
288
enveil server connect http://your-server:8080 --key shared-api-key
286
289
287
-
# Associate their local directory with the shared project
290
+
#2. Associate the local directory with the project on the server
288
291
cd~/projects/myapp
289
292
enveil server use-project myapp
293
+
294
+
# 3. Run the app — no .env file needed
295
+
enveil run npm run dev
290
296
```
291
297
292
298
From that point, all `set`, `get`, `list`, `run`, `import`, `export`, `diff`, and `env` commands operate against the shared server. Variables set by one developer are immediately available to all others. No `.env` files are shared, committed, or sent over chat.
293
299
294
-
**Checking server status:**
300
+
**Server commands reference:**
295
301
296
302
```bash
297
-
enveil server status # verify connection
298
-
enveil server disconnect # switch back to local vault
303
+
enveil server connect http://your-server:8080 --key shared-api-key # connect to server
304
+
enveil server push # push local project to server
305
+
enveil server use-project # associate directory with server project
306
+
enveil server status # verify connection
307
+
enveil server disconnect # switch back to local vault
0 commit comments