|
| 1 | +## coconut configuration import |
| 2 | + |
| 3 | +Import a configuration file for the specified component and entry |
| 4 | + |
| 5 | +### Synopsis |
| 6 | + |
| 7 | +The configuration import command generates a timestamp and saves |
| 8 | +the configuration file to Consul under the <component>/<entry>/<timestamp> path. |
| 9 | +Supported configuration file types are JSON, YAML, TOML and INI, |
| 10 | +and their file extensions are recognized automatically. |
| 11 | + |
| 12 | +``` |
| 13 | +coconut configuration import <component> <entry> <file_path> [flags] |
| 14 | +``` |
| 15 | + |
| 16 | +### Examples |
| 17 | + |
| 18 | +``` |
| 19 | +coconut conf import <component> <entry> <file_path> |
| 20 | +coconut conf import <component>/<entry> <file_path> |
| 21 | +coconut conf import <component> <entry> <file_path> --new-component |
| 22 | +coconut conf import <component>/<entry> <file_path> --format=json |
| 23 | +coconut conf import <component> <entry> <file_path>.json |
| 24 | +
|
| 25 | +``` |
| 26 | + |
| 27 | +### Options |
| 28 | + |
| 29 | +``` |
| 30 | + -f, --format string force a specific configuration file type, overriding any file extension |
| 31 | + -h, --help help for import |
| 32 | + -n, --new-component create a new configuration component while importing entry |
| 33 | +``` |
| 34 | + |
| 35 | +### Options inherited from parent commands |
| 36 | + |
| 37 | +``` |
| 38 | + --config string optional configuration file for coconut (default $HOME/.config/coconut/settings.yaml) |
| 39 | + --config_endpoint string configuration endpoint used by AliECS core as PROTO://HOST:PORT (default "consul://127.0.0.1:8500") |
| 40 | + --endpoint string AliECS core endpoint as HOST:PORT (default "127.0.0.1:47102") |
| 41 | + -v, --verbose show verbose output for debug purposes |
| 42 | +``` |
| 43 | + |
| 44 | +### SEE ALSO |
| 45 | + |
| 46 | +* [coconut configuration](coconut_configuration.md) - view or modify O² configuration |
| 47 | + |
| 48 | +###### Auto generated by spf13/cobra on 3-Oct-2019 |
0 commit comments