argonctl 2.1.1 → 2.1.3
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 +12 -2
- package/bin/argon.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,13 +4,23 @@ Argon creates versioned MongoDB sandboxes for branches, time travel, merges, and
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Use Node.js 24 LTS with npm 11.16 or newer. The installer downloads the matching release binary for macOS or Linux (x64/arm64), or Windows (x64).
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g argonctl
|
|
10
|
+
npm install -g argonctl --allow-scripts=argonctl
|
|
11
11
|
argon --version
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
The package-scoped approval lets npm 12 run Argon's binary installer. It applies
|
|
15
|
+
only to this command and does not change your global script policy. See
|
|
16
|
+
[npm's install-script documentation](https://docs.npmjs.com/cli/v12/commands/npm-install-scripts/).
|
|
17
|
+
|
|
18
|
+
For one command without a global installation:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx --yes --allow-scripts=argonctl argonctl --version
|
|
22
|
+
```
|
|
23
|
+
|
|
14
24
|
## Usage
|
|
15
25
|
|
|
16
26
|
Use MongoDB 7 or newer configured as a replica set. A standalone MongoDB server cannot provide the change streams and transactions Argon requires.
|
package/bin/argon.js
CHANGED
|
@@ -12,7 +12,7 @@ const binaryName = process.platform === 'win32' ? 'argon-bin.exe' : 'argon-bin';
|
|
|
12
12
|
const binaryPath = path.join(__dirname, binaryName);
|
|
13
13
|
|
|
14
14
|
if (!fs.existsSync(binaryPath)) {
|
|
15
|
-
console.error('The Argon binary is missing. Reinstall with: npm install -g argonctl');
|
|
15
|
+
console.error('The Argon binary is missing. Reinstall with: npm install -g argonctl --allow-scripts=argonctl');
|
|
16
16
|
console.error('(The installer downloads it from https://github.com/argon-lab/argon/releases)');
|
|
17
17
|
process.exit(1);
|
|
18
18
|
}
|