Advertisement
_napster

Odoo CLI Flags

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