@krovacloud/cli 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Krova Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,10 @@
1
+ # @krovacloud/cli
2
+
3
+ The **Krova Cloud** CLI (`krova`).
4
+
5
+ ```sh
6
+ npm i -g @krovacloud/cli
7
+ krova --help
8
+ ```
9
+
10
+ Installs a prebuilt native binary for your platform. Also available via `go install github.com/krovacloud/krovactl/cmd/krova@latest` and Homebrew.
package/bin/krova.js ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ const { spawnSync } = require("node:child_process");
4
+ const pkg = `@krovacloud/cli-${process.platform}-${process.arch}`;
5
+ const exe = process.platform === "win32" ? "krova.exe" : "krova";
6
+ let bin;
7
+ try {
8
+ bin = require.resolve(`${pkg}/bin/${exe}`);
9
+ } catch {
10
+ console.error(
11
+ `krova: no prebuilt binary for ${process.platform}-${process.arch}.\n` +
12
+ "Install from source: go install github.com/krovacloud/krovactl/cmd/krova@latest"
13
+ );
14
+ process.exit(1);
15
+ }
16
+ const res = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
17
+ if (res.error) { console.error(res.error); process.exit(1); }
18
+ process.exit(res.status === null ? 1 : res.status);
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@krovacloud/cli",
3
+ "version": "0.1.1",
4
+ "description": "Krova Cloud CLI (krova) — manage Cubes (Firecracker microVMs) from the terminal",
5
+ "bin": {
6
+ "krova": "bin/krova.js"
7
+ },
8
+ "optionalDependencies": {
9
+ "@krovacloud/cli-darwin-arm64": "0.1.1",
10
+ "@krovacloud/cli-darwin-x64": "0.1.1",
11
+ "@krovacloud/cli-linux-x64": "0.1.1",
12
+ "@krovacloud/cli-linux-arm64": "0.1.1",
13
+ "@krovacloud/cli-win32-x64": "0.1.1"
14
+ },
15
+ "engines": {
16
+ "node": ">=16"
17
+ },
18
+ "license": "MIT",
19
+ "homepage": "https://github.com/krovacloud/krovactl",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/krovacloud/krovactl.git"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/krovacloud/krovactl/issues"
26
+ },
27
+ "files": [
28
+ "bin"
29
+ ],
30
+ "keywords": [
31
+ "krova",
32
+ "krova-cloud",
33
+ "cli",
34
+ "cubes",
35
+ "firecracker",
36
+ "microvm"
37
+ ],
38
+ "publishConfig": {
39
+ "access": "public"
40
+ }
41
+ }