Merge pull request #2340 from balena-io/2339-config-inject-auth

config inject: Remove requirement of being logged in
This commit is contained in:
bulldozer-balena[bot] 2021-09-17 13:59:18 +00:00 committed by GitHub
commit 1afb29b923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() {