@tryterra/cli 0.15.0 → 0.16.0

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 CHANGED
@@ -19,7 +19,7 @@ The documentation is at [docs.tryterra.co/developer-tools/terra-cli][docs].
19
19
 
20
20
  1. Install the CLI:
21
21
 
22
- **Standalone (macOS and Linux):**
22
+ **Native Install (macOS and Linux):**
23
23
 
24
24
  ```sh
25
25
  curl -fsSL https://cli.tryterra.co/install.sh | sh
@@ -30,6 +30,16 @@ The documentation is at [docs.tryterra.co/developer-tools/terra-cli][docs].
30
30
  logging in.
31
31
  Rerun the installer to update; add `-s -- --help` after `sh` for options.
32
32
 
33
+ **Native Install (Windows PowerShell, x64 or ARM64):**
34
+
35
+ ```powershell
36
+ irm https://cli.tryterra.co/install.ps1 | iex
37
+ ```
38
+
39
+ Requires Windows PowerShell 5.1 or PowerShell 7. Installs into
40
+ `%LOCALAPPDATA%\Terra\bin` and adds it to your user and current session PATH.
41
+ No administrator privileges are needed.
42
+
33
43
  **Homebrew (macOS):**
34
44
 
35
45
  ```sh
@@ -42,6 +52,8 @@ The documentation is at [docs.tryterra.co/developer-tools/terra-cli][docs].
42
52
  npm install -g @tryterra/cli
43
53
  ```
44
54
 
55
+ On Windows ARM64, use ARM64 Node.js for a native npm installation.
56
+
45
57
  2. Log in:
46
58
 
47
59
  ```sh
@@ -87,7 +99,8 @@ The documentation is at [docs.tryterra.co/developer-tools/terra-cli][docs].
87
99
 
88
100
  ## Stay up to date
89
101
 
90
- Terra automatically updates standalone, global npm, and Homebrew installations.
102
+ Terra automatically updates Native Installs, global npm, and Homebrew
103
+ installations.
91
104
  An invocation can start a background check once every four hours. Your command
92
105
  does not wait for the check or installation, and subsequent invocations use the
93
106
  updated version. Coding agents can trigger updates; CI does not.
package/bin/shim.js CHANGED
@@ -1,10 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- // The published wrapper depends on five platform packages as optional
5
- // dependencies, so npm installs only the one matching this host. This shim finds
6
- // that binary and hands over to it.
7
-
8
4
  const { spawnSync } = require('child_process');
9
5
  const path = require('path');
10
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryterra/cli",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "The Terra CLI",
5
5
  "homepage": "https://docs.tryterra.co/developer-tools/terra-cli",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -26,11 +26,12 @@
26
26
  "postinstall": "node scripts/postinstall.js"
27
27
  },
28
28
  "optionalDependencies": {
29
- "@tryterra/cli-darwin-arm64": "0.15.0",
30
- "@tryterra/cli-darwin-x64": "0.15.0",
31
- "@tryterra/cli-linux-x64": "0.15.0",
32
- "@tryterra/cli-linux-arm64": "0.15.0",
33
- "@tryterra/cli-win32-x64": "0.15.0"
29
+ "@tryterra/cli-darwin-arm64": "0.16.0",
30
+ "@tryterra/cli-darwin-x64": "0.16.0",
31
+ "@tryterra/cli-linux-x64": "0.16.0",
32
+ "@tryterra/cli-linux-arm64": "0.16.0",
33
+ "@tryterra/cli-win32-x64": "0.16.0",
34
+ "@tryterra/cli-win32-arm64": "0.16.0"
34
35
  },
35
36
  "engines": {
36
37
  "node": ">=18.0.0"
package/platforms.json CHANGED
@@ -28,5 +28,11 @@
28
28
  "archiveTemplate": "terra_${VERSION}_windows_x86_64.zip",
29
29
  "checksums": "terra-windows-checksums.txt",
30
30
  "bin": "terra.exe"
31
+ },
32
+ "win32-arm64": {
33
+ "pkg": "@tryterra/cli-win32-arm64",
34
+ "archiveTemplate": "terra_${VERSION}_windows_arm64.zip",
35
+ "checksums": "terra-windows-checksums.txt",
36
+ "bin": "terra.exe"
31
37
  }
32
38
  }