Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Command line flags

Jason Sadler edited this page Apr 26, 2018 · 15 revisions

Related: ledger testing

CLI Arguments

Usage

Source: npm start -- --custom-argument

macOS: /Applications/Brave.app/Contents/MacOS/Brave --custom-argument

argument what it does when it was added
--debug-tab-events log all events and extra debug info for each tab 0.21.x
--debug-window-events log all events and extra debug info for each window 0.21.x
--disable-buffer-window do not use or create any hidden 'buffer' windows 0.21.x
--show-windows-immediately do not wait for windows to render before showing 0.22.12
--debug-store-actions log all redux-style actions at the time of state-reducing to both window and browser consoles 0.22.105

Environment Variables

Usage

Source: BRAVE_CUSTOM_VARIABLE=1 npm start

macOS: BRAVE_CUSTOM_VARIABLE=1 /Applications/Brave.app/Contents/MacOS/Brave

environment variable available values what it does when it was added
BRAVE_ENABLE_DEBUG_MENU true Show 'Debug' main app menu
BRAVE_SHOW_FIRST_RUN_WELCOME true Create about:welcome tab event in development environment on first-run 0.22.105
LEDGER_DEBUG ?? ??
LEDGER_LOGGING ?? ??
LEDGER_VERBOSE true Output verbose logs. Critical for debugging
LEDGER_ENVIRONMENT staging or production Used to use a non-production environment.
LEDGER_NO_DELAY true Call the run method every 5 seconds instead of delaying X minutes (sent back from client)
LEDGER_NO_FUZZING true When run processes, don't fuzz. Fuzzing will push back the contribution date if you don't have enough time visited on sites (~30 mins?)
LEDGER_RULES_TESTING ?? ??
LEDGER_SERVER_URL ?? ??
LEDGER_PUBLISHER_MIN_DURATION ?? ??
LEDGER_PUBLISHER_MIN_VISITS ?? ??
LEDGER_PUBLISHER_DEBUG ?? ??
LEDGER_PUBLISHER_VERBOSE ?? ??
LEDGER_REFERRAL_API_KEY ?? ??
LEDGER_REFERRAL_DELETE_TIME ?? ??
LEDGER_REFERRAL_CHECK_TIME number(int) We can control referral check time period. Default is 30 days.
LEDGER_NOTIFICATION true Runs onInterval every 5 seconds (Not recommended. For UI timing testing only. Default is 15 minutes).