balena-cli 19.5.0 → 19.6.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/CHANGELOG.md +5 -1
- package/build/commands/{key → ssh-key}/add.d.ts +2 -1
- package/build/commands/{key → ssh-key}/add.js +12 -11
- package/build/commands/ssh-key/add.js.map +1 -0
- package/build/commands/{key → ssh-key}/index.d.ts +2 -1
- package/build/commands/{key → ssh-key}/index.js +9 -8
- package/build/commands/ssh-key/index.js.map +1 -0
- package/build/commands/{key → ssh-key}/list.d.ts +1 -1
- package/build/commands/{key → ssh-key}/list.js +8 -8
- package/build/commands/ssh-key/list.js.map +1 -0
- package/build/commands/{key → ssh-key}/rm.d.ts +2 -1
- package/build/commands/{key → ssh-key}/rm.js +12 -8
- package/build/commands/ssh-key/rm.js.map +1 -0
- package/npm-shrinkwrap.json +8 -8
- package/oclif.manifest.json +235 -228
- package/package.json +2 -2
- package/src/commands/{key → ssh-key}/add.ts +7 -5
- package/src/commands/{key → ssh-key}/index.ts +5 -3
- package/src/commands/{key → ssh-key}/list.ts +4 -4
- package/src/commands/{key → ssh-key}/rm.ts +8 -3
- package/build/commands/key/add.js.map +0 -1
- package/build/commands/key/index.js.map +0 -1
- package/build/commands/key/list.js.map +0 -1
- package/build/commands/key/rm.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file
|
|
|
4
4
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
-
## 19.
|
|
7
|
+
## 19.6.0 - 2024-10-17
|
|
8
|
+
|
|
9
|
+
* Add `ssh-key` as aliases for all `key` commands [myarmolinsky]
|
|
10
|
+
|
|
11
|
+
## 19.5.0 - 2024-10-17
|
|
8
12
|
|
|
9
13
|
* Add `key list` alias for `keys` command [myarmolinsky]
|
|
10
14
|
|
|
@@ -4,9 +4,9 @@ const core_1 = require("@oclif/core");
|
|
|
4
4
|
const errors_1 = require("../../errors");
|
|
5
5
|
const cf = require("../../utils/common-flags");
|
|
6
6
|
const lazy_1 = require("../../utils/lazy");
|
|
7
|
-
class
|
|
7
|
+
class SSHKeyAddCmd extends core_1.Command {
|
|
8
8
|
async run() {
|
|
9
|
-
const { args: params } = await this.parse(
|
|
9
|
+
const { args: params } = await this.parse(SSHKeyAddCmd);
|
|
10
10
|
let key;
|
|
11
11
|
if (params.path != null) {
|
|
12
12
|
const { readFile } = (await Promise.resolve().then(() => require('fs'))).promises;
|
|
@@ -18,7 +18,8 @@ class KeyAddCmd extends core_1.Command {
|
|
|
18
18
|
await (0, lazy_1.getBalenaSdk)().models.key.create(params.name, key);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
SSHKeyAddCmd.aliases = ['key add'];
|
|
22
|
+
SSHKeyAddCmd.description = (0, lazy_1.stripIndent) `
|
|
22
23
|
Add an SSH key to balenaCloud.
|
|
23
24
|
|
|
24
25
|
Add an SSH key to the balenaCloud account of the logged in user.
|
|
@@ -39,13 +40,13 @@ KeyAddCmd.description = (0, lazy_1.stripIndent) `
|
|
|
39
40
|
Skip the step about adding the key to a GitHub account, and instead add it to
|
|
40
41
|
your balena account.
|
|
41
42
|
`;
|
|
42
|
-
|
|
43
|
-
'$ balena key add Main ~/.ssh/id_rsa.pub',
|
|
44
|
-
'$ cat ~/.ssh/id_rsa.pub | balena key add Main',
|
|
43
|
+
SSHKeyAddCmd.examples = [
|
|
44
|
+
'$ balena ssh-key add Main ~/.ssh/id_rsa.pub',
|
|
45
|
+
'$ cat ~/.ssh/id_rsa.pub | balena ssh-key add Main',
|
|
45
46
|
'# Windows 10 (cmd.exe prompt) example',
|
|
46
|
-
'$ balena key add Main %userprofile%.sshid_rsa.pub',
|
|
47
|
+
'$ balena ssh-key add Main %userprofile%.sshid_rsa.pub',
|
|
47
48
|
];
|
|
48
|
-
|
|
49
|
+
SSHKeyAddCmd.args = {
|
|
49
50
|
name: core_1.Args.string({
|
|
50
51
|
description: 'the SSH key name',
|
|
51
52
|
required: true,
|
|
@@ -54,9 +55,9 @@ KeyAddCmd.args = {
|
|
|
54
55
|
description: `the path to the public key file`,
|
|
55
56
|
}),
|
|
56
57
|
};
|
|
57
|
-
|
|
58
|
+
SSHKeyAddCmd.flags = {
|
|
58
59
|
help: cf.help,
|
|
59
60
|
};
|
|
60
|
-
|
|
61
|
-
exports.default =
|
|
61
|
+
SSHKeyAddCmd.authenticated = true;
|
|
62
|
+
exports.default = SSHKeyAddCmd;
|
|
62
63
|
//# sourceMappingURL=add.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../src/commands/ssh-key/add.ts"],"names":[],"mappings":";;AAiBA,sCAA4C;AAC5C,yCAA6C;AAC7C,+CAA+C;AAC/C,2CAA6D;AAE7D,MAAqB,YAAa,SAAQ,cAAO;IAgDzC,KAAK,CAAC,GAAG;QACf,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAExD,IAAI,GAAW,CAAC;QAChB,IAAI,MAAM,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;YACzB,MAAM,EAAE,QAAQ,EAAE,GAAG,CAAC,2CAAa,IAAI,EAAC,CAAC,CAAC,QAAQ,CAAC;YACnD,GAAG,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC3C,CAAC;aAAM,CAAC;YACP,MAAM,IAAI,sBAAa,CAAC,sCAAsC,CAAC,CAAC;QACjE,CAAC;QAED,MAAM,IAAA,mBAAY,GAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1D,CAAC;;AA3Da,oBAAO,GAAG,CAAC,SAAS,CAAC,CAAC;AAEtB,wBAAW,GAAG,IAAA,kBAAW,EAAA;;;;;;;;;;;;;;;;;;;;EAoBtC,CAAC;AAEY,qBAAQ,GAAG;IACxB,6CAA6C;IAC7C,mDAAmD;IACnD,uCAAuC;IACvC,uDAAuD;CACvD,CAAC;AAEY,iBAAI,GAAG;IACpB,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC;QACjB,WAAW,EAAE,kBAAkB;QAC/B,QAAQ,EAAE,IAAI;KACd,CAAC;IACF,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC;QACjB,WAAW,EAAE,iCAAiC;KAC9C,CAAC;CACF,CAAC;AAEY,kBAAK,GAAG;IACrB,IAAI,EAAE,EAAE,CAAC,IAAI;CACb,CAAC;AAEY,0BAAa,GAAG,IAAI,CAAC;kBA9Cf,YAAY"}
|
|
@@ -5,7 +5,7 @@ const core_1 = require("@oclif/core");
|
|
|
5
5
|
const cf = require("../../utils/common-flags");
|
|
6
6
|
const lazy_1 = require("../../utils/lazy");
|
|
7
7
|
const validation_1 = require("../../utils/validation");
|
|
8
|
-
class
|
|
8
|
+
class SSHKeyCmd extends core_1.Command {
|
|
9
9
|
async run() {
|
|
10
10
|
const { args: params } = await this.parse(_a);
|
|
11
11
|
const key = await (0, lazy_1.getBalenaSdk)().models.key.get(params.id);
|
|
@@ -17,23 +17,24 @@ class KeyCmd extends core_1.Command {
|
|
|
17
17
|
console.log('\n' + key.public_key);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
_a =
|
|
21
|
-
|
|
20
|
+
_a = SSHKeyCmd;
|
|
21
|
+
SSHKeyCmd.aliases = ['key'];
|
|
22
|
+
SSHKeyCmd.description = (0, lazy_1.stripIndent) `
|
|
22
23
|
Display an SSH key.
|
|
23
24
|
|
|
24
25
|
Display a single SSH key registered in balenaCloud for the logged in user.
|
|
25
26
|
`;
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
SSHKeyCmd.examples = ['$ balena ssh-key 17'];
|
|
28
|
+
SSHKeyCmd.args = {
|
|
28
29
|
id: core_1.Args.integer({
|
|
29
30
|
description: 'balenaCloud ID for the SSH key',
|
|
30
31
|
parse: async (x) => (0, validation_1.parseAsInteger)(x, 'id'),
|
|
31
32
|
required: true,
|
|
32
33
|
}),
|
|
33
34
|
};
|
|
34
|
-
|
|
35
|
+
SSHKeyCmd.flags = {
|
|
35
36
|
help: cf.help,
|
|
36
37
|
};
|
|
37
|
-
|
|
38
|
-
exports.default =
|
|
38
|
+
SSHKeyCmd.authenticated = true;
|
|
39
|
+
exports.default = SSHKeyCmd;
|
|
39
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/ssh-key/index.ts"],"names":[],"mappings":";;;AAiBA,sCAA4C;AAC5C,+CAA+C;AAC/C,2CAAyE;AACzE,uDAAwD;AAExD,MAAqB,SAAU,SAAQ,cAAO;IAyBtC,KAAK,CAAC,GAAG;QACf,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,EAAS,CAAC,CAAC;QAErD,MAAM,GAAG,GAAG,MAAM,IAAA,mBAAY,GAAE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAG3D,MAAM,UAAU,GAAG;YAClB,EAAE,EAAE,GAAG,CAAC,EAAE;YACV,IAAI,EAAE,GAAG,CAAC,KAAK;SACf,CAAC;QAEF,OAAO,CAAC,GAAG,CAAC,IAAA,iBAAU,GAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;QAKrE,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;;;AAzCa,iBAAO,GAAG,CAAC,KAAK,CAAC,AAAV,CAAW;AAElB,qBAAW,GAAG,IAAA,kBAAW,EAAA;;;;EAItC,AAJwB,CAIvB;AAEY,kBAAQ,GAAG,CAAC,qBAAqB,CAAC,AAA1B,CAA2B;AAEnC,cAAI,GAAG;IACpB,EAAE,EAAE,WAAI,CAAC,OAAO,CAAC;QAChB,WAAW,EAAE,gCAAgC;QAC7C,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,IAAA,2BAAc,EAAC,CAAC,EAAE,IAAI,CAAC;QAC3C,QAAQ,EAAE,IAAI;KACd,CAAC;CACF,AANiB,CAMhB;AAEY,eAAK,GAAG;IACrB,IAAI,EAAE,EAAE,CAAC,IAAI;CACb,AAFkB,CAEjB;AAEY,uBAAa,GAAG,IAAI,AAAP,CAAQ;kBAvBf,SAAS"}
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const core_1 = require("@oclif/core");
|
|
4
4
|
const cf = require("../../utils/common-flags");
|
|
5
5
|
const lazy_1 = require("../../utils/lazy");
|
|
6
|
-
class
|
|
6
|
+
class SSHKeyListCmd extends core_1.Command {
|
|
7
7
|
async run() {
|
|
8
|
-
await this.parse(
|
|
8
|
+
await this.parse(SSHKeyListCmd);
|
|
9
9
|
const keys = await (0, lazy_1.getBalenaSdk)().models.key.getAll();
|
|
10
10
|
const displayKeys = keys.map((k) => {
|
|
11
11
|
return { id: k.id, name: k.title };
|
|
@@ -13,16 +13,16 @@ class KeyListCmd extends core_1.Command {
|
|
|
13
13
|
console.log((0, lazy_1.getVisuals)().table.horizontal(displayKeys, ['id', 'name']));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
SSHKeyListCmd.aliases = ['keys', 'key list'];
|
|
17
|
+
SSHKeyListCmd.description = (0, lazy_1.stripIndent) `
|
|
18
18
|
List the SSH keys in balenaCloud.
|
|
19
19
|
|
|
20
20
|
List all SSH keys registered in balenaCloud for the logged in user.
|
|
21
21
|
`;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
SSHKeyListCmd.examples = ['$ balena ssh-key list'];
|
|
23
|
+
SSHKeyListCmd.flags = {
|
|
24
24
|
help: cf.help,
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
exports.default =
|
|
26
|
+
SSHKeyListCmd.authenticated = true;
|
|
27
|
+
exports.default = SSHKeyListCmd;
|
|
28
28
|
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/ssh-key/list.ts"],"names":[],"mappings":";;AAiBA,sCAAsC;AACtC,+CAA+C;AAC/C,2CAAyE;AAEzE,MAAqB,aAAc,SAAQ,cAAO;IAgB1C,KAAK,CAAC,GAAG;QACf,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAEhC,MAAM,IAAI,GAAG,MAAM,IAAA,mBAAY,GAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;QAGtD,MAAM,WAAW,GAAwC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACvE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;QACpC,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,GAAG,CAAC,IAAA,iBAAU,GAAE,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;;AA1Ba,qBAAO,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAE/B,yBAAW,GAAG,IAAA,kBAAW,EAAA;;;;EAItC,CAAC;AACY,sBAAQ,GAAG,CAAC,uBAAuB,CAAC,CAAC;AAErC,mBAAK,GAAG;IACrB,IAAI,EAAE,EAAE,CAAC,IAAI;CACb,CAAC;AAEY,2BAAa,GAAG,IAAI,CAAC;kBAdf,aAAa"}
|
|
@@ -5,7 +5,7 @@ const core_1 = require("@oclif/core");
|
|
|
5
5
|
const cf = require("../../utils/common-flags");
|
|
6
6
|
const lazy_1 = require("../../utils/lazy");
|
|
7
7
|
const validation_1 = require("../../utils/validation");
|
|
8
|
-
class
|
|
8
|
+
class SSHKeyRmCmd extends core_1.Command {
|
|
9
9
|
async run() {
|
|
10
10
|
var _b;
|
|
11
11
|
const { args: params, flags: options } = await this.parse(_a);
|
|
@@ -14,26 +14,30 @@ class KeyRmCmd extends core_1.Command {
|
|
|
14
14
|
await (0, lazy_1.getBalenaSdk)().models.key.remove(params.id);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
_a =
|
|
18
|
-
|
|
17
|
+
_a = SSHKeyRmCmd;
|
|
18
|
+
SSHKeyRmCmd.aliases = ['key rm'];
|
|
19
|
+
SSHKeyRmCmd.description = (0, lazy_1.stripIndent) `
|
|
19
20
|
Remove an SSH key from balenaCloud.
|
|
20
21
|
|
|
21
22
|
Remove a single SSH key registered in balenaCloud for the logged in user.
|
|
22
23
|
|
|
23
24
|
The --yes option may be used to avoid interactive confirmation.
|
|
24
25
|
`;
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
SSHKeyRmCmd.examples = [
|
|
27
|
+
'$ balena ssh-key rm 17',
|
|
28
|
+
'$ balena ssh-key rm 17 --yes',
|
|
29
|
+
];
|
|
30
|
+
SSHKeyRmCmd.args = {
|
|
27
31
|
id: core_1.Args.integer({
|
|
28
32
|
description: 'balenaCloud ID for the SSH key',
|
|
29
33
|
parse: async (x) => (0, validation_1.parseAsInteger)(x, 'id'),
|
|
30
34
|
required: true,
|
|
31
35
|
}),
|
|
32
36
|
};
|
|
33
|
-
|
|
37
|
+
SSHKeyRmCmd.flags = {
|
|
34
38
|
yes: cf.yes,
|
|
35
39
|
help: cf.help,
|
|
36
40
|
};
|
|
37
|
-
|
|
38
|
-
exports.default =
|
|
41
|
+
SSHKeyRmCmd.authenticated = true;
|
|
42
|
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,AAHkB,CAGjB;AAEY,yBAAa,GAAG,IAAI,AAAP,CAAQ;kBA7Bf,WAAW"}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-cli",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.6.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "balena-cli",
|
|
9
|
-
"version": "19.
|
|
9
|
+
"version": "19.6.0",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"dependencies": {
|
|
@@ -3739,9 +3739,9 @@
|
|
|
3739
3739
|
}
|
|
3740
3740
|
},
|
|
3741
3741
|
"node_modules/@types/node": {
|
|
3742
|
-
"version": "20.16.
|
|
3743
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.
|
|
3744
|
-
"integrity": "sha512-
|
|
3742
|
+
"version": "20.16.12",
|
|
3743
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.12.tgz",
|
|
3744
|
+
"integrity": "sha512-LfPFB0zOeCeCNQV3i+67rcoVvoN5n0NVuR2vLG0O5ySQMgchuZlC4lgz546ZOJyDtj5KIgOxy+lacOimfqZAIA==",
|
|
3745
3745
|
"dependencies": {
|
|
3746
3746
|
"undici-types": "~6.19.2"
|
|
3747
3747
|
}
|
|
@@ -5475,9 +5475,9 @@
|
|
|
5475
5475
|
}
|
|
5476
5476
|
},
|
|
5477
5477
|
"node_modules/balena-sdk/node_modules/@types/node": {
|
|
5478
|
-
"version": "18.19.
|
|
5479
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.
|
|
5480
|
-
"integrity": "sha512-
|
|
5478
|
+
"version": "18.19.56",
|
|
5479
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.56.tgz",
|
|
5480
|
+
"integrity": "sha512-4EMJlWwwGnVPflJAtM14p9eVSa6BOv5b92mCsh5zcM1UagNtEtrbbtaE6WE1tw2TabavatnwqXjlIpcAEuJJNg==",
|
|
5481
5481
|
"dependencies": {
|
|
5482
5482
|
"undici-types": "~5.26.4"
|
|
5483
5483
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -129,25 +129,25 @@
|
|
|
129
129
|
"revoke.js"
|
|
130
130
|
]
|
|
131
131
|
},
|
|
132
|
-
"
|
|
132
|
+
"block:create": {
|
|
133
133
|
"aliases": [],
|
|
134
134
|
"args": {
|
|
135
135
|
"name": {
|
|
136
|
-
"description": "
|
|
136
|
+
"description": "block name",
|
|
137
137
|
"name": "name",
|
|
138
138
|
"required": true
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
|
-
"description": "Create an
|
|
141
|
+
"description": "Create an block.\n\nCreate a new balena block.\n\nYou can specify the organization the block should belong to using\nthe `--organization` option. The organization's handle, not its name,\nshould be provided. Organization handles can be listed with the\n`balena orgs` command.\n\nThe block's default device type is specified with the `--type` option.\nThe `balena devices supported` command can be used to list the available\ndevice types.\n\nInteractive dropdowns will be shown for selection if no device type or\norganization is specified and there are multiple options to choose from.\nIf there is a single option to choose from, it will be chosen automatically.\nThis interactive behavior can be disabled by explicitly specifying a device\ntype and organization.",
|
|
142
142
|
"examples": [
|
|
143
|
-
"$ balena
|
|
144
|
-
"$ balena
|
|
145
|
-
"$ balena
|
|
143
|
+
"$ balena block create MyBlock",
|
|
144
|
+
"$ balena block create MyBlock --organization mmyorg",
|
|
145
|
+
"$ balena block create MyBlock -o myorg --type raspberry-pi"
|
|
146
146
|
],
|
|
147
147
|
"flags": {
|
|
148
148
|
"organization": {
|
|
149
149
|
"char": "o",
|
|
150
|
-
"description": "handle of the organization the
|
|
150
|
+
"description": "handle of the organization the block should belong to",
|
|
151
151
|
"name": "organization",
|
|
152
152
|
"hasDynamicHelp": false,
|
|
153
153
|
"multiple": false,
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
},
|
|
156
156
|
"type": {
|
|
157
157
|
"char": "t",
|
|
158
|
-
"description": "
|
|
158
|
+
"description": "block device type (Check available types with `balena devices supported`)",
|
|
159
159
|
"name": "type",
|
|
160
160
|
"hasDynamicHelp": false,
|
|
161
161
|
"multiple": false,
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
},
|
|
172
172
|
"hasDynamicHelp": false,
|
|
173
173
|
"hiddenAliases": [],
|
|
174
|
-
"id": "
|
|
174
|
+
"id": "block:create",
|
|
175
175
|
"pluginAlias": "balena-cli",
|
|
176
176
|
"pluginName": "balena-cli",
|
|
177
177
|
"pluginType": "core",
|
|
@@ -182,29 +182,29 @@
|
|
|
182
182
|
"relativePath": [
|
|
183
183
|
"build",
|
|
184
184
|
"commands",
|
|
185
|
-
"
|
|
185
|
+
"block",
|
|
186
186
|
"create.js"
|
|
187
187
|
]
|
|
188
188
|
},
|
|
189
|
-
"
|
|
189
|
+
"app:create": {
|
|
190
190
|
"aliases": [],
|
|
191
191
|
"args": {
|
|
192
192
|
"name": {
|
|
193
|
-
"description": "
|
|
193
|
+
"description": "app name",
|
|
194
194
|
"name": "name",
|
|
195
195
|
"required": true
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
|
-
"description": "Create an
|
|
198
|
+
"description": "Create an app.\n\nCreate a new balena app.\n\nYou can specify the organization the app should belong to using\nthe `--organization` option. The organization's handle, not its name,\nshould be provided. Organization handles can be listed with the\n`balena orgs` command.\n\nThe app's default device type is specified with the `--type` option.\nThe `balena devices supported` command can be used to list the available\ndevice types.\n\nInteractive dropdowns will be shown for selection if no device type or\norganization is specified and there are multiple options to choose from.\nIf there is a single option to choose from, it will be chosen automatically.\nThis interactive behavior can be disabled by explicitly specifying a device\ntype and organization.",
|
|
199
199
|
"examples": [
|
|
200
|
-
"$ balena
|
|
201
|
-
"$ balena
|
|
202
|
-
"$ balena
|
|
200
|
+
"$ balena app create MyApp",
|
|
201
|
+
"$ balena app create MyApp --organization mmyorg",
|
|
202
|
+
"$ balena app create MyApp -o myorg --type raspberry-pi"
|
|
203
203
|
],
|
|
204
204
|
"flags": {
|
|
205
205
|
"organization": {
|
|
206
206
|
"char": "o",
|
|
207
|
-
"description": "handle of the organization the
|
|
207
|
+
"description": "handle of the organization the app should belong to",
|
|
208
208
|
"name": "organization",
|
|
209
209
|
"hasDynamicHelp": false,
|
|
210
210
|
"multiple": false,
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
},
|
|
213
213
|
"type": {
|
|
214
214
|
"char": "t",
|
|
215
|
-
"description": "
|
|
215
|
+
"description": "app device type (Check available types with `balena devices supported`)",
|
|
216
216
|
"name": "type",
|
|
217
217
|
"hasDynamicHelp": false,
|
|
218
218
|
"multiple": false,
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
},
|
|
229
229
|
"hasDynamicHelp": false,
|
|
230
230
|
"hiddenAliases": [],
|
|
231
|
-
"id": "
|
|
231
|
+
"id": "app:create",
|
|
232
232
|
"pluginAlias": "balena-cli",
|
|
233
233
|
"pluginName": "balena-cli",
|
|
234
234
|
"pluginType": "core",
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"relativePath": [
|
|
240
240
|
"build",
|
|
241
241
|
"commands",
|
|
242
|
-
"
|
|
242
|
+
"app",
|
|
243
243
|
"create.js"
|
|
244
244
|
]
|
|
245
245
|
},
|
|
@@ -1059,6 +1059,46 @@
|
|
|
1059
1059
|
"write.js"
|
|
1060
1060
|
]
|
|
1061
1061
|
},
|
|
1062
|
+
"devices:supported": {
|
|
1063
|
+
"aliases": [],
|
|
1064
|
+
"args": {},
|
|
1065
|
+
"description": "List the supported device types (like 'raspberrypi3' or 'intel-nuc').\n\nList the supported device types (like 'raspberrypi3' or 'intel-nuc').\n\nThe --json option is recommended when scripting the output of this command,\nbecause the JSON format is less likely to change and it better represents data\ntypes like lists and empty strings (for example, the ALIASES column contains a\nlist of zero or more values). The 'jq' utility may be helpful in shell scripts\n(https://stedolan.github.io/jq/manual/).",
|
|
1066
|
+
"examples": [
|
|
1067
|
+
"$ balena devices supported",
|
|
1068
|
+
"$ balena devices supported --json"
|
|
1069
|
+
],
|
|
1070
|
+
"flags": {
|
|
1071
|
+
"help": {
|
|
1072
|
+
"char": "h",
|
|
1073
|
+
"description": "Show CLI help.",
|
|
1074
|
+
"name": "help",
|
|
1075
|
+
"allowNo": false,
|
|
1076
|
+
"type": "boolean"
|
|
1077
|
+
},
|
|
1078
|
+
"json": {
|
|
1079
|
+
"char": "j",
|
|
1080
|
+
"description": "produce JSON output instead of tabular output",
|
|
1081
|
+
"name": "json",
|
|
1082
|
+
"allowNo": false,
|
|
1083
|
+
"type": "boolean"
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
"hasDynamicHelp": false,
|
|
1087
|
+
"hiddenAliases": [],
|
|
1088
|
+
"id": "devices:supported",
|
|
1089
|
+
"pluginAlias": "balena-cli",
|
|
1090
|
+
"pluginName": "balena-cli",
|
|
1091
|
+
"pluginType": "core",
|
|
1092
|
+
"strict": true,
|
|
1093
|
+
"enableJsonFlag": false,
|
|
1094
|
+
"isESM": false,
|
|
1095
|
+
"relativePath": [
|
|
1096
|
+
"build",
|
|
1097
|
+
"commands",
|
|
1098
|
+
"devices",
|
|
1099
|
+
"supported.js"
|
|
1100
|
+
]
|
|
1101
|
+
},
|
|
1062
1102
|
"device:deactivate": {
|
|
1063
1103
|
"aliases": [],
|
|
1064
1104
|
"args": {
|
|
@@ -2113,46 +2153,6 @@
|
|
|
2113
2153
|
"track-fleet.js"
|
|
2114
2154
|
]
|
|
2115
2155
|
},
|
|
2116
|
-
"devices:supported": {
|
|
2117
|
-
"aliases": [],
|
|
2118
|
-
"args": {},
|
|
2119
|
-
"description": "List the supported device types (like 'raspberrypi3' or 'intel-nuc').\n\nList the supported device types (like 'raspberrypi3' or 'intel-nuc').\n\nThe --json option is recommended when scripting the output of this command,\nbecause the JSON format is less likely to change and it better represents data\ntypes like lists and empty strings (for example, the ALIASES column contains a\nlist of zero or more values). The 'jq' utility may be helpful in shell scripts\n(https://stedolan.github.io/jq/manual/).",
|
|
2120
|
-
"examples": [
|
|
2121
|
-
"$ balena devices supported",
|
|
2122
|
-
"$ balena devices supported --json"
|
|
2123
|
-
],
|
|
2124
|
-
"flags": {
|
|
2125
|
-
"help": {
|
|
2126
|
-
"char": "h",
|
|
2127
|
-
"description": "Show CLI help.",
|
|
2128
|
-
"name": "help",
|
|
2129
|
-
"allowNo": false,
|
|
2130
|
-
"type": "boolean"
|
|
2131
|
-
},
|
|
2132
|
-
"json": {
|
|
2133
|
-
"char": "j",
|
|
2134
|
-
"description": "produce JSON output instead of tabular output",
|
|
2135
|
-
"name": "json",
|
|
2136
|
-
"allowNo": false,
|
|
2137
|
-
"type": "boolean"
|
|
2138
|
-
}
|
|
2139
|
-
},
|
|
2140
|
-
"hasDynamicHelp": false,
|
|
2141
|
-
"hiddenAliases": [],
|
|
2142
|
-
"id": "devices:supported",
|
|
2143
|
-
"pluginAlias": "balena-cli",
|
|
2144
|
-
"pluginName": "balena-cli",
|
|
2145
|
-
"pluginType": "core",
|
|
2146
|
-
"strict": true,
|
|
2147
|
-
"enableJsonFlag": false,
|
|
2148
|
-
"isESM": false,
|
|
2149
|
-
"relativePath": [
|
|
2150
|
-
"build",
|
|
2151
|
-
"commands",
|
|
2152
|
-
"devices",
|
|
2153
|
-
"supported.js"
|
|
2154
|
-
]
|
|
2155
|
-
},
|
|
2156
2156
|
"env:add": {
|
|
2157
2157
|
"aliases": [],
|
|
2158
2158
|
"args": {
|
|
@@ -2985,173 +2985,6 @@
|
|
|
2985
2985
|
"index.js"
|
|
2986
2986
|
]
|
|
2987
2987
|
},
|
|
2988
|
-
"key:add": {
|
|
2989
|
-
"aliases": [],
|
|
2990
|
-
"args": {
|
|
2991
|
-
"name": {
|
|
2992
|
-
"description": "the SSH key name",
|
|
2993
|
-
"name": "name",
|
|
2994
|
-
"required": true
|
|
2995
|
-
},
|
|
2996
|
-
"path": {
|
|
2997
|
-
"description": "the path to the public key file",
|
|
2998
|
-
"name": "path"
|
|
2999
|
-
}
|
|
3000
|
-
},
|
|
3001
|
-
"description": "Add an SSH key to balenaCloud.\n\nAdd an SSH key to the balenaCloud account of the logged in user.\n\nIf `path` is omitted, the command will attempt to read the SSH key from stdin.\n\nAbout SSH keys\nAn \"SSH key\" actually consists of a public/private key pair. A typical name\nfor the private key file is \"id_rsa\", and a typical name for the public key\nfile is \"id_rsa.pub\". Both key files are saved to your computer (with the\nprivate key optionally protected by a password), but only the public key is\nsaved to your balena account. This means that if you change computers or\notherwise lose the private key, you cannot recover the private key through\nyour balena account. You can however add new keys, and delete the old ones.\n\nTo generate a new SSH key pair, a nice guide can be found in GitHub's docs:\nhttps://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent\nSkip the step about adding the key to a GitHub account, and instead add it to\nyour balena account.",
|
|
3002
|
-
"examples": [
|
|
3003
|
-
"$ balena key add Main ~/.ssh/id_rsa.pub",
|
|
3004
|
-
"$ cat ~/.ssh/id_rsa.pub | balena key add Main",
|
|
3005
|
-
"# Windows 10 (cmd.exe prompt) example",
|
|
3006
|
-
"$ balena key add Main %userprofile%.sshid_rsa.pub"
|
|
3007
|
-
],
|
|
3008
|
-
"flags": {
|
|
3009
|
-
"help": {
|
|
3010
|
-
"char": "h",
|
|
3011
|
-
"description": "Show CLI help.",
|
|
3012
|
-
"name": "help",
|
|
3013
|
-
"allowNo": false,
|
|
3014
|
-
"type": "boolean"
|
|
3015
|
-
}
|
|
3016
|
-
},
|
|
3017
|
-
"hasDynamicHelp": false,
|
|
3018
|
-
"hiddenAliases": [],
|
|
3019
|
-
"id": "key:add",
|
|
3020
|
-
"pluginAlias": "balena-cli",
|
|
3021
|
-
"pluginName": "balena-cli",
|
|
3022
|
-
"pluginType": "core",
|
|
3023
|
-
"strict": true,
|
|
3024
|
-
"enableJsonFlag": false,
|
|
3025
|
-
"authenticated": true,
|
|
3026
|
-
"isESM": false,
|
|
3027
|
-
"relativePath": [
|
|
3028
|
-
"build",
|
|
3029
|
-
"commands",
|
|
3030
|
-
"key",
|
|
3031
|
-
"add.js"
|
|
3032
|
-
]
|
|
3033
|
-
},
|
|
3034
|
-
"key": {
|
|
3035
|
-
"aliases": [],
|
|
3036
|
-
"args": {
|
|
3037
|
-
"id": {
|
|
3038
|
-
"description": "balenaCloud ID for the SSH key",
|
|
3039
|
-
"name": "id",
|
|
3040
|
-
"required": true
|
|
3041
|
-
}
|
|
3042
|
-
},
|
|
3043
|
-
"description": "Display an SSH key.\n\nDisplay a single SSH key registered in balenaCloud for the logged in user.",
|
|
3044
|
-
"examples": [
|
|
3045
|
-
"$ balena key 17"
|
|
3046
|
-
],
|
|
3047
|
-
"flags": {
|
|
3048
|
-
"help": {
|
|
3049
|
-
"char": "h",
|
|
3050
|
-
"description": "Show CLI help.",
|
|
3051
|
-
"name": "help",
|
|
3052
|
-
"allowNo": false,
|
|
3053
|
-
"type": "boolean"
|
|
3054
|
-
}
|
|
3055
|
-
},
|
|
3056
|
-
"hasDynamicHelp": false,
|
|
3057
|
-
"hiddenAliases": [],
|
|
3058
|
-
"id": "key",
|
|
3059
|
-
"pluginAlias": "balena-cli",
|
|
3060
|
-
"pluginName": "balena-cli",
|
|
3061
|
-
"pluginType": "core",
|
|
3062
|
-
"strict": true,
|
|
3063
|
-
"enableJsonFlag": false,
|
|
3064
|
-
"authenticated": true,
|
|
3065
|
-
"isESM": false,
|
|
3066
|
-
"relativePath": [
|
|
3067
|
-
"build",
|
|
3068
|
-
"commands",
|
|
3069
|
-
"key",
|
|
3070
|
-
"index.js"
|
|
3071
|
-
]
|
|
3072
|
-
},
|
|
3073
|
-
"key:list": {
|
|
3074
|
-
"aliases": [
|
|
3075
|
-
"keys"
|
|
3076
|
-
],
|
|
3077
|
-
"args": {},
|
|
3078
|
-
"description": "List the SSH keys in balenaCloud.\n\nList all SSH keys registered in balenaCloud for the logged in user.",
|
|
3079
|
-
"examples": [
|
|
3080
|
-
"$ balena key list"
|
|
3081
|
-
],
|
|
3082
|
-
"flags": {
|
|
3083
|
-
"help": {
|
|
3084
|
-
"char": "h",
|
|
3085
|
-
"description": "Show CLI help.",
|
|
3086
|
-
"name": "help",
|
|
3087
|
-
"allowNo": false,
|
|
3088
|
-
"type": "boolean"
|
|
3089
|
-
}
|
|
3090
|
-
},
|
|
3091
|
-
"hasDynamicHelp": false,
|
|
3092
|
-
"hiddenAliases": [],
|
|
3093
|
-
"id": "key:list",
|
|
3094
|
-
"pluginAlias": "balena-cli",
|
|
3095
|
-
"pluginName": "balena-cli",
|
|
3096
|
-
"pluginType": "core",
|
|
3097
|
-
"strict": true,
|
|
3098
|
-
"enableJsonFlag": false,
|
|
3099
|
-
"authenticated": true,
|
|
3100
|
-
"isESM": false,
|
|
3101
|
-
"relativePath": [
|
|
3102
|
-
"build",
|
|
3103
|
-
"commands",
|
|
3104
|
-
"key",
|
|
3105
|
-
"list.js"
|
|
3106
|
-
]
|
|
3107
|
-
},
|
|
3108
|
-
"key:rm": {
|
|
3109
|
-
"aliases": [],
|
|
3110
|
-
"args": {
|
|
3111
|
-
"id": {
|
|
3112
|
-
"description": "balenaCloud ID for the SSH key",
|
|
3113
|
-
"name": "id",
|
|
3114
|
-
"required": true
|
|
3115
|
-
}
|
|
3116
|
-
},
|
|
3117
|
-
"description": "Remove an SSH key from balenaCloud.\n\nRemove a single SSH key registered in balenaCloud for the logged in user.\n\nThe --yes option may be used to avoid interactive confirmation.",
|
|
3118
|
-
"examples": [
|
|
3119
|
-
"$ balena key rm 17",
|
|
3120
|
-
"$ balena key rm 17 --yes"
|
|
3121
|
-
],
|
|
3122
|
-
"flags": {
|
|
3123
|
-
"yes": {
|
|
3124
|
-
"char": "y",
|
|
3125
|
-
"description": "answer \"yes\" to all questions (non interactive use)",
|
|
3126
|
-
"name": "yes",
|
|
3127
|
-
"allowNo": false,
|
|
3128
|
-
"type": "boolean"
|
|
3129
|
-
},
|
|
3130
|
-
"help": {
|
|
3131
|
-
"char": "h",
|
|
3132
|
-
"description": "Show CLI help.",
|
|
3133
|
-
"name": "help",
|
|
3134
|
-
"allowNo": false,
|
|
3135
|
-
"type": "boolean"
|
|
3136
|
-
}
|
|
3137
|
-
},
|
|
3138
|
-
"hasDynamicHelp": false,
|
|
3139
|
-
"hiddenAliases": [],
|
|
3140
|
-
"id": "key:rm",
|
|
3141
|
-
"pluginAlias": "balena-cli",
|
|
3142
|
-
"pluginName": "balena-cli",
|
|
3143
|
-
"pluginType": "core",
|
|
3144
|
-
"strict": true,
|
|
3145
|
-
"enableJsonFlag": false,
|
|
3146
|
-
"authenticated": true,
|
|
3147
|
-
"isESM": false,
|
|
3148
|
-
"relativePath": [
|
|
3149
|
-
"build",
|
|
3150
|
-
"commands",
|
|
3151
|
-
"key",
|
|
3152
|
-
"rm.js"
|
|
3153
|
-
]
|
|
3154
|
-
},
|
|
3155
2988
|
"leave": {
|
|
3156
2989
|
"aliases": [],
|
|
3157
2990
|
"args": {
|
|
@@ -4755,6 +4588,180 @@
|
|
|
4755
4588
|
"index.js"
|
|
4756
4589
|
]
|
|
4757
4590
|
},
|
|
4591
|
+
"ssh-key:add": {
|
|
4592
|
+
"aliases": [
|
|
4593
|
+
"key add"
|
|
4594
|
+
],
|
|
4595
|
+
"args": {
|
|
4596
|
+
"name": {
|
|
4597
|
+
"description": "the SSH key name",
|
|
4598
|
+
"name": "name",
|
|
4599
|
+
"required": true
|
|
4600
|
+
},
|
|
4601
|
+
"path": {
|
|
4602
|
+
"description": "the path to the public key file",
|
|
4603
|
+
"name": "path"
|
|
4604
|
+
}
|
|
4605
|
+
},
|
|
4606
|
+
"description": "Add an SSH key to balenaCloud.\n\nAdd an SSH key to the balenaCloud account of the logged in user.\n\nIf `path` is omitted, the command will attempt to read the SSH key from stdin.\n\nAbout SSH keys\nAn \"SSH key\" actually consists of a public/private key pair. A typical name\nfor the private key file is \"id_rsa\", and a typical name for the public key\nfile is \"id_rsa.pub\". Both key files are saved to your computer (with the\nprivate key optionally protected by a password), but only the public key is\nsaved to your balena account. This means that if you change computers or\notherwise lose the private key, you cannot recover the private key through\nyour balena account. You can however add new keys, and delete the old ones.\n\nTo generate a new SSH key pair, a nice guide can be found in GitHub's docs:\nhttps://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent\nSkip the step about adding the key to a GitHub account, and instead add it to\nyour balena account.",
|
|
4607
|
+
"examples": [
|
|
4608
|
+
"$ balena ssh-key add Main ~/.ssh/id_rsa.pub",
|
|
4609
|
+
"$ cat ~/.ssh/id_rsa.pub | balena ssh-key add Main",
|
|
4610
|
+
"# Windows 10 (cmd.exe prompt) example",
|
|
4611
|
+
"$ balena ssh-key add Main %userprofile%.sshid_rsa.pub"
|
|
4612
|
+
],
|
|
4613
|
+
"flags": {
|
|
4614
|
+
"help": {
|
|
4615
|
+
"char": "h",
|
|
4616
|
+
"description": "Show CLI help.",
|
|
4617
|
+
"name": "help",
|
|
4618
|
+
"allowNo": false,
|
|
4619
|
+
"type": "boolean"
|
|
4620
|
+
}
|
|
4621
|
+
},
|
|
4622
|
+
"hasDynamicHelp": false,
|
|
4623
|
+
"hiddenAliases": [],
|
|
4624
|
+
"id": "ssh-key:add",
|
|
4625
|
+
"pluginAlias": "balena-cli",
|
|
4626
|
+
"pluginName": "balena-cli",
|
|
4627
|
+
"pluginType": "core",
|
|
4628
|
+
"strict": true,
|
|
4629
|
+
"enableJsonFlag": false,
|
|
4630
|
+
"authenticated": true,
|
|
4631
|
+
"isESM": false,
|
|
4632
|
+
"relativePath": [
|
|
4633
|
+
"build",
|
|
4634
|
+
"commands",
|
|
4635
|
+
"ssh-key",
|
|
4636
|
+
"add.js"
|
|
4637
|
+
]
|
|
4638
|
+
},
|
|
4639
|
+
"ssh-key": {
|
|
4640
|
+
"aliases": [
|
|
4641
|
+
"key"
|
|
4642
|
+
],
|
|
4643
|
+
"args": {
|
|
4644
|
+
"id": {
|
|
4645
|
+
"description": "balenaCloud ID for the SSH key",
|
|
4646
|
+
"name": "id",
|
|
4647
|
+
"required": true
|
|
4648
|
+
}
|
|
4649
|
+
},
|
|
4650
|
+
"description": "Display an SSH key.\n\nDisplay a single SSH key registered in balenaCloud for the logged in user.",
|
|
4651
|
+
"examples": [
|
|
4652
|
+
"$ balena ssh-key 17"
|
|
4653
|
+
],
|
|
4654
|
+
"flags": {
|
|
4655
|
+
"help": {
|
|
4656
|
+
"char": "h",
|
|
4657
|
+
"description": "Show CLI help.",
|
|
4658
|
+
"name": "help",
|
|
4659
|
+
"allowNo": false,
|
|
4660
|
+
"type": "boolean"
|
|
4661
|
+
}
|
|
4662
|
+
},
|
|
4663
|
+
"hasDynamicHelp": false,
|
|
4664
|
+
"hiddenAliases": [],
|
|
4665
|
+
"id": "ssh-key",
|
|
4666
|
+
"pluginAlias": "balena-cli",
|
|
4667
|
+
"pluginName": "balena-cli",
|
|
4668
|
+
"pluginType": "core",
|
|
4669
|
+
"strict": true,
|
|
4670
|
+
"enableJsonFlag": false,
|
|
4671
|
+
"authenticated": true,
|
|
4672
|
+
"isESM": false,
|
|
4673
|
+
"relativePath": [
|
|
4674
|
+
"build",
|
|
4675
|
+
"commands",
|
|
4676
|
+
"ssh-key",
|
|
4677
|
+
"index.js"
|
|
4678
|
+
]
|
|
4679
|
+
},
|
|
4680
|
+
"ssh-key:list": {
|
|
4681
|
+
"aliases": [
|
|
4682
|
+
"keys",
|
|
4683
|
+
"key list"
|
|
4684
|
+
],
|
|
4685
|
+
"args": {},
|
|
4686
|
+
"description": "List the SSH keys in balenaCloud.\n\nList all SSH keys registered in balenaCloud for the logged in user.",
|
|
4687
|
+
"examples": [
|
|
4688
|
+
"$ balena ssh-key list"
|
|
4689
|
+
],
|
|
4690
|
+
"flags": {
|
|
4691
|
+
"help": {
|
|
4692
|
+
"char": "h",
|
|
4693
|
+
"description": "Show CLI help.",
|
|
4694
|
+
"name": "help",
|
|
4695
|
+
"allowNo": false,
|
|
4696
|
+
"type": "boolean"
|
|
4697
|
+
}
|
|
4698
|
+
},
|
|
4699
|
+
"hasDynamicHelp": false,
|
|
4700
|
+
"hiddenAliases": [],
|
|
4701
|
+
"id": "ssh-key:list",
|
|
4702
|
+
"pluginAlias": "balena-cli",
|
|
4703
|
+
"pluginName": "balena-cli",
|
|
4704
|
+
"pluginType": "core",
|
|
4705
|
+
"strict": true,
|
|
4706
|
+
"enableJsonFlag": false,
|
|
4707
|
+
"authenticated": true,
|
|
4708
|
+
"isESM": false,
|
|
4709
|
+
"relativePath": [
|
|
4710
|
+
"build",
|
|
4711
|
+
"commands",
|
|
4712
|
+
"ssh-key",
|
|
4713
|
+
"list.js"
|
|
4714
|
+
]
|
|
4715
|
+
},
|
|
4716
|
+
"ssh-key:rm": {
|
|
4717
|
+
"aliases": [
|
|
4718
|
+
"key rm"
|
|
4719
|
+
],
|
|
4720
|
+
"args": {
|
|
4721
|
+
"id": {
|
|
4722
|
+
"description": "balenaCloud ID for the SSH key",
|
|
4723
|
+
"name": "id",
|
|
4724
|
+
"required": true
|
|
4725
|
+
}
|
|
4726
|
+
},
|
|
4727
|
+
"description": "Remove an SSH key from balenaCloud.\n\nRemove a single SSH key registered in balenaCloud for the logged in user.\n\nThe --yes option may be used to avoid interactive confirmation.",
|
|
4728
|
+
"examples": [
|
|
4729
|
+
"$ balena ssh-key rm 17",
|
|
4730
|
+
"$ balena ssh-key rm 17 --yes"
|
|
4731
|
+
],
|
|
4732
|
+
"flags": {
|
|
4733
|
+
"yes": {
|
|
4734
|
+
"char": "y",
|
|
4735
|
+
"description": "answer \"yes\" to all questions (non interactive use)",
|
|
4736
|
+
"name": "yes",
|
|
4737
|
+
"allowNo": false,
|
|
4738
|
+
"type": "boolean"
|
|
4739
|
+
},
|
|
4740
|
+
"help": {
|
|
4741
|
+
"char": "h",
|
|
4742
|
+
"description": "Show CLI help.",
|
|
4743
|
+
"name": "help",
|
|
4744
|
+
"allowNo": false,
|
|
4745
|
+
"type": "boolean"
|
|
4746
|
+
}
|
|
4747
|
+
},
|
|
4748
|
+
"hasDynamicHelp": false,
|
|
4749
|
+
"hiddenAliases": [],
|
|
4750
|
+
"id": "ssh-key:rm",
|
|
4751
|
+
"pluginAlias": "balena-cli",
|
|
4752
|
+
"pluginName": "balena-cli",
|
|
4753
|
+
"pluginType": "core",
|
|
4754
|
+
"strict": true,
|
|
4755
|
+
"enableJsonFlag": false,
|
|
4756
|
+
"authenticated": true,
|
|
4757
|
+
"isESM": false,
|
|
4758
|
+
"relativePath": [
|
|
4759
|
+
"build",
|
|
4760
|
+
"commands",
|
|
4761
|
+
"ssh-key",
|
|
4762
|
+
"rm.js"
|
|
4763
|
+
]
|
|
4764
|
+
},
|
|
4758
4765
|
"support": {
|
|
4759
4766
|
"aliases": [],
|
|
4760
4767
|
"args": {
|
|
@@ -5232,5 +5239,5 @@
|
|
|
5232
5239
|
]
|
|
5233
5240
|
}
|
|
5234
5241
|
},
|
|
5235
|
-
"version": "19.
|
|
5242
|
+
"version": "19.6.0"
|
|
5236
5243
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-cli",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.6.0",
|
|
4
4
|
"description": "The official balena Command Line Interface",
|
|
5
5
|
"main": "./build/app.js",
|
|
6
6
|
"homepage": "https://github.com/balena-io/balena-cli",
|
|
@@ -273,6 +273,6 @@
|
|
|
273
273
|
}
|
|
274
274
|
},
|
|
275
275
|
"versionist": {
|
|
276
|
-
"publishedAt": "2024-10-
|
|
276
|
+
"publishedAt": "2024-10-17T15:48:01.033Z"
|
|
277
277
|
}
|
|
278
278
|
}
|
|
@@ -20,7 +20,9 @@ import { ExpectedError } from '../../errors';
|
|
|
20
20
|
import * as cf from '../../utils/common-flags';
|
|
21
21
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
|
22
22
|
|
|
23
|
-
export default class
|
|
23
|
+
export default class SSHKeyAddCmd extends Command {
|
|
24
|
+
public static aliases = ['key add'];
|
|
25
|
+
|
|
24
26
|
public static description = stripIndent`
|
|
25
27
|
Add an SSH key to balenaCloud.
|
|
26
28
|
|
|
@@ -44,10 +46,10 @@ export default class KeyAddCmd extends Command {
|
|
|
44
46
|
`;
|
|
45
47
|
|
|
46
48
|
public static examples = [
|
|
47
|
-
'$ balena key add Main ~/.ssh/id_rsa.pub',
|
|
48
|
-
'$ cat ~/.ssh/id_rsa.pub | balena key add Main',
|
|
49
|
+
'$ balena ssh-key add Main ~/.ssh/id_rsa.pub',
|
|
50
|
+
'$ cat ~/.ssh/id_rsa.pub | balena ssh-key add Main',
|
|
49
51
|
'# Windows 10 (cmd.exe prompt) example',
|
|
50
|
-
'$ balena key add Main %userprofile%.sshid_rsa.pub',
|
|
52
|
+
'$ balena ssh-key add Main %userprofile%.sshid_rsa.pub',
|
|
51
53
|
];
|
|
52
54
|
|
|
53
55
|
public static args = {
|
|
@@ -67,7 +69,7 @@ export default class KeyAddCmd extends Command {
|
|
|
67
69
|
public static authenticated = true;
|
|
68
70
|
|
|
69
71
|
public async run() {
|
|
70
|
-
const { args: params } = await this.parse(
|
|
72
|
+
const { args: params } = await this.parse(SSHKeyAddCmd);
|
|
71
73
|
|
|
72
74
|
let key: string;
|
|
73
75
|
if (params.path != null) {
|
|
@@ -20,14 +20,16 @@ import * as cf from '../../utils/common-flags';
|
|
|
20
20
|
import { getBalenaSdk, getVisuals, stripIndent } from '../../utils/lazy';
|
|
21
21
|
import { parseAsInteger } from '../../utils/validation';
|
|
22
22
|
|
|
23
|
-
export default class
|
|
23
|
+
export default class SSHKeyCmd extends Command {
|
|
24
|
+
public static aliases = ['key'];
|
|
25
|
+
|
|
24
26
|
public static description = stripIndent`
|
|
25
27
|
Display an SSH key.
|
|
26
28
|
|
|
27
29
|
Display a single SSH key registered in balenaCloud for the logged in user.
|
|
28
30
|
`;
|
|
29
31
|
|
|
30
|
-
public static examples = ['$ balena key 17'];
|
|
32
|
+
public static examples = ['$ balena ssh-key 17'];
|
|
31
33
|
|
|
32
34
|
public static args = {
|
|
33
35
|
id: Args.integer({
|
|
@@ -44,7 +46,7 @@ export default class KeyCmd extends Command {
|
|
|
44
46
|
public static authenticated = true;
|
|
45
47
|
|
|
46
48
|
public async run() {
|
|
47
|
-
const { args: params } = await this.parse(
|
|
49
|
+
const { args: params } = await this.parse(SSHKeyCmd);
|
|
48
50
|
|
|
49
51
|
const key = await getBalenaSdk().models.key.get(params.id);
|
|
50
52
|
|
|
@@ -19,15 +19,15 @@ import { Command } from '@oclif/core';
|
|
|
19
19
|
import * as cf from '../../utils/common-flags';
|
|
20
20
|
import { getBalenaSdk, getVisuals, stripIndent } from '../../utils/lazy';
|
|
21
21
|
|
|
22
|
-
export default class
|
|
23
|
-
public static aliases = ['keys'];
|
|
22
|
+
export default class SSHKeyListCmd extends Command {
|
|
23
|
+
public static aliases = ['keys', 'key list'];
|
|
24
24
|
|
|
25
25
|
public static description = stripIndent`
|
|
26
26
|
List the SSH keys in balenaCloud.
|
|
27
27
|
|
|
28
28
|
List all SSH keys registered in balenaCloud for the logged in user.
|
|
29
29
|
`;
|
|
30
|
-
public static examples = ['$ balena key list'];
|
|
30
|
+
public static examples = ['$ balena ssh-key list'];
|
|
31
31
|
|
|
32
32
|
public static flags = {
|
|
33
33
|
help: cf.help,
|
|
@@ -36,7 +36,7 @@ export default class KeyListCmd extends Command {
|
|
|
36
36
|
public static authenticated = true;
|
|
37
37
|
|
|
38
38
|
public async run() {
|
|
39
|
-
await this.parse(
|
|
39
|
+
await this.parse(SSHKeyListCmd);
|
|
40
40
|
|
|
41
41
|
const keys = await getBalenaSdk().models.key.getAll();
|
|
42
42
|
|
|
@@ -20,7 +20,9 @@ import * as cf from '../../utils/common-flags';
|
|
|
20
20
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
|
21
21
|
import { parseAsInteger } from '../../utils/validation';
|
|
22
22
|
|
|
23
|
-
export default class
|
|
23
|
+
export default class SSHKeyRmCmd extends Command {
|
|
24
|
+
public static aliases = ['key rm'];
|
|
25
|
+
|
|
24
26
|
public static description = stripIndent`
|
|
25
27
|
Remove an SSH key from balenaCloud.
|
|
26
28
|
|
|
@@ -29,7 +31,10 @@ export default class KeyRmCmd extends Command {
|
|
|
29
31
|
The --yes option may be used to avoid interactive confirmation.
|
|
30
32
|
`;
|
|
31
33
|
|
|
32
|
-
public static examples = [
|
|
34
|
+
public static examples = [
|
|
35
|
+
'$ balena ssh-key rm 17',
|
|
36
|
+
'$ balena ssh-key rm 17 --yes',
|
|
37
|
+
];
|
|
33
38
|
|
|
34
39
|
public static args = {
|
|
35
40
|
id: Args.integer({
|
|
@@ -47,7 +52,7 @@ export default class KeyRmCmd extends Command {
|
|
|
47
52
|
public static authenticated = true;
|
|
48
53
|
|
|
49
54
|
public async run() {
|
|
50
|
-
const { args: params, flags: options } = await this.parse(
|
|
55
|
+
const { args: params, flags: options } = await this.parse(SSHKeyRmCmd);
|
|
51
56
|
|
|
52
57
|
const patterns = await import('../../utils/patterns');
|
|
53
58
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../src/commands/key/add.ts"],"names":[],"mappings":";;AAiBA,sCAA4C;AAC5C,yCAA6C;AAC7C,+CAA+C;AAC/C,2CAA6D;AAE7D,MAAqB,SAAU,SAAQ,cAAO;IA8CtC,KAAK,CAAC,GAAG;QACf,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAErD,IAAI,GAAW,CAAC;QAChB,IAAI,MAAM,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;YACzB,MAAM,EAAE,QAAQ,EAAE,GAAG,CAAC,2CAAa,IAAI,EAAC,CAAC,CAAC,QAAQ,CAAC;YACnD,GAAG,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC3C,CAAC;aAAM,CAAC;YACP,MAAM,IAAI,sBAAa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