Files
librenms-librenms/resources/lang/en/commands.php
Tony Murray ad7b692654 Config CLI improvements (#11430)
* lnms config:set improvements
--ignore-checks option

* Config option completion
Could use some more refinement, but needs device commands converted to Laravel

* fix whitespace
2020-04-19 21:44:26 -05:00

50 lines
2.0 KiB
PHP

<?php
return [
'config:get' => [
'description' => 'Get configuration value',
'arguments' => [
'setting' => 'setting to get value of in dot notation (example: snmp.community.0)',
],
'options' => [
'json' => 'Output setting or entire config as json',
],
],
'config:set' => [
'description' => 'Set configuration value (or unset)',
'arguments' => [
'setting' => 'setting to set in dot notation (example: snmp.community.0)',
'value' => 'value to set, unset setting if this is omitted',
],
'options' => [
'ignore-checks' => 'Ignore all safety checks'
],
'confirm' => 'Reset :setting to the default?',
'errors' => [
'failed' => 'Failed to set :setting',
'invalid' => 'This is not a valid setting. Please check your spelling',
'nodb' => 'Database is not connected',
'no-validation' => 'Cannot set :setting, it is missing validation definition.',
]
],
'user:add' => [
'description' => 'Add a local user, you can only log in with this user if auth is set to mysql',
'arguments' => [
'username' => 'The username the user will log in with',
],
'options' => [
'descr' => 'User description',
'email' => 'Email to use for the user',
'password' => 'Password for the user, if not given, you will be prompted',
'full-name' => 'Full name for the user',
'role' => 'Set the user to the desired role :roles',
],
'password-request' => "Please enter the user's password",
'success' => 'Successfully added user: :username',
'wrong-auth' => 'Warning! You will not be able to log in with this user because you are not using MySQL auth',
],
'translation:generate' => [
'description' => 'Generate updated json language files for use in the web frontend',
]
];