balena-cli 19.0.19 → 19.0.20

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.
Files changed (347) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/build/commands/api-key/generate.d.ts +0 -1
  3. package/build/commands/api-key/generate.js +0 -1
  4. package/build/commands/api-key/generate.js.map +1 -1
  5. package/build/commands/api-key/revoke.d.ts +0 -1
  6. package/build/commands/api-key/revoke.js +0 -1
  7. package/build/commands/api-key/revoke.js.map +1 -1
  8. package/build/commands/api-keys/index.d.ts +0 -1
  9. package/build/commands/api-keys/index.js +0 -1
  10. package/build/commands/api-keys/index.js.map +1 -1
  11. package/build/commands/app/create.d.ts +0 -1
  12. package/build/commands/app/create.js +0 -1
  13. package/build/commands/app/create.js.map +1 -1
  14. package/build/commands/block/create.d.ts +0 -1
  15. package/build/commands/block/create.js +0 -1
  16. package/build/commands/block/create.js.map +1 -1
  17. package/build/commands/build/index.d.ts +0 -1
  18. package/build/commands/build/index.js +0 -1
  19. package/build/commands/build/index.js.map +1 -1
  20. package/build/commands/config/generate.d.ts +0 -1
  21. package/build/commands/config/generate.js +0 -1
  22. package/build/commands/config/generate.js.map +1 -1
  23. package/build/commands/config/inject.d.ts +0 -1
  24. package/build/commands/config/inject.js +0 -1
  25. package/build/commands/config/inject.js.map +1 -1
  26. package/build/commands/config/read.d.ts +0 -1
  27. package/build/commands/config/read.js +0 -1
  28. package/build/commands/config/read.js.map +1 -1
  29. package/build/commands/config/reconfigure.d.ts +0 -1
  30. package/build/commands/config/reconfigure.js +0 -1
  31. package/build/commands/config/reconfigure.js.map +1 -1
  32. package/build/commands/config/write.d.ts +0 -1
  33. package/build/commands/config/write.js +0 -1
  34. package/build/commands/config/write.js.map +1 -1
  35. package/build/commands/deploy/index.d.ts +0 -1
  36. package/build/commands/deploy/index.js +0 -1
  37. package/build/commands/deploy/index.js.map +1 -1
  38. package/build/commands/device/deactivate.d.ts +0 -1
  39. package/build/commands/device/deactivate.js +0 -1
  40. package/build/commands/device/deactivate.js.map +1 -1
  41. package/build/commands/device/identify.d.ts +0 -1
  42. package/build/commands/device/identify.js +0 -1
  43. package/build/commands/device/identify.js.map +1 -1
  44. package/build/commands/device/index.d.ts +0 -1
  45. package/build/commands/device/index.js +0 -1
  46. package/build/commands/device/index.js.map +1 -1
  47. package/build/commands/device/init.d.ts +0 -1
  48. package/build/commands/device/init.js +0 -1
  49. package/build/commands/device/init.js.map +1 -1
  50. package/build/commands/device/local-mode.d.ts +0 -1
  51. package/build/commands/device/local-mode.js +0 -1
  52. package/build/commands/device/local-mode.js.map +1 -1
  53. package/build/commands/device/move.d.ts +0 -1
  54. package/build/commands/device/move.js +0 -1
  55. package/build/commands/device/move.js.map +1 -1
  56. package/build/commands/device/os-update.d.ts +0 -1
  57. package/build/commands/device/os-update.js +0 -1
  58. package/build/commands/device/os-update.js.map +1 -1
  59. package/build/commands/device/pin.d.ts +0 -1
  60. package/build/commands/device/pin.js +0 -1
  61. package/build/commands/device/pin.js.map +1 -1
  62. package/build/commands/device/public-url.d.ts +0 -1
  63. package/build/commands/device/public-url.js +0 -1
  64. package/build/commands/device/public-url.js.map +1 -1
  65. package/build/commands/device/purge.d.ts +0 -1
  66. package/build/commands/device/purge.js +0 -1
  67. package/build/commands/device/purge.js.map +1 -1
  68. package/build/commands/device/reboot.d.ts +0 -1
  69. package/build/commands/device/reboot.js +0 -1
  70. package/build/commands/device/reboot.js.map +1 -1
  71. package/build/commands/device/register.d.ts +0 -1
  72. package/build/commands/device/register.js +0 -1
  73. package/build/commands/device/register.js.map +1 -1
  74. package/build/commands/device/rename.d.ts +0 -1
  75. package/build/commands/device/rename.js +0 -1
  76. package/build/commands/device/rename.js.map +1 -1
  77. package/build/commands/device/restart.d.ts +0 -1
  78. package/build/commands/device/restart.js +0 -1
  79. package/build/commands/device/restart.js.map +1 -1
  80. package/build/commands/device/rm.d.ts +0 -1
  81. package/build/commands/device/rm.js +0 -1
  82. package/build/commands/device/rm.js.map +1 -1
  83. package/build/commands/device/shutdown.d.ts +0 -1
  84. package/build/commands/device/shutdown.js +0 -1
  85. package/build/commands/device/shutdown.js.map +1 -1
  86. package/build/commands/device/start-service.d.ts +0 -1
  87. package/build/commands/device/start-service.js +0 -1
  88. package/build/commands/device/start-service.js.map +1 -1
  89. package/build/commands/device/stop-service.d.ts +0 -1
  90. package/build/commands/device/stop-service.js +0 -1
  91. package/build/commands/device/stop-service.js.map +1 -1
  92. package/build/commands/device/track-fleet.d.ts +0 -1
  93. package/build/commands/device/track-fleet.js +0 -1
  94. package/build/commands/device/track-fleet.js.map +1 -1
  95. package/build/commands/devices/index.d.ts +0 -1
  96. package/build/commands/devices/index.js +0 -1
  97. package/build/commands/devices/index.js.map +1 -1
  98. package/build/commands/devices/supported.d.ts +0 -1
  99. package/build/commands/devices/supported.js +0 -3
  100. package/build/commands/devices/supported.js.map +1 -1
  101. package/build/commands/env/add.d.ts +0 -1
  102. package/build/commands/env/add.js +0 -1
  103. package/build/commands/env/add.js.map +1 -1
  104. package/build/commands/env/rename.d.ts +0 -1
  105. package/build/commands/env/rename.js +0 -1
  106. package/build/commands/env/rename.js.map +1 -1
  107. package/build/commands/env/rm.d.ts +0 -1
  108. package/build/commands/env/rm.js +0 -1
  109. package/build/commands/env/rm.js.map +1 -1
  110. package/build/commands/envs/index.d.ts +0 -1
  111. package/build/commands/envs/index.js +0 -1
  112. package/build/commands/envs/index.js.map +1 -1
  113. package/build/commands/fleet/create.d.ts +0 -1
  114. package/build/commands/fleet/create.js +0 -1
  115. package/build/commands/fleet/create.js.map +1 -1
  116. package/build/commands/fleet/index.d.ts +0 -1
  117. package/build/commands/fleet/index.js +0 -1
  118. package/build/commands/fleet/index.js.map +1 -1
  119. package/build/commands/fleet/pin.d.ts +0 -1
  120. package/build/commands/fleet/pin.js +0 -1
  121. package/build/commands/fleet/pin.js.map +1 -1
  122. package/build/commands/fleet/purge.d.ts +0 -1
  123. package/build/commands/fleet/purge.js +0 -1
  124. package/build/commands/fleet/purge.js.map +1 -1
  125. package/build/commands/fleet/rename.d.ts +0 -1
  126. package/build/commands/fleet/rename.js +0 -1
  127. package/build/commands/fleet/rename.js.map +1 -1
  128. package/build/commands/fleet/restart.d.ts +0 -1
  129. package/build/commands/fleet/restart.js +0 -1
  130. package/build/commands/fleet/restart.js.map +1 -1
  131. package/build/commands/fleet/rm.d.ts +0 -1
  132. package/build/commands/fleet/rm.js +0 -1
  133. package/build/commands/fleet/rm.js.map +1 -1
  134. package/build/commands/fleet/track-latest.d.ts +0 -1
  135. package/build/commands/fleet/track-latest.js +0 -1
  136. package/build/commands/fleet/track-latest.js.map +1 -1
  137. package/build/commands/fleets/index.d.ts +0 -1
  138. package/build/commands/fleets/index.js +0 -1
  139. package/build/commands/fleets/index.js.map +1 -1
  140. package/build/commands/internal/osinit.d.ts +0 -1
  141. package/build/commands/internal/osinit.js +0 -3
  142. package/build/commands/internal/osinit.js.map +1 -1
  143. package/build/commands/join/index.d.ts +0 -1
  144. package/build/commands/join/index.js +0 -1
  145. package/build/commands/join/index.js.map +1 -1
  146. package/build/commands/key/add.d.ts +0 -1
  147. package/build/commands/key/add.js +2 -3
  148. package/build/commands/key/add.js.map +1 -1
  149. package/build/commands/key/index.d.ts +0 -1
  150. package/build/commands/key/index.js +0 -1
  151. package/build/commands/key/index.js.map +1 -1
  152. package/build/commands/key/rm.d.ts +0 -1
  153. package/build/commands/key/rm.js +0 -1
  154. package/build/commands/key/rm.js.map +1 -1
  155. package/build/commands/keys/index.d.ts +0 -1
  156. package/build/commands/keys/index.js +0 -1
  157. package/build/commands/keys/index.js.map +1 -1
  158. package/build/commands/leave/index.d.ts +0 -1
  159. package/build/commands/leave/index.js +0 -1
  160. package/build/commands/leave/index.js.map +1 -1
  161. package/build/commands/local/configure.d.ts +0 -1
  162. package/build/commands/local/configure.js +0 -1
  163. package/build/commands/local/configure.js.map +1 -1
  164. package/build/commands/local/flash.d.ts +0 -1
  165. package/build/commands/local/flash.js +0 -1
  166. package/build/commands/local/flash.js.map +1 -1
  167. package/build/commands/login/index.d.ts +0 -1
  168. package/build/commands/login/index.js +0 -1
  169. package/build/commands/login/index.js.map +1 -1
  170. package/build/commands/logout/index.d.ts +0 -1
  171. package/build/commands/logout/index.js +0 -1
  172. package/build/commands/logout/index.js.map +1 -1
  173. package/build/commands/logs/index.d.ts +0 -1
  174. package/build/commands/logs/index.js +0 -1
  175. package/build/commands/logs/index.js.map +1 -1
  176. package/build/commands/notes/index.d.ts +0 -1
  177. package/build/commands/notes/index.js +0 -1
  178. package/build/commands/notes/index.js.map +1 -1
  179. package/build/commands/orgs/index.d.ts +0 -1
  180. package/build/commands/orgs/index.js +0 -1
  181. package/build/commands/orgs/index.js.map +1 -1
  182. package/build/commands/os/build-config.d.ts +0 -1
  183. package/build/commands/os/build-config.js +0 -1
  184. package/build/commands/os/build-config.js.map +1 -1
  185. package/build/commands/os/configure.d.ts +0 -1
  186. package/build/commands/os/configure.js +0 -1
  187. package/build/commands/os/configure.js.map +1 -1
  188. package/build/commands/os/download.d.ts +0 -1
  189. package/build/commands/os/download.js +0 -1
  190. package/build/commands/os/download.js.map +1 -1
  191. package/build/commands/os/initialize.d.ts +0 -1
  192. package/build/commands/os/initialize.js +0 -1
  193. package/build/commands/os/initialize.js.map +1 -1
  194. package/build/commands/os/versions.d.ts +0 -1
  195. package/build/commands/os/versions.js +0 -1
  196. package/build/commands/os/versions.js.map +1 -1
  197. package/build/commands/preload/index.d.ts +0 -1
  198. package/build/commands/preload/index.js +0 -1
  199. package/build/commands/preload/index.js.map +1 -1
  200. package/build/commands/push/index.d.ts +0 -1
  201. package/build/commands/push/index.js +0 -1
  202. package/build/commands/push/index.js.map +1 -1
  203. package/build/commands/release/finalize.d.ts +0 -1
  204. package/build/commands/release/finalize.js +0 -1
  205. package/build/commands/release/finalize.js.map +1 -1
  206. package/build/commands/release/index.d.ts +0 -1
  207. package/build/commands/release/index.js +0 -1
  208. package/build/commands/release/index.js.map +1 -1
  209. package/build/commands/release/invalidate.d.ts +0 -1
  210. package/build/commands/release/invalidate.js +0 -1
  211. package/build/commands/release/invalidate.js.map +1 -1
  212. package/build/commands/release/validate.d.ts +0 -1
  213. package/build/commands/release/validate.js +0 -1
  214. package/build/commands/release/validate.js.map +1 -1
  215. package/build/commands/releases/index.d.ts +0 -1
  216. package/build/commands/releases/index.js +0 -1
  217. package/build/commands/releases/index.js.map +1 -1
  218. package/build/commands/scan/index.d.ts +0 -1
  219. package/build/commands/scan/index.js +0 -1
  220. package/build/commands/scan/index.js.map +1 -1
  221. package/build/commands/settings/index.d.ts +0 -1
  222. package/build/commands/settings/index.js +0 -1
  223. package/build/commands/settings/index.js.map +1 -1
  224. package/build/commands/ssh/index.d.ts +0 -1
  225. package/build/commands/ssh/index.js +0 -1
  226. package/build/commands/ssh/index.js.map +1 -1
  227. package/build/commands/support/index.d.ts +0 -1
  228. package/build/commands/support/index.js +0 -1
  229. package/build/commands/support/index.js.map +1 -1
  230. package/build/commands/tag/rm.d.ts +0 -1
  231. package/build/commands/tag/rm.js +0 -1
  232. package/build/commands/tag/rm.js.map +1 -1
  233. package/build/commands/tag/set.d.ts +0 -1
  234. package/build/commands/tag/set.js +0 -1
  235. package/build/commands/tag/set.js.map +1 -1
  236. package/build/commands/tags/index.d.ts +0 -1
  237. package/build/commands/tags/index.js +0 -1
  238. package/build/commands/tags/index.js.map +1 -1
  239. package/build/commands/tunnel/index.d.ts +0 -1
  240. package/build/commands/tunnel/index.js +0 -1
  241. package/build/commands/tunnel/index.js.map +1 -1
  242. package/build/commands/util/available-drives.d.ts +0 -1
  243. package/build/commands/util/available-drives.js +0 -1
  244. package/build/commands/util/available-drives.js.map +1 -1
  245. package/build/commands/version/index.d.ts +0 -1
  246. package/build/commands/version/index.js +0 -1
  247. package/build/commands/version/index.js.map +1 -1
  248. package/build/commands/whoami/index.d.ts +0 -1
  249. package/build/commands/whoami/index.js +0 -1
  250. package/build/commands/whoami/index.js.map +1 -1
  251. package/build/help.d.ts +3 -2
  252. package/build/help.js +12 -13
  253. package/build/help.js.map +1 -1
  254. package/build/hooks/prerun/track.js +2 -3
  255. package/build/hooks/prerun/track.js.map +1 -1
  256. package/build/utils/oclif-utils.d.ts +0 -14
  257. package/build/utils/oclif-utils.js +0 -22
  258. package/build/utils/oclif-utils.js.map +1 -1
  259. package/npm-shrinkwrap.json +2 -2
  260. package/oclif.manifest.json +2 -85
  261. package/package.json +2 -2
  262. package/src/commands/api-key/generate.ts +0 -2
  263. package/src/commands/api-key/revoke.ts +0 -2
  264. package/src/commands/api-keys/index.ts +0 -2
  265. package/src/commands/app/create.ts +0 -2
  266. package/src/commands/block/create.ts +0 -2
  267. package/src/commands/build/index.ts +0 -2
  268. package/src/commands/config/generate.ts +0 -2
  269. package/src/commands/config/inject.ts +0 -2
  270. package/src/commands/config/read.ts +0 -2
  271. package/src/commands/config/reconfigure.ts +0 -2
  272. package/src/commands/config/write.ts +0 -2
  273. package/src/commands/deploy/index.ts +0 -2
  274. package/src/commands/device/deactivate.ts +0 -2
  275. package/src/commands/device/identify.ts +0 -2
  276. package/src/commands/device/index.ts +0 -2
  277. package/src/commands/device/init.ts +0 -2
  278. package/src/commands/device/local-mode.ts +0 -2
  279. package/src/commands/device/move.ts +0 -2
  280. package/src/commands/device/os-update.ts +0 -2
  281. package/src/commands/device/pin.ts +0 -2
  282. package/src/commands/device/public-url.ts +0 -2
  283. package/src/commands/device/purge.ts +0 -2
  284. package/src/commands/device/reboot.ts +0 -2
  285. package/src/commands/device/register.ts +0 -2
  286. package/src/commands/device/rename.ts +0 -2
  287. package/src/commands/device/restart.ts +0 -2
  288. package/src/commands/device/rm.ts +0 -2
  289. package/src/commands/device/shutdown.ts +0 -2
  290. package/src/commands/device/start-service.ts +0 -2
  291. package/src/commands/device/stop-service.ts +0 -2
  292. package/src/commands/device/track-fleet.ts +0 -2
  293. package/src/commands/devices/index.ts +0 -2
  294. package/src/commands/devices/supported.ts +0 -6
  295. package/src/commands/env/add.ts +0 -1
  296. package/src/commands/env/rename.ts +0 -2
  297. package/src/commands/env/rm.ts +0 -2
  298. package/src/commands/envs/index.ts +0 -2
  299. package/src/commands/fleet/create.ts +0 -2
  300. package/src/commands/fleet/index.ts +0 -2
  301. package/src/commands/fleet/pin.ts +0 -2
  302. package/src/commands/fleet/purge.ts +0 -2
  303. package/src/commands/fleet/rename.ts +0 -2
  304. package/src/commands/fleet/restart.ts +0 -2
  305. package/src/commands/fleet/rm.ts +0 -2
  306. package/src/commands/fleet/track-latest.ts +0 -2
  307. package/src/commands/fleets/index.ts +0 -2
  308. package/src/commands/internal/osinit.ts +0 -6
  309. package/src/commands/join/index.ts +0 -3
  310. package/src/commands/key/add.ts +2 -4
  311. package/src/commands/key/index.ts +0 -2
  312. package/src/commands/key/rm.ts +0 -2
  313. package/src/commands/keys/index.ts +0 -2
  314. package/src/commands/leave/index.ts +0 -2
  315. package/src/commands/local/configure.ts +0 -2
  316. package/src/commands/local/flash.ts +0 -2
  317. package/src/commands/login/index.ts +0 -2
  318. package/src/commands/logout/index.ts +0 -2
  319. package/src/commands/logs/index.ts +0 -2
  320. package/src/commands/notes/index.ts +0 -2
  321. package/src/commands/orgs/index.ts +0 -2
  322. package/src/commands/os/build-config.ts +0 -2
  323. package/src/commands/os/configure.ts +0 -2
  324. package/src/commands/os/download.ts +0 -2
  325. package/src/commands/os/initialize.ts +0 -2
  326. package/src/commands/os/versions.ts +0 -2
  327. package/src/commands/preload/index.ts +0 -2
  328. package/src/commands/push/index.ts +0 -2
  329. package/src/commands/release/finalize.ts +0 -2
  330. package/src/commands/release/index.ts +0 -2
  331. package/src/commands/release/invalidate.ts +0 -2
  332. package/src/commands/release/validate.ts +0 -2
  333. package/src/commands/releases/index.ts +0 -2
  334. package/src/commands/scan/index.ts +0 -2
  335. package/src/commands/settings/index.ts +0 -2
  336. package/src/commands/ssh/index.ts +0 -2
  337. package/src/commands/support/index.ts +0 -2
  338. package/src/commands/tag/rm.ts +0 -2
  339. package/src/commands/tag/set.ts +0 -1
  340. package/src/commands/tags/index.ts +0 -2
  341. package/src/commands/tunnel/index.ts +0 -2
  342. package/src/commands/util/available-drives.ts +0 -2
  343. package/src/commands/version/index.ts +0 -2
  344. package/src/commands/whoami/index.ts +0 -2
  345. package/src/help.ts +19 -15
  346. package/src/hooks/prerun/track.ts +2 -4
  347. package/src/utils/oclif-utils.ts +1 -27
@@ -56,8 +56,6 @@ export default class AppCreateCmd extends Command {
56
56
  }),
57
57
  };
58
58
 
59
- public static usage = 'app create <name>';
60
-
61
59
  public static flags = {
62
60
  organization: Flags.string({
63
61
  char: 'o',
@@ -56,8 +56,6 @@ export default class BlockCreateCmd extends Command {
56
56
  }),
57
57
  };
58
58
 
59
- public static usage = 'block create <name>';
60
-
61
59
  public static flags = {
62
60
  organization: Flags.string({
63
61
  char: 'o',
@@ -84,8 +84,6 @@ ${dockerignoreHelp}
84
84
  source: Args.string({ description: 'path of project source directory' }),
85
85
  };
86
86
 
87
- public static usage = 'build [source]';
88
-
89
87
  public static flags = {
90
88
  arch: Flags.string({
91
89
  description: 'the architecture to build for',
@@ -60,8 +60,6 @@ export default class ConfigGenerateCmd extends Command {
60
60
  '$ balena config generate --fleet myorg/fleet --version 2.12.7 --network wifi --wifiSsid mySsid --wifiKey abcdefgh --appUpdatePollInterval 15',
61
61
  ];
62
62
 
63
- public static usage = 'config generate';
64
-
65
63
  public static flags = {
66
64
  version: Flags.string({
67
65
  description: 'a balenaOS version',
@@ -43,8 +43,6 @@ export default class ConfigInjectCmd extends Command {
43
43
  }),
44
44
  };
45
45
 
46
- public static usage = 'config inject <file>';
47
-
48
46
  public static flags = {
49
47
  drive: cf.driveOrImg,
50
48
  help: cf.help,
@@ -36,8 +36,6 @@ export default class ConfigReadCmd extends Command {
36
36
  '$ balena config read --drive balena.img',
37
37
  ];
38
38
 
39
- public static usage = 'config read';
40
-
41
39
  public static flags = {
42
40
  drive: cf.driveOrImg,
43
41
  help: cf.help,
@@ -39,8 +39,6 @@ export default class ConfigReconfigureCmd extends Command {
39
39
  '$ balena config reconfigure --drive balena.img --advanced',
40
40
  ];
41
41
 
42
- public static usage = 'config reconfigure';
43
-
44
42
  public static flags = {
45
43
  drive: cf.driveOrImg,
46
44
  advanced: Flags.boolean({
@@ -48,8 +48,6 @@ export default class ConfigWriteCmd extends Command {
48
48
  }),
49
49
  };
50
50
 
51
- public static usage = 'config write <key> <value>';
52
-
53
51
  public static flags = {
54
52
  drive: cf.driveOrImg,
55
53
  help: cf.help,
@@ -108,8 +108,6 @@ ${dockerignoreHelp}
108
108
  image: Args.string({ description: 'the image to deploy' }),
109
109
  };
110
110
 
111
- public static usage = 'deploy <fleet> [image]';
112
-
113
111
  public static flags = {
114
112
  source: Flags.string({
115
113
  description:
@@ -41,8 +41,6 @@ export default class DeviceDeactivateCmd extends Command {
41
41
  }),
42
42
  };
43
43
 
44
- public static usage = 'device deactivate <uuid>';
45
-
46
44
  public static flags = {
47
45
  yes: cf.yes,
48
46
  help: cf.help,
@@ -36,8 +36,6 @@ export default class DeviceIdentifyCmd extends Command {
36
36
  }),
37
37
  };
38
38
 
39
- public static usage = 'device identify <uuid>';
40
-
41
39
  public static flags = {
42
40
  help: cf.help,
43
41
  };
@@ -62,8 +62,6 @@ export default class DeviceCmd extends Command {
62
62
  }),
63
63
  };
64
64
 
65
- public static usage = 'device <uuid>';
66
-
67
65
  public static flags = {
68
66
  json: cf.json,
69
67
  help: cf.help,
@@ -74,8 +74,6 @@ export default class DeviceInitCmd extends Command {
74
74
  '$ balena device init --fleet myFleet --os-version 2.83.21+rev1.prod --drive /dev/disk5 --config config.json --yes',
75
75
  ];
76
76
 
77
- public static usage = 'device init';
78
-
79
77
  public static flags = {
80
78
  fleet: cf.fleet,
81
79
  yes: cf.yes,
@@ -42,8 +42,6 @@ export default class DeviceLocalModeCmd extends Command {
42
42
  }),
43
43
  };
44
44
 
45
- public static usage = 'device local-mode <uuid>';
46
-
47
45
  public static flags = {
48
46
  enable: Flags.boolean({
49
47
  description: 'enable local mode',
@@ -54,8 +54,6 @@ export default class DeviceMoveCmd extends Command {
54
54
  }),
55
55
  };
56
56
 
57
- public static usage = 'device move <uuid(s)>';
58
-
59
57
  public static flags = {
60
58
  fleet: cf.fleet,
61
59
  help: cf.help,
@@ -47,8 +47,6 @@ export default class DeviceOsUpdateCmd extends Command {
47
47
  }),
48
48
  };
49
49
 
50
- public static usage = 'device os-update <uuid>';
51
-
52
50
  public static flags = {
53
51
  version: Flags.string({
54
52
  description: 'a balenaOS version',
@@ -44,8 +44,6 @@ export default class DevicePinCmd extends Command {
44
44
  }),
45
45
  };
46
46
 
47
- public static usage = 'device pin <uuid> [releaseToPinTo]';
48
-
49
47
  public static flags = {
50
48
  help: cf.help,
51
49
  };
@@ -44,8 +44,6 @@ export default class DevicePublicUrlCmd extends Command {
44
44
  }),
45
45
  };
46
46
 
47
- public static usage = 'device public-url <uuid>';
48
-
49
47
  public static flags = {
50
48
  enable: Flags.boolean({
51
49
  description: 'enable the public URL',
@@ -35,8 +35,6 @@ export default class DevicePurgeCmd extends Command {
35
35
  '$ balena device purge 55d43b3,23c73a1',
36
36
  ];
37
37
 
38
- public static usage = 'device purge <uuid>';
39
-
40
38
  public static args = {
41
39
  uuid: Args.string({
42
40
  description: 'comma-separated list (no blank spaces) of device UUIDs',
@@ -35,8 +35,6 @@ export default class DeviceRebootCmd extends Command {
35
35
  }),
36
36
  };
37
37
 
38
- public static usage = 'device reboot <uuid>';
39
-
40
38
  public static flags = {
41
39
  force: cf.force,
42
40
  help: cf.help,
@@ -44,8 +44,6 @@ export default class DeviceRegisterCmd extends Command {
44
44
  fleet: ca.fleetRequired,
45
45
  };
46
46
 
47
- public static usage = 'device register <fleet>';
48
-
49
47
  public static flags = {
50
48
  uuid: Flags.string({
51
49
  description: 'custom uuid',
@@ -43,8 +43,6 @@ export default class DeviceRenameCmd extends Command {
43
43
  }),
44
44
  };
45
45
 
46
- public static usage = 'device rename <uuid> [newName]';
47
-
48
46
  public static flags = {
49
47
  help: cf.help,
50
48
  };
@@ -53,8 +53,6 @@ export default class DeviceRestartCmd extends Command {
53
53
  }),
54
54
  };
55
55
 
56
- public static usage = 'device restart <uuid>';
57
-
58
56
  public static flags = {
59
57
  service: Flags.string({
60
58
  description:
@@ -43,8 +43,6 @@ export default class DeviceRmCmd extends Command {
43
43
  }),
44
44
  };
45
45
 
46
- public static usage = 'device rm <uuid(s)>';
47
-
48
46
  public static flags = {
49
47
  yes: cf.yes,
50
48
  help: cf.help,
@@ -36,8 +36,6 @@ export default class DeviceShutdownCmd extends Command {
36
36
  }),
37
37
  };
38
38
 
39
- public static usage = 'device shutdown <uuid>';
40
-
41
39
  public static flags = {
42
40
  force: cf.force,
43
41
  help: cf.help,
@@ -46,8 +46,6 @@ export default class DeviceStartServiceCmd extends Command {
46
46
  }),
47
47
  };
48
48
 
49
- public static usage = 'device start-service <uuid>';
50
-
51
49
  public static flags = {
52
50
  help: cf.help,
53
51
  };
@@ -46,8 +46,6 @@ export default class DeviceStopServiceCmd extends Command {
46
46
  }),
47
47
  };
48
48
 
49
- public static usage = 'device stop-service <uuid>';
50
-
51
49
  public static flags = {
52
50
  help: cf.help,
53
51
  };
@@ -35,8 +35,6 @@ export default class DeviceTrackFleetCmd extends Command {
35
35
  }),
36
36
  };
37
37
 
38
- public static usage = 'device track-fleet <uuid>';
39
-
40
38
  public static flags = {
41
39
  help: cf.help,
42
40
  };
@@ -53,8 +53,6 @@ export default class DevicesCmd extends Command {
53
53
  '$ balena devices -f myorg/myfleet',
54
54
  ];
55
55
 
56
- public static usage = 'devices';
57
-
58
56
  public static flags = {
59
57
  fleet: cf.fleet,
60
58
  json: cf.json,
@@ -21,7 +21,6 @@ import Command from '../../command';
21
21
 
22
22
  import * as cf from '../../utils/common-flags';
23
23
  import { getBalenaSdk, getVisuals, stripIndent } from '../../utils/lazy';
24
- import { CommandHelp } from '../../utils/oclif-utils';
25
24
 
26
25
  export default class DevicesSupportedCmd extends Command {
27
26
  public static description = stripIndent`
@@ -40,11 +39,6 @@ export default class DevicesSupportedCmd extends Command {
40
39
  '$ balena devices supported --json',
41
40
  ];
42
41
 
43
- public static usage = (
44
- 'devices supported ' +
45
- new CommandHelp({ args: DevicesSupportedCmd.args }).defaultUsage()
46
- ).trim();
47
-
48
42
  public static flags = {
49
43
  help: cf.help,
50
44
  json: Flags.boolean({
@@ -92,7 +92,6 @@ export default class EnvAddCmd extends Command {
92
92
 
93
93
  // Required for supporting empty string ('') `value` args.
94
94
  public static strict = false;
95
- public static usage = 'env add <name> [value]';
96
95
 
97
96
  public static flags = {
98
97
  fleet: { ...cf.fleet, exclusive: ['device'] },
@@ -53,8 +53,6 @@ export default class EnvRenameCmd extends Command {
53
53
  }),
54
54
  };
55
55
 
56
- public static usage = 'env rename <id> <value>';
57
-
58
56
  public static flags = {
59
57
  config: ec.booleanConfig,
60
58
  device: ec.booleanDevice,
@@ -52,8 +52,6 @@ export default class EnvRmCmd extends Command {
52
52
  }),
53
53
  };
54
54
 
55
- public static usage = 'env rm <id>';
56
-
57
55
  public static flags = {
58
56
  config: ec.booleanConfig,
59
57
  device: ec.booleanDevice,
@@ -94,8 +94,6 @@ export default class EnvsCmd extends Command {
94
94
  '$ balena envs --device 7cf02a6 --service MyService',
95
95
  ];
96
96
 
97
- public static usage = 'envs';
98
-
99
97
  public static flags = {
100
98
  fleet: { ...cf.fleet, exclusive: ['device'] },
101
99
  config: Flags.boolean({
@@ -56,8 +56,6 @@ export default class FleetCreateCmd extends Command {
56
56
  }),
57
57
  };
58
58
 
59
- public static usage = 'fleet create <name>';
60
-
61
59
  public static flags = {
62
60
  organization: Flags.string({
63
61
  char: 'o',
@@ -41,8 +41,6 @@ export default class FleetCmd extends Command {
41
41
  fleet: ca.fleetRequired,
42
42
  };
43
43
 
44
- public static usage = 'fleet <fleet>';
45
-
46
44
  public static flags = {
47
45
  help: cf.help,
48
46
  view: Flags.boolean({
@@ -44,8 +44,6 @@ export default class FleetPinCmd extends Command {
44
44
  }),
45
45
  };
46
46
 
47
- public static usage = 'fleet pin <slug> [releaseToPinTo]';
48
-
49
47
  public static flags = {
50
48
  help: cf.help,
51
49
  };
@@ -40,8 +40,6 @@ export default class FleetPurgeCmd extends Command {
40
40
  fleet: ca.fleetRequired,
41
41
  };
42
42
 
43
- public static usage = 'fleet purge <fleet>';
44
-
45
43
  public static flags = {
46
44
  help: cf.help,
47
45
  };
@@ -48,8 +48,6 @@ export default class FleetRenameCmd extends Command {
48
48
  }),
49
49
  };
50
50
 
51
- public static usage = 'fleet rename <fleet> [newName]';
52
-
53
51
  public static flags = {
54
52
  help: cf.help,
55
53
  };
@@ -39,8 +39,6 @@ export default class FleetRestartCmd extends Command {
39
39
  fleet: ca.fleetRequired,
40
40
  };
41
41
 
42
- public static usage = 'fleet restart <fleet>';
43
-
44
42
  public static flags = {
45
43
  help: cf.help,
46
44
  };
@@ -42,8 +42,6 @@ export default class FleetRmCmd extends Command {
42
42
  fleet: ca.fleetRequired,
43
43
  };
44
44
 
45
- public static usage = 'fleet rm <fleet>';
46
-
47
45
  public static flags = {
48
46
  yes: cf.yes,
49
47
  help: cf.help,
@@ -38,8 +38,6 @@ export default class FleetTrackLatestCmd extends Command {
38
38
  }),
39
39
  };
40
40
 
41
- public static usage = 'fleet track-latest <slug>';
42
-
43
41
  public static flags = {
44
42
  help: cf.help,
45
43
  };
@@ -39,8 +39,6 @@ export default class FleetsCmd extends Command {
39
39
 
40
40
  public static examples = ['$ balena fleets'];
41
41
 
42
- public static usage = 'fleets';
43
-
44
42
  public static flags = {
45
43
  help: cf.help,
46
44
  json: cf.json,
@@ -18,7 +18,6 @@
18
18
  import { Args } from '@oclif/core';
19
19
  import Command from '../../command';
20
20
  import { stripIndent } from '../../utils/lazy';
21
- import { CommandHelp } from '../../utils/oclif-utils';
22
21
 
23
22
  // 'Internal' commands are called during the execution of other commands.
24
23
  // `osinit` is called during `os initialize`
@@ -48,11 +47,6 @@ export default class OsinitCmd extends Command {
48
47
  }),
49
48
  };
50
49
 
51
- public static usage = (
52
- 'internal osinit ' +
53
- new CommandHelp({ args: OsinitCmd.args }).defaultUsage()
54
- ).trim();
55
-
56
50
  public static hidden = true;
57
51
  public static root = true;
58
52
  public static offlineCompatible = true;
@@ -60,9 +60,6 @@ export default class JoinCmd extends Command {
60
60
  }),
61
61
  };
62
62
 
63
- // Hardcoded to preserve camelcase
64
- public static usage = 'join [deviceIpOrHostname]';
65
-
66
63
  public static flags = {
67
64
  fleet: cf.fleet,
68
65
  pollInterval: Flags.integer({
@@ -29,7 +29,7 @@ export default class KeyAddCmd extends Command {
29
29
 
30
30
  If \`path\` is omitted, the command will attempt to read the SSH key from stdin.
31
31
 
32
- About SSH keys
32
+ About SSH keys
33
33
  An "SSH key" actually consists of a public/private key pair. A typical name
34
34
  for the private key file is "id_rsa", and a typical name for the public key
35
35
  file is "id_rsa.pub". Both key files are saved to your computer (with the
@@ -37,7 +37,7 @@ export default class KeyAddCmd extends Command {
37
37
  saved to your balena account. This means that if you change computers or
38
38
  otherwise lose the private key, you cannot recover the private key through
39
39
  your balena account. You can however add new keys, and delete the old ones.
40
-
40
+
41
41
  To generate a new SSH key pair, a nice guide can be found in GitHub's docs:
42
42
  https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
43
43
  Skip the step about adding the key to a GitHub account, and instead add it to
@@ -61,8 +61,6 @@ export default class KeyAddCmd extends Command {
61
61
  }),
62
62
  };
63
63
 
64
- public static usage = 'key add <name> [path]';
65
-
66
64
  public static flags = {
67
65
  help: cf.help,
68
66
  };
@@ -38,8 +38,6 @@ export default class KeyCmd extends Command {
38
38
  }),
39
39
  };
40
40
 
41
- public static usage = 'key <id>';
42
-
43
41
  public static flags = {
44
42
  help: cf.help,
45
43
  };
@@ -40,8 +40,6 @@ export default class KeyRmCmd extends Command {
40
40
  }),
41
41
  };
42
42
 
43
- public static usage = 'key rm <id>';
44
-
45
43
  public static flags = {
46
44
  yes: cf.yes,
47
45
  help: cf.help,
@@ -27,8 +27,6 @@ export default class KeysCmd extends Command {
27
27
  `;
28
28
  public static examples = ['$ balena keys'];
29
29
 
30
- public static usage = 'keys';
31
-
32
30
  public static flags = {
33
31
  help: cf.help,
34
32
  };
@@ -50,8 +50,6 @@ export default class LeaveCmd extends Command {
50
50
  }),
51
51
  };
52
52
 
53
- public static usage = 'leave [deviceIpOrHostname]';
54
-
55
53
  public static flags = {
56
54
  help: cf.help,
57
55
  };
@@ -40,8 +40,6 @@ export default class LocalConfigureCmd extends Command {
40
40
  }),
41
41
  };
42
42
 
43
- public static usage = 'local configure <target>';
44
-
45
43
  public static flags = {
46
44
  help: cf.help,
47
45
  };
@@ -46,8 +46,6 @@ export default class LocalFlashCmd extends Command {
46
46
  }),
47
47
  };
48
48
 
49
- public static usage = 'local flash <image>';
50
-
51
49
  public static flags = {
52
50
  drive: cf.drive,
53
51
  yes: cf.yes,
@@ -63,8 +63,6 @@ export default class LoginCmd extends Command {
63
63
  }),
64
64
  };
65
65
 
66
- public static usage = 'login';
67
-
68
66
  public static flags = {
69
67
  web: Flags.boolean({
70
68
  default: false,
@@ -26,8 +26,6 @@ export default class LogoutCmd extends Command {
26
26
  `;
27
27
  public static examples = ['$ balena logout'];
28
28
 
29
- public static usage = 'logout';
30
-
31
29
  public async run() {
32
30
  await this.parse(LogoutCmd);
33
31
  await getBalenaSdk().auth.logout();
@@ -61,8 +61,6 @@ export default class LogsCmd extends Command {
61
61
  }),
62
62
  };
63
63
 
64
- public static usage = 'logs <device>';
65
-
66
64
  public static flags = {
67
65
  'max-retry': Flags.integer({
68
66
  description: stripIndent`
@@ -42,8 +42,6 @@ export default class NoteCmd extends Command {
42
42
  }),
43
43
  };
44
44
 
45
- public static usage = 'note <|note>';
46
-
47
45
  public static flags = {
48
46
  device: { exclusive: ['dev'], ...cf.device },
49
47
  dev: Flags.string({
@@ -27,8 +27,6 @@ export default class OrgsCmd extends Command {
27
27
  `;
28
28
  public static examples = ['$ balena orgs'];
29
29
 
30
- public static usage = 'orgs';
31
-
32
30
  public static flags = {
33
31
  help: cf.help,
34
32
  };
@@ -46,8 +46,6 @@ export default class OsBuildConfigCmd extends Command {
46
46
  }),
47
47
  };
48
48
 
49
- public static usage = 'os build-config <image> <device-type>';
50
-
51
49
  public static flags = {
52
50
  advanced: Flags.boolean({
53
51
  description: 'show advanced configuration options',
@@ -92,8 +92,6 @@ export default class OsConfigureCmd extends Command {
92
92
  }),
93
93
  };
94
94
 
95
- public static usage = 'os configure <image>';
96
-
97
95
  public static flags = {
98
96
  advanced: Flags.boolean({
99
97
  char: 'v',
@@ -62,8 +62,6 @@ export default class OsDownloadCmd extends Command {
62
62
  }),
63
63
  };
64
64
 
65
- public static usage = 'os download <type>';
66
-
67
65
  public static flags = {
68
66
  output: Flags.string({
69
67
  description: 'output path',
@@ -48,8 +48,6 @@ export default class OsInitializeCmd extends Command {
48
48
  }),
49
49
  };
50
50
 
51
- public static usage = 'os initialize <image>';
52
-
53
51
  public static flags = {
54
52
  type: cf.deviceType,
55
53
  drive: cf.drive,