odoo-work-cli config install¶
NAME¶
odoo-work-cli-config-install - Create a default config file in the platform config directory
SYNOPSIS¶
DESCRIPTION¶
Write a commented default configuration to the global config file, $XDG_CONFIG_HOME/odoo-work-cli/config.toml (default ~/.config/odoo-work-cli/config.toml), after asking for confirmation on standard input. Any answer but y or yes aborts, and so does an existing file: it is never overwritten.
Then set url, database and username in the file, and the secrets in [op_secrets] or in environment variables.
OPTIONS¶
None besides the global options.
GLOBAL OPTIONS¶
--backendBACKEND-
BACKEND: odoo or fake (offline, made-up data; env ODOO_WORK_CLI_BACKEND).
string; optional; default: odoo; env: ODOO_WORK_CLI_BACKEND
--configFILE-
Read only the config FILE (skip discovery).
string; optional
-h,--help- Print the help of the command and exit.
OUTPUT¶
The path of the file, the prompt "Continue? [y/N]" and the result.
ENVIRONMENT¶
XDG_CONFIG_HOME- Base directory of the global config file; default ~/.config.
FILES¶
~/.config/odoo-work-cli/config.toml- Global configuration ($XDG_CONFIG_HOME/odoo-work-cli/config.toml if XDG_CONFIG_HOME is set). Created by odoo-work-cli config install.
EXIT STATUS¶
0 on success, 1 on any error, including usage errors. The error is printed as "Error: TEXT" on standard error.
Error kinds this command can fail with:
validation- Invalid input: unknown flag, bad argument, malformed date, time or hours, a time in the future, an unknown project.
internal- Anything else: an unexpected Odoo response or a bug.