Implement config write command

This command allows the user to overwrite properties of the config.json
file.
This commit is contained in:
Juan Cruz Viotti
2015-11-10 14:27:01 -04:00
parent 0bc3b9460f
commit 3b35aed3bf
6 changed files with 183 additions and 31 deletions

View File

@ -79,6 +79,7 @@ Now you have access to all the commands referenced below.
- Config
- [config read](#config-read)
- [config write <key> <value>](#config-write-60-key-62-60-value-62-)
- Wizard
@ -604,7 +605,7 @@ drive
Use this command to read the config.json file from a provisioned device
Example:
Examples:
$ resin config read --type raspberry-pi
$ resin config read --type raspberry-pi --drive /dev/disk2
@ -619,6 +620,26 @@ device type
drive
## config write <key> <value>
Use this command to write the config.json file of a provisioned device
Examples:
$ resin config write --type raspberry-pi username johndoe
$ resin config write --type raspberry-pi --drive /dev/disk2 username johndoe
$ resin config write --type raspberry-pi files.network/settings "..."
### Options
#### --type, -t <type>
device type
#### --drive, -d <drive>
drive
# Wizard
## quickstart [name]