config inject: Remove requirement of being logged in

Change-type: patch
This commit is contained in:
Paulo Castro 2021-09-16 12:15:53 +01:00
parent 6c81440428
commit 09a4e8db2d
2 changed files with 10 additions and 6 deletions
doc
lib/commands/config

@ -2497,8 +2497,11 @@ the wifi key to use (used only if --network is set to wifi)
## config inject <file> ## config inject <file>
Inject a config.json file to the mounted filesystem, Inject a config.json file to a mounted filesystem, e.g. the SD card of a
e.g. the SD card of a provisioned device or balenaOS image. 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: Examples:

@ -34,8 +34,11 @@ export default class ConfigInjectCmd extends Command {
public static description = stripIndent` public static description = stripIndent`
Inject a configuration file into a device or OS image. Inject a configuration file into a device or OS image.
Inject a config.json file to the mounted filesystem, Inject a config.json file to a mounted filesystem, e.g. the SD card of a
e.g. the SD card of a provisioned device or balenaOS image. 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 = [ public static examples = [
@ -59,8 +62,6 @@ export default class ConfigInjectCmd extends Command {
help: cf.help, help: cf.help,
}; };
public static authenticated = true;
public static root = true; public static root = true;
public async run() { public async run() {