Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.92 KB | None | 0 0
  1. Options:
  2. --version show program's version number and exit
  3. -h, --help show this help message and exit
  4.  
  5. Common options:
  6. -c CONFIG, --config=CONFIG
  7. specify alternate config file
  8. -s, --save save configuration to ~/.odoorc (or to
  9. ~/.openerp_serverrc if it exists)
  10. -i INIT, --init=INIT
  11. install one or more modules (comma-separated list, use
  12. "all" for all modules), requires -d
  13. -u UPDATE, --update=UPDATE
  14. update one or more modules (comma-separated list, use
  15. "all" for all modules). Requires -d.
  16. --without-demo=WITHOUT_DEMO
  17. disable loading demo data for modules to be installed
  18. (comma-separated, use "all" for all modules). Requires
  19. -d and -i. Default is none
  20. -P IMPORT_PARTIAL, --import-partial=IMPORT_PARTIAL
  21. Use this for big data importation, if it crashes you
  22. will be able to continue at the current state. Provide
  23. a filename to store intermediate importation states.
  24. --pidfile=PIDFILE file where the server pid will be stored
  25. --addons-path=ADDONS_PATH
  26. specify additional addons paths (separated by commas).
  27. --load=SERVER_WIDE_MODULES
  28. Comma-separated list of server-wide modules.
  29. -D DATA_DIR, --data-dir=DATA_DIR
  30. Directory where to store Odoo data
  31.  
  32. XML-RPC Configuration:
  33. --xmlrpc-interface=XMLRPC_INTERFACE
  34. Specify the TCP IP address for the XML-RPC protocol.
  35. The empty string binds to all interfaces.
  36. --xmlrpc-port=XMLRPC_PORT
  37. specify the TCP port for the XML-RPC protocol
  38. --no-xmlrpc disable the XML-RPC protocol
  39. --proxy-mode Enable correct behavior when behind a reverse proxy
  40. --longpolling-port=LONGPOLLING_PORT
  41. specify the TCP port for longpolling requests
  42.  
  43. Web interface Configuration:
  44. --db-filter=REGEXP Filter listed database
  45.  
  46. Testing Configuration:
  47. --test-file=TEST_FILE
  48. Launch a python or YML test file.
  49. --test-report-directory=TEST_REPORT_DIRECTORY
  50. If set, will save sample of all reports in this
  51. directory.
  52. --test-enable Enable YAML and unit tests.
  53. --test-commit Commit database changes performed by YAML or XML
  54. tests.
  55.  
  56. Logging Configuration:
  57. --logfile=LOGFILE file where the server log will be stored
  58. --logrotate enable logfile rotation
  59. --syslog Send the log to the syslog server
  60. --log-handler=PREFIX:LEVEL
  61. setup a handler at LEVEL for a given PREFIX. An empty
  62. PREFIX indicates the root logger. This option can be
  63. repeated. Example: "odoo.orm:DEBUG" or
  64. "werkzeug:CRITICAL" (default: ":INFO")
  65. --log-request shortcut for --log-handler=odoo.http.rpc.request:DEBUG
  66. --log-response shortcut for --log-
  67. handler=odoo.http.rpc.response:DEBUG
  68. --log-web shortcut for --log-handler=odoo.http:DEBUG
  69. --log-sql shortcut for --log-handler=odoo.sql_db:DEBUG
  70. --log-db=LOG_DB Logging database
  71. --log-db-level=LOG_DB_LEVEL
  72. Logging database level
  73. --log-level=LOG_LEVEL
  74. specify the level of the logging. Accepted values:
  75. ['info', 'debug_rpc', 'warn', 'test', 'critical',
  76. 'debug_sql', 'error', 'debug', 'debug_rpc_answer',
  77. 'notset'].
  78.  
  79. SMTP Configuration:
  80. --email-from=EMAIL_FROM
  81. specify the SMTP email address for sending email
  82. --smtp=SMTP_SERVER specify the SMTP server for sending email
  83. --smtp-port=SMTP_PORT
  84. specify the SMTP port
  85. --smtp-ssl if passed, SMTP connections will be encrypted with SSL
  86. (STARTTLS)
  87. --smtp-user=SMTP_USER
  88. specify the SMTP username for sending email
  89. --smtp-password=SMTP_PASSWORD
  90. specify the SMTP password for sending email
  91.  
  92. Database related options:
  93. -d DB_NAME, --database=DB_NAME
  94. specify the database name
  95. -r DB_USER, --db_user=DB_USER
  96. specify the database user name
  97. -w DB_PASSWORD, --db_password=DB_PASSWORD
  98. specify the database password
  99. --pg_path=PG_PATH specify the pg executable path
  100. --db_host=DB_HOST specify the database host
  101. --db_port=DB_PORT specify the database port
  102. --db_maxconn=DB_MAXCONN
  103. specify the the maximum number of physical connections
  104. to posgresql
  105. --db-template=DB_TEMPLATE
  106. specify a custom database template to create a new
  107. database
  108.  
  109. Internationalisation options:
  110. Use these options to translate Odoo to another language.See i18n
  111. section of the user manual. Option '-d' is mandatory.Option '-l' is
  112. mandatory in case of importation
  113.  
  114. --load-language=LOAD_LANGUAGE
  115. specifies the languages for the translations you want
  116. to be loaded
  117. -l LANGUAGE, --language=LANGUAGE
  118. specify the language of the translation file. Use it
  119. with --i18n-export or --i18n-import
  120. --i18n-export=TRANSLATE_OUT
  121. export all sentences to be translated to a CSV file, a
  122. PO file or a TGZ archive and exit
  123. --i18n-import=TRANSLATE_IN
  124. import a CSV or a PO file with translations and exit.
  125. The '-l' option is required.
  126. --i18n-overwrite overwrites existing translation terms on updating a
  127. module or importing a CSV or a PO file.
  128. --modules=TRANSLATE_MODULES
  129. specify modules to export. Use in combination with
  130. --i18n-export
  131.  
  132. Security-related options:
  133. --no-database-list disable the ability to return the list of databases
  134.  
  135. Advanced options:
  136. --dev=DEV_MODE Enable developer mode. Param: List of options
  137. separated by comma. Options : all,
  138. [pudb|wdb|ipdb|pdb], reload, qweb, werkzeug, xml
  139. --shell-interface=SHELL_INTERFACE
  140. Specify a preferred REPL to use in shell mode.
  141. Supported REPLs are: [ipython|ptpython|bpython|python]
  142. --stop-after-init stop the server after its initialization
  143. --osv-memory-count-limit=OSV_MEMORY_COUNT_LIMIT
  144. Force a limit on the maximum number of records kept in
  145. the virtual osv_memory tables. The default is False,
  146. which means no count-based limit.
  147. --osv-memory-age-limit=OSV_MEMORY_AGE_LIMIT
  148. Force a limit on the maximum age of records kept in
  149. the virtual osv_memory tables. This is a decimal value
  150. expressed in hours, and the default is 1 hour.
  151. --max-cron-threads=MAX_CRON_THREADS
  152. Maximum number of threads processing concurrently cron
  153. jobs (default 2).
  154. --unaccent Use the unaccent function provided by the database
  155. when available.
  156. --geoip-db=GEOIP_DATABASE
  157. Absolute path to the GeoIP database file.
  158.  
  159. Multiprocessing options:
  160. --workers=WORKERS Specify the number of workers, 0 disable prefork mode.
  161. --limit-memory-soft=LIMIT_MEMORY_SOFT
  162. Maximum allowed virtual memory per worker, when
  163. reached the worker be reset after the current request
  164. (default 2048MiB).
  165. --limit-memory-hard=LIMIT_MEMORY_HARD
  166. Maximum allowed virtual memory per worker, when
  167. reached, any memory allocation will fail (default
  168. 2560MiB).
  169. --limit-time-cpu=LIMIT_TIME_CPU
  170. Maximum allowed CPU time per request (default 60).
  171. --limit-time-real=LIMIT_TIME_REAL
  172. Maximum allowed Real time per request (default 120).
  173. --limit-time-real-cron=LIMIT_TIME_REAL_CRON
  174. Maximum allowed Real time per cron job. (default:
  175. --limit-time-real). Set to 0 for no limit.
  176. --limit-request=LIMIT_REQUEST
  177. Maximum number of request to be processed per worker
  178. (default 8192).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement