From 09a4e8db2d840f0b207afee7c5d99a47f967093d Mon Sep 17 00:00:00 2001 From: Paulo Castro Date: Thu, 16 Sep 2021 12:15:53 +0100 Subject: [PATCH] config inject: Remove requirement of being logged in Change-type: patch --- doc/cli.markdown | 7 +++++-- lib/commands/config/inject.ts | 9 +++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/doc/cli.markdown b/doc/cli.markdown index aa284cc4..8ee515c3 100644 --- a/doc/cli.markdown +++ b/doc/cli.markdown @@ -2497,8 +2497,11 @@ the wifi key to use (used only if --network is set to wifi) ## config inject <file> -Inject a config.json file to the mounted filesystem, -e.g. the SD card of a provisioned device or balenaOS image. +Inject a config.json file to a mounted filesystem, e.g. the SD card of a +provisioned device or balenaOS image. + +Note: if using a private/custom device type, please ensure you are logged in +('balena login' command). Public device types do not require logging in. Examples: diff --git a/lib/commands/config/inject.ts b/lib/commands/config/inject.ts index aa62a80a..b5e32314 100644 --- a/lib/commands/config/inject.ts +++ b/lib/commands/config/inject.ts @@ -34,8 +34,11 @@ export default class ConfigInjectCmd extends Command { public static description = stripIndent` Inject a configuration file into a device or OS image. - Inject a config.json file to the mounted filesystem, - e.g. the SD card of a provisioned device or balenaOS image. + Inject a config.json file to a mounted filesystem, e.g. the SD card of a + provisioned device or balenaOS image. + + Note: if using a private/custom device type, please ensure you are logged in + ('balena login' command). Public device types do not require logging in. `; public static examples = [ @@ -59,8 +62,6 @@ export default class ConfigInjectCmd extends Command { help: cf.help, }; - public static authenticated = true; - public static root = true; public async run() {