2.74. hammer 设置
更改服务器设置
Usage: hammer settings [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: info, show Show a setting list, index List all settings set Update a setting Options: -h, --help Print help
2.74.1. hammer 设置信息
显示设置
Usage: hammer settings <info|show> [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --id ID --name NAME Setting name -h, --help Print help Predefined field sets: --------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN --------------|-----|---------|----- Id | x | x | x Name | x | x | x Description | x | x | Category | x | x | Settings type | x | x | Value | x | x | --------------|-----|---------|-----
2.74.2. hammer 设置列表
列出所有设置
Usage: hammer settings <list|index> [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --order ORDER Sort field and order, eg. ‘id DESC’ --page PAGE Page number, starting at 1 --per-page PER_PAGE Number of results per page to return, 'all' to return all results --search SEARCH Filter results -h, --help Print help Predefined field sets: ------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN ------------|-----|---------|----- Id | x | x | x Name | x | x | x Full name | x | x | Value | x | x | Description | x | x | ------------|-----|---------|----- Search / Order fields: description text name string
2.74.3. hammer 设置集
更新设置
Usage: hammer settings set [OPTIONS] Options: --id ID --name NAME Setting name --value VALUE -h, --help Print help