trooper-cli 0.1.4 → 0.1.5
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 +9 -3
- package/bin/trooper.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,14 +9,14 @@ Trooper can run on your own Mac without a hosted cloud computer. This CLI instal
|
|
|
9
9
|
Install Trooper locally on this Mac:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx -y trooper-cli
|
|
12
|
+
npx -y trooper-cli
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Then open the Trooper desktop app to connect this computer to your workspace.
|
|
16
16
|
|
|
17
17
|
## What It Sets Up
|
|
18
18
|
|
|
19
|
-
On macOS, `trooper-cli
|
|
19
|
+
On macOS, `npx -y trooper-cli` prepares:
|
|
20
20
|
|
|
21
21
|
- A local Trooper bridge on `http://127.0.0.1:3002`
|
|
22
22
|
- A local AI gateway on `http://127.0.0.1:18789`
|
|
@@ -30,6 +30,12 @@ The local desktop plan does not require a Trooper cloud computer or Stripe check
|
|
|
30
30
|
|
|
31
31
|
### Install local runtime
|
|
32
32
|
|
|
33
|
+
```bash
|
|
34
|
+
npx -y trooper-cli
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
This is shorthand for:
|
|
38
|
+
|
|
33
39
|
```bash
|
|
34
40
|
npx -y trooper-cli onboard --yes
|
|
35
41
|
```
|
|
@@ -48,7 +54,7 @@ npx -y trooper-cli onboard --yes \
|
|
|
48
54
|
### Preview the installer command
|
|
49
55
|
|
|
50
56
|
```bash
|
|
51
|
-
npx -y trooper-cli
|
|
57
|
+
npx -y trooper-cli --dry-run
|
|
52
58
|
```
|
|
53
59
|
|
|
54
60
|
### Uninstall local runtime
|
package/bin/trooper.js
CHANGED
|
@@ -16,11 +16,13 @@ function printHelp() {
|
|
|
16
16
|
console.log(`Trooper CLI
|
|
17
17
|
|
|
18
18
|
Usage:
|
|
19
|
+
npx -y trooper-cli
|
|
19
20
|
npx -y trooper-cli onboard --yes
|
|
20
21
|
npx -y trooper-cli onboard --yes --token <setup-token>
|
|
21
22
|
npx -y trooper-cli uninstall --yes
|
|
22
23
|
|
|
23
24
|
Aliases:
|
|
25
|
+
no command Same as onboard --yes
|
|
24
26
|
setup Same as onboard
|
|
25
27
|
remove Same as uninstall
|
|
26
28
|
|
|
@@ -218,7 +220,7 @@ function runShellCommand(command, platform, { failureLabel = 'Command', successM
|
|
|
218
220
|
|
|
219
221
|
async function main() {
|
|
220
222
|
const args = parseArgs(process.argv.slice(2));
|
|
221
|
-
const command = args._[0] || '
|
|
223
|
+
const command = args._[0] || 'onboard';
|
|
222
224
|
if (args.help || args.h || command === 'help') {
|
|
223
225
|
printHelp();
|
|
224
226
|
return;
|