Advertisement
Guest User

Untitled

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