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

View File

@ -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:

View File

@ -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() {