From 0708608c7eb710c8cd7749845384e897ba39c741 Mon Sep 17 00:00:00 2001 From: Paulo Castro Date: Tue, 20 Oct 2020 22:02:53 +0100 Subject: [PATCH] Add help note regarding the version of Node.js printed by `balena version -a` Connects-to: #2068 Change-type: patch --- doc/cli.markdown | 6 +++++- lib/commands/version.ts | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/cli.markdown b/doc/cli.markdown index d1d9a6f2..e9a532a4 100644 --- a/doc/cli.markdown +++ b/doc/cli.markdown @@ -1302,7 +1302,11 @@ show additional commands ## version -Display version information for balenaCLI and/or Node.js. +Display version information for balenaCLI and/or Node.js. Note that the +balenaCLI executable installers for Windows and macOS, and the standalone +zip packages, ship with a built-in copy of Node.js. In this case, the +reported version of Node.js regards this built-in copy, rather than any +other `node` engine that may also be available on the command prompt. The --json option is recommended when scripting the output of this command, because the JSON format is less likely to change and it better represents diff --git a/lib/commands/version.ts b/lib/commands/version.ts index dfe554c7..da256f26 100644 --- a/lib/commands/version.ts +++ b/lib/commands/version.ts @@ -34,7 +34,11 @@ export default class VersionCmd extends Command { public static description = stripIndent` Display version information for balenaCLI and/or Node.js. - Display version information for balenaCLI and/or Node.js. + Display version information for balenaCLI and/or Node.js. Note that the + balenaCLI executable installers for Windows and macOS, and the standalone + zip packages, ship with a built-in copy of Node.js. In this case, the + reported version of Node.js regards this built-in copy, rather than any + other \`node\` engine that may also be available on the command prompt. The --json option is recommended when scripting the output of this command, because the JSON format is less likely to change and it better represents