@phystack/phyctl-phyos 4.5.57-dev → 4.5.59-dev
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 +22 -35
- package/bin/index.js +23 -0
- package/package.json +11 -6
- package/bin/phyctl +0 -0
package/README.md
CHANGED
|
@@ -4,57 +4,44 @@ PhyStack control plane CLI for managing PhyOS devices.
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Linux (x86_64)
|
|
7
|
+
### Via npm (recommended)
|
|
10
8
|
|
|
11
9
|
```bash
|
|
12
|
-
|
|
13
|
-
sudo mv phyctl /usr/local/bin/
|
|
14
|
-
hash -r
|
|
15
|
-
phyctl --version
|
|
10
|
+
npm install -g @phystack/phyctl-phyos
|
|
16
11
|
```
|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
npm automatically downloads the correct binary for your platform.
|
|
14
|
+
|
|
15
|
+
### Direct binary download (no npm required)
|
|
19
16
|
|
|
20
17
|
```bash
|
|
21
|
-
|
|
18
|
+
# Linux ARM64
|
|
19
|
+
curl -sL "https://registry.npmjs.org/@phystack/phyctl-linux-arm64/-/phyctl-linux-arm64-VERSION.tgz" | tar xz --strip-components=2 package/bin/phyctl
|
|
22
20
|
sudo mv phyctl /usr/local/bin/
|
|
23
21
|
hash -r
|
|
24
|
-
phyctl --version
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### macOS (Apple Silicon)
|
|
28
22
|
|
|
29
|
-
|
|
30
|
-
curl -
|
|
23
|
+
# Linux x86_64
|
|
24
|
+
curl -sL "https://registry.npmjs.org/@phystack/phyctl-linux-x64/-/phyctl-linux-x64-VERSION.tgz" | tar xz --strip-components=2 package/bin/phyctl
|
|
31
25
|
sudo mv phyctl /usr/local/bin/
|
|
32
|
-
phyctl --version
|
|
33
|
-
```
|
|
34
26
|
|
|
35
|
-
|
|
27
|
+
# macOS Apple Silicon
|
|
28
|
+
curl -sL "https://registry.npmjs.org/@phystack/phyctl-darwin-arm64/-/phyctl-darwin-arm64-VERSION.tgz" | tar xz --strip-components=2 package/bin/phyctl
|
|
29
|
+
sudo mv phyctl /usr/local/bin/
|
|
36
30
|
|
|
37
|
-
|
|
38
|
-
curl -
|
|
31
|
+
# macOS Intel
|
|
32
|
+
curl -sL "https://registry.npmjs.org/@phystack/phyctl-darwin-x64/-/phyctl-darwin-x64-VERSION.tgz" | tar xz --strip-components=2 package/bin/phyctl
|
|
39
33
|
sudo mv phyctl /usr/local/bin/
|
|
40
|
-
phyctl --version
|
|
41
34
|
```
|
|
42
35
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
Replace `latest` with the version number:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
curl -fsSL https://os.phygrid.com/phystack-npm/releases/4.5.54-dev/phyctl-linux-x64.tar.gz | tar xz
|
|
49
|
-
```
|
|
36
|
+
Replace `VERSION` with the desired version (e.g., `4.4.69`).
|
|
50
37
|
|
|
51
|
-
> **Note:**
|
|
38
|
+
> **Note:** Run `hash -r` after installing to clear the shell's path cache.
|
|
52
39
|
|
|
53
40
|
## Supported platforms
|
|
54
41
|
|
|
55
|
-
| Platform | Architecture |
|
|
56
|
-
|
|
57
|
-
| Linux |
|
|
58
|
-
| Linux |
|
|
59
|
-
| macOS | ARM64 |
|
|
60
|
-
| macOS | x86_64 |
|
|
42
|
+
| Platform | Architecture | npm package |
|
|
43
|
+
|----------|-------------|-------------|
|
|
44
|
+
| Linux | ARM64 | `@phystack/phyctl-linux-arm64` |
|
|
45
|
+
| Linux | x86_64 | `@phystack/phyctl-linux-x64` |
|
|
46
|
+
| macOS | ARM64 | `@phystack/phyctl-darwin-arm64` |
|
|
47
|
+
| macOS | x86_64 | `@phystack/phyctl-darwin-x64` |
|
package/bin/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { spawnSync } = require('child_process');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
|
|
5
|
+
const BINARY = 'phyctl';
|
|
6
|
+
const key = `${process.platform}-${process.arch}`;
|
|
7
|
+
const pkg = `@phystack/${BINARY}-${key}`;
|
|
8
|
+
|
|
9
|
+
let binPath;
|
|
10
|
+
try {
|
|
11
|
+
binPath = path.join(path.dirname(require.resolve(`${pkg}/package.json`)), 'bin', BINARY);
|
|
12
|
+
} catch {
|
|
13
|
+
console.error(
|
|
14
|
+
`Unsupported or missing platform package: ${pkg}\n` +
|
|
15
|
+
`Platform: ${key}\n\n` +
|
|
16
|
+
`Install manually: npm install ${pkg}\n` +
|
|
17
|
+
`Or download: npx ${pkg}`
|
|
18
|
+
);
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const result = spawnSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
|
|
23
|
+
process.exit(result.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phystack/phyctl-phyos",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.59-dev",
|
|
4
4
|
"exports": "./index.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -14,24 +14,23 @@
|
|
|
14
14
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
15
15
|
"build": "rimraf dist && tsc",
|
|
16
16
|
"build:binary": "bash build-binary.sh",
|
|
17
|
-
"prepublishOnly": "bash build-binary.sh bin/phyctl",
|
|
18
17
|
"start": "yarn build && node --inspect --enable-source-maps dist/index",
|
|
19
18
|
"dev": "NODE_ENV=development yarn start"
|
|
20
19
|
},
|
|
21
20
|
"bin": {
|
|
22
|
-
"phyctl": "./bin/
|
|
21
|
+
"phyctl": "./bin/index.js"
|
|
23
22
|
},
|
|
24
23
|
"engines": {
|
|
25
24
|
"node": ">=20.0.0"
|
|
26
25
|
},
|
|
27
26
|
"files": [
|
|
28
|
-
"bin
|
|
27
|
+
"bin/**/*"
|
|
29
28
|
],
|
|
30
29
|
"author": "PhyStack.com",
|
|
31
30
|
"license": "MIT",
|
|
32
31
|
"description": "",
|
|
33
32
|
"dependencies": {
|
|
34
|
-
"@phystack/hub-client": "4.5.
|
|
33
|
+
"@phystack/hub-client": "4.5.59-dev",
|
|
35
34
|
"commander": "^13.1.0",
|
|
36
35
|
"inquirer": "^8.2.6",
|
|
37
36
|
"lodash": "^4.17.21",
|
|
@@ -43,5 +42,11 @@
|
|
|
43
42
|
"@types/node": "^20.14.9",
|
|
44
43
|
"rimraf": "^5.0.7"
|
|
45
44
|
},
|
|
46
|
-
"
|
|
45
|
+
"optionalDependencies": {
|
|
46
|
+
"@phystack/phyctl-darwin-arm64": "4.5.59-dev",
|
|
47
|
+
"@phystack/phyctl-darwin-x64": "4.5.59-dev",
|
|
48
|
+
"@phystack/phyctl-linux-arm64": "4.5.59-dev",
|
|
49
|
+
"@phystack/phyctl-linux-x64": "4.5.59-dev"
|
|
50
|
+
},
|
|
51
|
+
"gitHead": "33d6cfda644e10fbd5a88924952cefa3d33ef01b"
|
|
47
52
|
}
|
package/bin/phyctl
DELETED
|
Binary file
|