@dotenvx/dotenvx-vlt 0.49.2 → 0.50.1

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/LICENSE +9 -9
  3. package/README.md +4 -4
  4. package/package.json +5 -5
  5. package/src/cli/actions/backup.js +1 -1
  6. package/src/cli/actions/rotate/github/connect.js +1 -1
  7. package/src/cli/actions/rotate/npm/connect.js +1 -1
  8. package/src/cli/actions/rotate/openai/connect.js +1 -1
  9. package/src/cli/actions/rotate.js +1 -1
  10. package/src/cli/actions/settings/device.js +1 -1
  11. package/src/cli/actions/settings/hostname.js +1 -1
  12. package/src/cli/actions/settings/off.js +2 -2
  13. package/src/cli/actions/settings/on.js +2 -2
  14. package/src/cli/actions/settings/path.js +1 -1
  15. package/src/cli/actions/settings/token.js +1 -1
  16. package/src/cli/actions/sync.js +1 -1
  17. package/src/cli/commands/armor.js +6 -6
  18. package/src/cli/commands/gateway.js +1 -1
  19. package/src/cli/commands/rotate.js +1 -1
  20. package/src/cli/commands/settings.js +9 -9
  21. package/src/cli/{dotenvx-ops.js → dotenvx-vlt.js} +13 -13
  22. package/src/db/session.js +1 -1
  23. package/src/lib/api/getAccount.js +1 -1
  24. package/src/lib/api/getSynchronization.js +1 -1
  25. package/src/lib/api/getVersion.js +1 -1
  26. package/src/lib/api/postArmorDown.js +1 -1
  27. package/src/lib/api/postArmorMove.js +1 -1
  28. package/src/lib/api/postArmorPull.js +1 -1
  29. package/src/lib/api/postArmorPush.js +1 -1
  30. package/src/lib/api/postArmorUp.js +1 -1
  31. package/src/lib/api/postBackup.js +1 -1
  32. package/src/lib/api/postGet.js +1 -1
  33. package/src/lib/api/postKeypair.js +1 -1
  34. package/src/lib/api/postObserve.js +1 -1
  35. package/src/lib/api/postRotate.js +1 -1
  36. package/src/lib/api/postRotateConnect.js +1 -1
  37. package/src/lib/api/postSet.js +1 -1
  38. package/src/lib/api/postSync.js +1 -1
  39. package/src/lib/helpers/likelyUpdateCommand.js +8 -8
  40. package/src/lib/main.d.ts +4 -4
  41. package/src/lib/services/armorDown.js +1 -1
  42. package/src/lib/services/armorMove.js +1 -1
  43. package/src/lib/services/armorPull.js +1 -1
  44. package/src/lib/services/armorPush.js +1 -1
  45. package/src/lib/services/armorUp.js +2 -2
  46. package/src/cli/postinstall.js +0 -16
package/CHANGELOG.md CHANGED
@@ -2,14 +2,30 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- [Unreleased](https://github.com/dotenvx/dotenvx-ops/compare/v0.49.2...main)
5
+ [Unreleased](https://github.com/dotenvx/dotenvx-ops/compare/v0.50.1...main)
6
+
7
+ ## [0.50.1](https://github.com/dotenvx/dotenvx-ops/compare/v0.50.0...v0.50.1) (2026-05-25)
8
+
9
+ ### Changed
10
+
11
+ * Internals renamed to `vlt` ([#100](https://github.com/dotenvx/dotenvx-ops/pull/100))
12
+
13
+ ## [0.50.0](https://github.com/dotenvx/dotenvx-ops/compare/v0.49.2...v0.50.0) (2026-05-25)
14
+
15
+ ### Changed
16
+
17
+ * Move to `vlt.dotenvx.com` url ([#99](https://github.com/dotenvx/dotenvx-ops/pull/99))
6
18
 
7
19
  ## [0.49.2](https://github.com/dotenvx/dotenvx-ops/compare/v0.49.1...v0.49.2) (2026-05-25)
8
20
 
21
+ ### Changed
22
+
9
23
  * Install vlt when installing ops ([#97](https://github.com/dotenvx/dotenvx-ops/pull/97))
10
24
 
11
25
  ## [0.49.1](https://github.com/dotenvx/dotenvx-ops/compare/v0.49.0...v0.49.1) (2026-05-25)
12
26
 
27
+ ### Changed
28
+
13
29
  * Patch release mechanism ([#96](https://github.com/dotenvx/dotenvx-ops/pull/96))
14
30
 
15
31
  ## [0.49.0](https://github.com/dotenvx/dotenvx-ops/compare/v0.48.3...v0.49.0) (2026-05-25)
package/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- Dotenvx Ops End-User License Agreement (EULA)
1
+ Dotenvx Vlt End-User License Agreement (EULA)
2
2
 
3
- Applies to: Dotenvx Ops (CLI, SDKs, and related software)
3
+ Applies to: Dotenvx Vlt (CLI, SDKs, and related software)
4
4
 
5
5
  ---
6
6
 
7
7
  Summary
8
8
 
9
- Dotenvx Ops is a commercial product. This agreement outlines your rights to use the software, and our expectations in return. It’s written to be understandable, developer-friendly, and fair.
9
+ Dotenvx Vlt is a commercial product. This agreement outlines your rights to use the software, and our expectations in return. It’s written to be understandable, developer-friendly, and fair.
10
10
 
11
- By installing, accessing, or using Dotenvx Ops, you agree to these terms.
11
+ By installing, accessing, or using Dotenvx Vlt, you agree to these terms.
12
12
 
13
13
  ---
14
14
 
15
15
  1. License
16
16
 
17
- You are granted a non-exclusive, non-transferable, revocable license to use Dotenvx Ops as long as:
17
+ You are granted a non-exclusive, non-transferable, revocable license to use Dotenvx Vlt as long as:
18
18
  - You have an active license (via paid subscription or evaluation, including time-limited free trials)
19
19
  - You do not distribute or sublicense the software
20
20
  - You do not attempt to bypass license enforcement or API restrictions
@@ -24,7 +24,7 @@ You are granted a non-exclusive, non-transferable, revocable license to use Dote
24
24
  2. Use
25
25
 
26
26
  You may:
27
- - Use Dotenvx Ops internally for your own development or production workflows
27
+ - Use Dotenvx Vlt internally for your own development or production workflows
28
28
  - Install the CLI or SDKs on machines you or your team control
29
29
 
30
30
  You may not:
@@ -36,7 +36,7 @@ You may not:
36
36
 
37
37
  3. Ownership
38
38
 
39
- All rights, title, and interest in Dotenvx Ops remain with DOTENVX LLC. You’re granted limited usage rights, not ownership.
39
+ All rights, title, and interest in Dotenvx Vlt remain with DOTENVX LLC. You’re granted limited usage rights, not ownership.
40
40
 
41
41
  ---
42
42
 
@@ -52,7 +52,7 @@ You must stop using the software immediately if your license is terminated.
52
52
 
53
53
  5. Warranty Disclaimer
54
54
 
55
- Dotenvx Ops is provided as-is, with no guarantees that it will work for your specific use case. You assume all risk.
55
+ Dotenvx Vlt is provided as-is, with no guarantees that it will work for your specific use case. You assume all risk.
56
56
 
57
57
  ---
58
58
 
@@ -64,7 +64,7 @@ We are not liable for any indirect or consequential damages, including loss of d
64
64
 
65
65
  7. Contact
66
66
 
67
- Have questions? Email us at ops@dotenvx.com
67
+ Have questions? Email us at vlt@dotenvx.com
68
68
 
69
69
  ---
70
70
 
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
- [![dotenvx-ops](https://dotenvx.com/dotenvx-ops-banner.png?v=6)](https://dotenvx.com/ops)
1
+ [![dotenvx-vlt](https://dotenvx.com/dotenvx-vlt-banner.png?v=6)](https://dotenvx.com/vlt)
2
2
 
3
3
  ```
4
4
  ⛨ ARMORED KEYS: Harden your private keys.
5
- ⮕ install [curl -sfS https://dotenvx.sh/ops | sh]
6
- ⮕ then run [dotenvx-ops login]
5
+ ⮕ install [curl -sfS https://dotenvx.sh/vlt | sh]
6
+ ⮕ then run [dotenvx-vlt login]
7
7
  ```
8
8
 
9
- [Learn more](https://dotenvx.com/ops)
9
+ [Learn more](https://dotenvx.com/vlt)
10
10
 
11
11
   
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.49.2",
2
+ "version": "0.50.1",
3
3
  "name": "@dotenvx/dotenvx-vlt",
4
4
  "description": "Secrets for agents–from the creator of `dotenv` and `dotenvx`",
5
5
  "author": "@motdotla",
@@ -11,10 +11,10 @@
11
11
  "vault",
12
12
  "env"
13
13
  ],
14
- "homepage": "https://dotenvx.com/ops",
14
+ "homepage": "https://dotenvx.com/vlt",
15
15
  "repository": {
16
16
  "type": "git",
17
- "url": "git+https://github.com/dotenvx/dotenvx-ops.git"
17
+ "url": "git+https://github.com/dotenvx/dotenvx-vlt.git"
18
18
  },
19
19
  "license": "See LICENSE",
20
20
  "files": [
@@ -31,8 +31,8 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "bin": {
34
- "dotenvx-ops": "./src/cli/dotenvx-ops.js",
35
- "dotenvx-vlt": "./src/cli/dotenvx-ops.js"
34
+ "dotenvx-ops": "./src/cli/dotenvx-vlt.js",
35
+ "dotenvx-vlt": "./src/cli/dotenvx-vlt.js"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "node esbuild.js",
@@ -71,7 +71,7 @@ async function backup () {
71
71
  spinner.stop()
72
72
 
73
73
  logger.success(`✔ backed up [${projectUsernameName}]`)
74
- logger.help('⮕ next run [dotenvx-ops open] to view')
74
+ logger.help('⮕ next run [dotenvx vlt open] to view')
75
75
  } catch (error) {
76
76
  spinner.stop()
77
77
  if (error.message) {
@@ -63,7 +63,7 @@ async function connect () {
63
63
  spinner.stop()
64
64
 
65
65
  logger.success(`✔ connected [${url}]`)
66
- logger.help(`⮕ next run [dotenvx-ops rotate dotenvx://${uid}]`)
66
+ logger.help(`⮕ next run [dotenvx vlt rotate dotenvx://${uid}]`)
67
67
  } catch (error) {
68
68
  spinner.stop()
69
69
  if (error.message) {
@@ -63,7 +63,7 @@ async function connect () {
63
63
  spinner.stop()
64
64
 
65
65
  logger.success(`✔ connected [${url}]`)
66
- logger.help(`⮕ next run [dotenvx-ops rotate dotenvx://${uid}]`)
66
+ logger.help(`⮕ next run [dotenvx vlt rotate dotenvx://${uid}]`)
67
67
  } catch (error) {
68
68
  spinner.stop()
69
69
  if (error.message) {
@@ -63,7 +63,7 @@ async function connect () {
63
63
  spinner.stop()
64
64
 
65
65
  logger.success(`✔ connected [${url}]`)
66
- logger.help(`⮕ next run [dotenvx-ops rotate dotenvx://${uid}]`)
66
+ logger.help(`⮕ next run [dotenvx vlt rotate dotenvx://${uid}]`)
67
67
  } catch (error) {
68
68
  spinner.stop()
69
69
  if (error.message) {
@@ -23,7 +23,7 @@ async function rotate (uri) {
23
23
  if (spinner) spinner.stop()
24
24
 
25
25
  logger.success(`⟳ rotated [${url}]`)
26
- logger.help(`⮕ next run [dotenvx-ops get dotenvx://${rotUid}]`)
26
+ logger.help(`⮕ next run [dotenvx vlt get dotenvx://${rotUid}]`)
27
27
  } catch (error) {
28
28
  if (spinner) spinner.stop()
29
29
  if (error.message) {
@@ -12,7 +12,7 @@ function device () {
12
12
  if (devicePublicKey && devicePublicKey.length > 1) {
13
13
  console.log(smartMask(devicePublicKey, options.unmask, 6))
14
14
  } else {
15
- logger.error('missing device. Try generating one with [dotenvx-ops login].')
15
+ logger.error('missing device. Try generating one with [dotenvx vlt login].')
16
16
  process.exit(1)
17
17
  }
18
18
  } catch (error) {
@@ -8,7 +8,7 @@ function hostname () {
8
8
  if (_hostname && _hostname.length > 1) {
9
9
  console.log(_hostname)
10
10
  } else {
11
- logger.error('missing hostname. Try running [dotenvx-ops login].')
11
+ logger.error('missing hostname. Try running [dotenvx vlt login].')
12
12
  process.exit(1)
13
13
  }
14
14
  } catch (error) {
@@ -6,8 +6,8 @@ function off () {
6
6
  try {
7
7
  const sesh = new Session()
8
8
  sesh.turnOff()
9
- logger.success('✔ ops: off')
10
- logger.help('⮕ check status with [dotenvx-ops status]')
9
+ logger.success('✔ vlt: off')
10
+ logger.help('⮕ check status with [dotenvx vlt status]')
11
11
  } catch (error) {
12
12
  logger.error(error.message)
13
13
  process.exit(1)
@@ -6,8 +6,8 @@ function on () {
6
6
  try {
7
7
  const sesh = new Session()
8
8
  sesh.turnOn()
9
- logger.success('✔ ops: on')
10
- logger.help('⮕ check status with [dotenvx-ops status]')
9
+ logger.success('✔ vlt: on')
10
+ logger.help('⮕ check status with [dotenvx vlt status]')
11
11
  } catch (error) {
12
12
  logger.error(error.message)
13
13
  process.exit(1)
@@ -9,7 +9,7 @@ function path () {
9
9
  if (path && path.length > 1) {
10
10
  console.log(path)
11
11
  } else {
12
- logger.error('missing path. Try generating one with [dotenvx-ops login].')
12
+ logger.error('missing path. Try generating one with [dotenvx vlt login].')
13
13
  process.exit(1)
14
14
  }
15
15
  } catch (error) {
@@ -12,7 +12,7 @@ function token () {
12
12
  if (token && token.length > 1) {
13
13
  console.log(smartMask(token, options.unmask, 10))
14
14
  } else {
15
- logger.error('missing token. Try generating one with [dotenvx-ops login].')
15
+ logger.error('missing token. Try generating one with [dotenvx vlt login].')
16
16
  process.exit(1)
17
17
  }
18
18
  } catch (error) {
@@ -80,7 +80,7 @@ async function sync () {
80
80
  console.log(conflictedFile.diffAnsi)
81
81
  }
82
82
 
83
- logger.info(`Review and edit the ${pluralize('file', conflictedFiles.length)} as needed, then confirm your version with [dotenvx-ops sync --force]`)
83
+ logger.info(`Review and edit the ${pluralize('file', conflictedFiles.length)} as needed, then confirm your version with [dotenvx vlt sync --force]`)
84
84
  }
85
85
  } catch (error) {
86
86
  spinner.stop()
@@ -12,7 +12,7 @@ armor
12
12
  this.help()
13
13
  })
14
14
 
15
- // dotenvx-ops armor up
15
+ // dotenvx-vlt armor up
16
16
  const upAction = require('./../actions/armor/up')
17
17
  armor
18
18
  .command('up')
@@ -22,7 +22,7 @@ armor
22
22
  .option('--team <team>', 'team to armor private key for')
23
23
  .action(upAction)
24
24
 
25
- // dotenvx-ops armor down
25
+ // dotenvx-vlt armor down
26
26
  const downAction = require('./../actions/armor/down')
27
27
  armor
28
28
  .command('down')
@@ -32,7 +32,7 @@ armor
32
32
  .option('--team <team>', 'team to dearmor private key from')
33
33
  .action(downAction)
34
34
 
35
- // dotenvx-ops armor push
35
+ // dotenvx-vlt armor push
36
36
  const pushAction = require('./../actions/armor/push')
37
37
  armor
38
38
  .command('push')
@@ -42,7 +42,7 @@ armor
42
42
  .option('--team <team>', 'team to push armored private key for')
43
43
  .action(pushAction)
44
44
 
45
- // dotenvx-ops armor pull
45
+ // dotenvx-vlt armor pull
46
46
  const pullAction = require('./../actions/armor/pull')
47
47
  armor
48
48
  .command('pull')
@@ -52,7 +52,7 @@ armor
52
52
  .option('--team <team>', 'team to pull armored private key from')
53
53
  .action(pullAction)
54
54
 
55
- // dotenvx-ops armor rotate
55
+ // dotenvx-vlt armor rotate
56
56
  const rotateAction = require('./../actions/armor/rotate')
57
57
  armor
58
58
  .command('rotate')
@@ -61,7 +61,7 @@ armor
61
61
  .option('--token <token>', 'set token')
62
62
  .action(rotateAction)
63
63
 
64
- // dotenvx-ops armor move
64
+ // dotenvx-vlt armor move
65
65
  const moveAction = require('./../actions/armor/move')
66
66
  armor
67
67
  .command('move')
@@ -6,7 +6,7 @@ gateway
6
6
  .description('[INTERNAL] ⛩ gateway')
7
7
  .allowUnknownOption()
8
8
 
9
- // dotenvx-ops gateway start
9
+ // dotenvx vlt gateway start
10
10
  const startAction = require('./../actions/gateway/start')
11
11
  gateway
12
12
  .command('start')
@@ -13,7 +13,7 @@ rotate.addCommand(require('./rotate/github'))
13
13
  rotate.addCommand(require('./rotate/npm'))
14
14
  rotate.addCommand(require('./rotate/openai'))
15
15
 
16
- // dotenvx-ops rotate (fallback positional argument handler)
16
+ // dotenvx vlt rotate (fallback positional argument handler)
17
17
  const rotateAction = require('../actions/rotate')
18
18
  rotate
19
19
  .argument('[URI]', 'URI') // brackets = optional
@@ -6,14 +6,14 @@ settings
6
6
  .description('settings')
7
7
  .allowUnknownOption()
8
8
 
9
- // dotenvx-ops settings username
9
+ // dotenvx-vlt settings username
10
10
  const usernameAction = require('./../actions/settings/username')
11
11
  settings
12
12
  .command('username')
13
13
  .description('print your username')
14
14
  .action(usernameAction)
15
15
 
16
- // dotenvx-ops settings token
16
+ // dotenvx-vlt settings token
17
17
  const tokenAction = require('./../actions/settings/token')
18
18
  settings
19
19
  .command('token')
@@ -21,7 +21,7 @@ settings
21
21
  .option('--unmask', 'unmask access token')
22
22
  .action(tokenAction)
23
23
 
24
- // dotenvx-ops settings device
24
+ // dotenvx-vlt settings device
25
25
  const deviceAction = require('./../actions/settings/device')
26
26
  settings
27
27
  .command('device')
@@ -29,32 +29,32 @@ settings
29
29
  .option('--unmask', 'unmask device pubkey')
30
30
  .action(deviceAction)
31
31
 
32
- // dotenvx-ops settings hostname
32
+ // dotenvx-vlt settings hostname
33
33
  const hostnameAction = require('./../actions/settings/hostname')
34
34
  settings
35
35
  .command('hostname')
36
36
  .description('print hostname')
37
37
  .action(hostnameAction)
38
38
 
39
- // dotenvx-ops settings path
39
+ // dotenvx-vlt settings path
40
40
  const pathAction = require('./../actions/settings/path')
41
41
  settings
42
42
  .command('path')
43
43
  .description('print path to settings file')
44
44
  .action(pathAction)
45
45
 
46
- // dotenvx-ops settings on
46
+ // dotenvx-vlt settings on
47
47
  const onAction = require('./../actions/settings/on')
48
48
  settings
49
49
  .command('on')
50
- .description('turn ops on')
50
+ .description('turn vlt on')
51
51
  .action(onAction)
52
52
 
53
- // dotenvx-ops settings off
53
+ // dotenvx-vlt settings off
54
54
  const offAction = require('./../actions/settings/off')
55
55
  settings
56
56
  .command('off')
57
- .description('turn ops off')
57
+ .description('turn vlt off')
58
58
  .action(offAction)
59
59
 
60
60
  module.exports = settings
@@ -26,12 +26,12 @@ program
26
26
 
27
27
  // cli
28
28
  program
29
- .name('dotenvx-ops')
29
+ .name('dotenvx-vlt')
30
30
  .description(packageJson.description)
31
31
  .version(packageJson.version)
32
32
  .allowUnknownOption()
33
33
 
34
- // dotenvx-ops backup
34
+ // dotenvx-vlt backup
35
35
  const backupAction = require('./actions/backup')
36
36
  program
37
37
  .command('backup')
@@ -40,7 +40,7 @@ program
40
40
  .option('-h, --hostname <url>', 'set hostname')
41
41
  .action(backupAction)
42
42
 
43
- // dotenvx-ops open
43
+ // dotenvx-vlt open
44
44
  const openAction = require('./actions/open')
45
45
  program
46
46
  .command('open')
@@ -48,7 +48,7 @@ program
48
48
  .option('-h, --hostname <url>', 'set hostname')
49
49
  .action(openAction)
50
50
 
51
- // dotenvx-ops observe base64String
51
+ // dotenvx-vlt observe base64String
52
52
  const observeAction = require('./actions/observe')
53
53
  program.command('observe')
54
54
  .usage('<BASE64> [options]')
@@ -62,7 +62,7 @@ program.command('observe')
62
62
  observeAction.apply(this, args)
63
63
  })
64
64
 
65
- // dotenvx-ops sync
65
+ // dotenvx-vlt sync
66
66
  const syncAction = require('./actions/sync')
67
67
  program
68
68
  .command('sync')
@@ -71,7 +71,7 @@ program
71
71
  .option('--force', 'force changes')
72
72
  .action(syncAction)
73
73
 
74
- // dotenvx-ops get
74
+ // dotenvx-vlt get
75
75
  const getAction = require('./actions/get')
76
76
  program
77
77
  .command('get')
@@ -81,7 +81,7 @@ program
81
81
  .option('--token <token>', 'set token')
82
82
  .action(getAction)
83
83
 
84
- // dotenvx-ops set
84
+ // dotenvx-vlt set
85
85
  const setAction = require('./actions/set')
86
86
  program
87
87
  .command('set')
@@ -92,16 +92,16 @@ program
92
92
  .option('--token <token>', 'set token')
93
93
  .action(setAction)
94
94
 
95
- // dotenvx-ops rotate
95
+ // dotenvx-vlt rotate
96
96
  const shouldLoadRotateCommand = firstArg === 'rotate' || firstArg === 'help' || firstArg === '--help' || firstArg === '-h'
97
97
  if (shouldLoadRotateCommand) {
98
98
  program.addCommand(require('./commands/rotate'))
99
99
  }
100
100
 
101
- // dotenvx-ops armor
101
+ // dotenvx-vlt armor
102
102
  program.addCommand(require('./commands/armor'))
103
103
 
104
- // dotenvx-ops login
104
+ // dotenvx-vlt login
105
105
  const loginAction = require('./actions/login')
106
106
  program
107
107
  .command('login')
@@ -109,7 +109,7 @@ program
109
109
  .option('--hostname <url>', 'set hostname')
110
110
  .action(loginAction)
111
111
 
112
- // dotenvx-ops logout
112
+ // dotenvx-vlt logout
113
113
  const logoutAction = require('./actions/logout')
114
114
  program
115
115
  .command('logout')
@@ -117,14 +117,14 @@ program
117
117
  .option('--hostname <url>', 'set hostname')
118
118
  .action(logoutAction)
119
119
 
120
- // dotenvx-ops status
120
+ // dotenvx-vlt status
121
121
  const statusAction = require('./actions/status')
122
122
  program
123
123
  .command('status')
124
124
  .description('[INTERNAL] status')
125
125
  .action(statusAction)
126
126
 
127
- // dotenvx-ops keypair
127
+ // dotenvx-vlt keypair
128
128
  const keypairAction = require('./actions/keypair')
129
129
  program
130
130
  .command('keypair')
package/src/db/session.js CHANGED
@@ -67,7 +67,7 @@ class Session {
67
67
  }
68
68
 
69
69
  hostname () {
70
- return this.getSetting('HOSTNAME') || 'https://ops.dotenvx.com'
70
+ return this.getSetting('HOSTNAME') || 'https://vlt.dotenvx.com'
71
71
  }
72
72
 
73
73
  username () {
@@ -3,7 +3,7 @@ const buildApiError = require('../../lib/helpers/buildApiError')
3
3
 
4
4
  class GetAccount {
5
5
  constructor (hostname, token) {
6
- this.hostname = hostname || 'https://ops.dotenvx.com'
6
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
7
7
  this.token = token
8
8
  }
9
9
 
@@ -3,7 +3,7 @@ const buildApiError = require('../../lib/helpers/buildApiError')
3
3
 
4
4
  class GetSynchronization {
5
5
  constructor (hostname, token, synchronizationId) {
6
- this.hostname = hostname || 'https://ops.dotenvx.com'
6
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
7
7
  this.token = token
8
8
  this.synchronizationId = synchronizationId
9
9
  }
@@ -6,7 +6,7 @@ class GetVersion {
6
6
  }
7
7
 
8
8
  async run () {
9
- const url = `${this.hostname}/ops/VERSION`
9
+ const url = `${this.hostname}/vlt/VERSION`
10
10
 
11
11
  const resp = await http(url, { method: 'GET' })
12
12
  const VERSION = await resp.body.text()
@@ -5,7 +5,7 @@ const normalizeToken = require('../../lib/helpers/normalizeToken')
5
5
 
6
6
  class PostArmorDown {
7
7
  constructor (hostname, token, devicePublicKey, publicKey, team) {
8
- this.hostname = hostname || 'https://ops.dotenvx.com'
8
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
9
9
  this.token = token
10
10
  this.devicePublicKey = devicePublicKey
11
11
  this.publicKey = publicKey
@@ -5,7 +5,7 @@ const normalizeToken = require('../../lib/helpers/normalizeToken')
5
5
 
6
6
  class PostArmorMove {
7
7
  constructor (hostname, token, devicePublicKey, publicKey, team) {
8
- this.hostname = hostname || 'https://ops.dotenvx.com'
8
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
9
9
  this.token = token
10
10
  this.devicePublicKey = devicePublicKey
11
11
  this.publicKey = publicKey
@@ -5,7 +5,7 @@ const normalizeToken = require('../../lib/helpers/normalizeToken')
5
5
 
6
6
  class PostArmorPull {
7
7
  constructor (hostname, token, devicePublicKey, publicKey, team) {
8
- this.hostname = hostname || 'https://ops.dotenvx.com'
8
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
9
9
  this.token = token
10
10
  this.devicePublicKey = devicePublicKey
11
11
  this.publicKey = publicKey
@@ -5,7 +5,7 @@ const normalizeToken = require('../../lib/helpers/normalizeToken')
5
5
 
6
6
  class PostArmorPush {
7
7
  constructor (hostname, token, devicePublicKey, privateKey, team) {
8
- this.hostname = hostname || 'https://ops.dotenvx.com'
8
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
9
9
  this.token = token
10
10
  this.devicePublicKey = devicePublicKey
11
11
  this.privateKey = privateKey
@@ -5,7 +5,7 @@ const normalizeToken = require('../../lib/helpers/normalizeToken')
5
5
 
6
6
  class PostArmorUp {
7
7
  constructor (hostname, token, devicePublicKey, publicKey, privateKey, team) {
8
- this.hostname = hostname || 'https://ops.dotenvx.com'
8
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
9
9
  this.token = token
10
10
  this.devicePublicKey = devicePublicKey
11
11
  this.publicKey = publicKey
@@ -4,7 +4,7 @@ const packageJson = require('../../lib/helpers/packageJson')
4
4
 
5
5
  class PostBackup {
6
6
  constructor (hostname, token, devicePublicKey, encoded, dotenvxProjectId = null, org = null, pwd = null, gitUrl = null, gitBranch = null, systemUuid = null, osPlatform = null, osArch = null) {
7
- this.hostname = hostname || 'https://ops.dotenvx.com'
7
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
8
8
  this.token = token
9
9
  this.devicePublicKey = devicePublicKey
10
10
  this.encoded = encoded
@@ -3,7 +3,7 @@ const buildApiError = require('../../lib/helpers/buildApiError')
3
3
 
4
4
  class PostGet {
5
5
  constructor (hostname, token, uri) {
6
- this.hostname = hostname || 'https://ops.dotenvx.com'
6
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
7
7
  this.token = token
8
8
  this.uri = uri
9
9
  }
@@ -5,7 +5,7 @@ const normalizeToken = require('../../lib/helpers/normalizeToken')
5
5
 
6
6
  class PostKeypair {
7
7
  constructor (hostname, token, devicePublicKey, publicKey, team, metadata) {
8
- this.hostname = hostname || 'https://ops.dotenvx.com'
8
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
9
9
  this.token = token
10
10
  this.devicePublicKey = devicePublicKey
11
11
  this.publicKey = publicKey
@@ -4,7 +4,7 @@ const packageJson = require('../../lib/helpers/packageJson')
4
4
 
5
5
  class PostObserve {
6
6
  constructor (hostname, token, encoded, pwd = null, gitUrl = null, gitBranch = null, systemUuid = null, osPlatform = null, osArch = null, dotenvxProjectId = null) {
7
- this.hostname = hostname || 'https://ops.dotenvx.com'
7
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
8
8
  this.token = token
9
9
  this.encoded = encoded
10
10
  this.pwd = pwd
@@ -3,7 +3,7 @@ const buildApiError = require('../../lib/helpers/buildApiError')
3
3
 
4
4
  class PostRotate {
5
5
  constructor (hostname, token, uri) {
6
- this.hostname = hostname || 'https://ops.dotenvx.com'
6
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
7
7
  this.token = token
8
8
 
9
9
  this.uri = uri
@@ -3,7 +3,7 @@ const buildApiError = require('../../lib/helpers/buildApiError')
3
3
 
4
4
  class PostRotateConnect {
5
5
  constructor (hostname, token, org, slug, username, password, email = null, playwrightStorageStateStringified) {
6
- this.hostname = hostname || 'https://ops.dotenvx.com'
6
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
7
7
  this.token = token
8
8
 
9
9
  this.org = org
@@ -3,7 +3,7 @@ const buildApiError = require('../../lib/helpers/buildApiError')
3
3
 
4
4
  class PostSet {
5
5
  constructor (hostname, token, devicePublicKey, uri, value) {
6
- this.hostname = hostname || 'https://ops.dotenvx.com'
6
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
7
7
  this.token = token
8
8
  this.devicePublicKey = devicePublicKey
9
9
  this.uri = uri
@@ -4,7 +4,7 @@ const packageJson = require('../../lib/helpers/packageJson')
4
4
 
5
5
  class PostSync {
6
6
  constructor (hostname, token, devicePublicKey, encoded, dotenvxProjectId, pwd = null, gitUrl = null, gitBranch = null, systemUuid = null, osPlatform = null, osArch = null, force = false) {
7
- this.hostname = hostname || 'https://ops.dotenvx.com'
7
+ this.hostname = hostname || 'https://vlt.dotenvx.com'
8
8
  this.token = token
9
9
  this.devicePublicKey = devicePublicKey
10
10
  this.encoded = encoded
@@ -1,8 +1,8 @@
1
1
  const normalizePath = require('./normalizePath')
2
2
  const safeRealpath = require('./safeRealpath')
3
3
 
4
- const NPM_COMMAND = 'npm i @dotenvx/dotenvx-ops'
5
- const CURL_COMMAND = 'curl -sfS https://dotenvx.sh/ops | sh'
4
+ const NPM_COMMAND = 'npm i @dotenvx/dotenvx-vlt'
5
+ const CURL_COMMAND = 'curl -sfS https://dotenvx.sh/vlt | sh'
6
6
 
7
7
  function likelyUpdateCommand () {
8
8
  const isPackaged = Boolean(process.pkg)
@@ -11,18 +11,18 @@ function likelyUpdateCommand () {
11
11
  const normalizedPath = normalizePath(resolvedExecutablePath || executablePath || '')
12
12
 
13
13
  if (
14
- normalizedPath.includes('/node_modules/@dotenvx/dotenvx-ops/') ||
15
- normalizedPath.includes('/node_modules/.bin/dotenvx-ops')
14
+ normalizedPath.includes('/node_modules/@dotenvx/dotenvx-vlt/') ||
15
+ normalizedPath.includes('/node_modules/.bin/dotenvx-vlt')
16
16
  ) {
17
17
  return NPM_COMMAND
18
18
  }
19
19
 
20
20
  if (
21
21
  isPackaged ||
22
- normalizedPath.endsWith('/usr/local/bin/dotenvx-ops') ||
23
- normalizedPath.endsWith('/opt/homebrew/bin/dotenvx-ops') ||
24
- normalizedPath.endsWith('/usr/bin/dotenvx-ops') ||
25
- normalizedPath.endsWith('/bin/dotenvx-ops')
22
+ normalizedPath.endsWith('/usr/local/bin/dotenvx-vlt') ||
23
+ normalizedPath.endsWith('/opt/homebrew/bin/dotenvx-vlt') ||
24
+ normalizedPath.endsWith('/usr/bin/dotenvx-vlt') ||
25
+ normalizedPath.endsWith('/bin/dotenvx-vlt')
26
26
  ) {
27
27
  return CURL_COMMAND
28
28
  }
package/src/lib/main.d.ts CHANGED
@@ -9,16 +9,16 @@ import type { URL } from 'url';
9
9
  */
10
10
  export function observe(payload: string): string;
11
11
 
12
- export interface DotenvOpsOptions {
12
+ export interface DotenvVltOptions {
13
13
  hostname?: string;
14
14
  token?: string;
15
15
  }
16
16
 
17
- export interface DotenvOpsKeypairOptions extends DotenvOpsOptions {
17
+ export interface DotenvVltKeypairOptions extends DotenvVltOptions {
18
18
  team?: string;
19
19
  }
20
20
 
21
- export interface DotenvOpsKeypairOutput {
21
+ export interface DotenvVltKeypairOutput {
22
22
  publicKey: string;
23
23
  privateKey: string;
24
24
  }
@@ -30,7 +30,7 @@ export interface DotenvOpsKeypairOutput {
30
30
  * @param options - optional hostname/token/team overrides
31
31
  * @returns generated public and private keys
32
32
  */
33
- export function keypair(publicKey?: string, options?: DotenvOpsKeypairOptions): Promise<DotenvOpsKeypairOutput>;
33
+ export function keypair(publicKey?: string, options?: DotenvVltKeypairOptions): Promise<DotenvVltKeypairOutput>;
34
34
 
35
35
  export interface DotenvConfigOptions {
36
36
  /**
@@ -32,7 +32,7 @@ class ArmorDown {
32
32
  privateKeyName
33
33
  } = keyNamesForEnvFile(envFile)
34
34
 
35
- const publicKey = dotenvx.get(publicKeyName, { path: envFile, strict: true, ignore: ['MISSING_PRIVATE_KEY'], noOps: true })
35
+ const publicKey = dotenvx.get(publicKeyName, { path: envFile, strict: true, ignore: ['MISSING_PRIVATE_KEY'], noOps: true, noVlt: true })
36
36
  let json
37
37
 
38
38
  if (team) {
@@ -25,7 +25,7 @@ class ArmorMove {
25
25
  publicKeyName,
26
26
  privateKeyName
27
27
  } = keyNamesForEnvFile(envFile)
28
- const publicKey = dotenvx.get(publicKeyName, { path: envFile, strict: true, ignore: ['MISSING_PRIVATE_KEY'], noOps: true })
28
+ const publicKey = dotenvx.get(publicKeyName, { path: envFile, strict: true, ignore: ['MISSING_PRIVATE_KEY'], noOps: true, noVlt: true })
29
29
 
30
30
  const accountJson = await new GetAccount(hostname, token).run()
31
31
  const choices = accountJson.organizations.map(o => ({
@@ -32,7 +32,7 @@ class ArmorPull {
32
32
  privateKeyName
33
33
  } = keyNamesForEnvFile(envFile)
34
34
 
35
- const publicKey = dotenvx.get(publicKeyName, { path: envFile, strict: true, ignore: ['MISSING_PRIVATE_KEY'], noOps: true })
35
+ const publicKey = dotenvx.get(publicKeyName, { path: envFile, strict: true, ignore: ['MISSING_PRIVATE_KEY'], noOps: true, noVlt: true })
36
36
  let json
37
37
 
38
38
  if (team) {
@@ -37,7 +37,7 @@ class ArmorPush {
37
37
 
38
38
  const { privateKeyName } = keyNamesForEnvFile(envFile)
39
39
 
40
- const privateKey = dotenvx.get(privateKeyName, { path: '.env.keys', strict: true, noOps: true })
40
+ const privateKey = dotenvx.get(privateKeyName, { path: '.env.keys', strict: true, noOps: true, noVlt: true })
41
41
  const publicKey = publicKeyFromPrivateKey(privateKey)
42
42
 
43
43
  let json
@@ -32,8 +32,8 @@ class ArmorUp {
32
32
  privateKeyName
33
33
  } = keyNamesForEnvFile(envFile)
34
34
 
35
- const publicKey = dotenvx.get(publicKeyName, { path: envFile, strict: true, ignore: ['MISSING_PRIVATE_KEY'], noOps: true })
36
- const privateKey = dotenvx.get(privateKeyName, { path: '.env.keys', strict: true, ignore: ['MISSING_KEY'], noOps: true })
35
+ const publicKey = dotenvx.get(publicKeyName, { path: envFile, strict: true, ignore: ['MISSING_PRIVATE_KEY'], noOps: true, noVlt: true })
36
+ const privateKey = dotenvx.get(privateKeyName, { path: '.env.keys', strict: true, ignore: ['MISSING_KEY'], noOps: true, noVlt: true })
37
37
 
38
38
  let json
39
39
 
@@ -1,16 +0,0 @@
1
- const packageJson = require('./../lib/helpers/packageJson')
2
- const path = require('path')
3
-
4
- const commandName = 'dotenvx-ops'
5
- const isGlobalInstall = process.env.npm_config_global === 'true' || process.env.npm_config_location === 'global'
6
-
7
- let installPath = commandName
8
- if (isGlobalInstall && process.env.npm_config_prefix) {
9
- const binaryName = process.platform === 'win32' ? `${commandName}.cmd` : commandName
10
- installPath = process.platform === 'win32'
11
- ? path.join(process.env.npm_config_prefix, binaryName)
12
- : path.join(process.env.npm_config_prefix, 'bin', binaryName)
13
- }
14
-
15
- console.log(`⛨ installed (${packageJson.version}:${installPath})`)
16
- console.log('⮕ next run [dotenvx-ops login] and then [dotenvx encrypt]')