<p>Yes, all options can be specified either in bitcoin.conf or as command-line parameters. If an option appears in both then command line takes precedence. Boolean command-line options set to true can omit the value (i.e. both <code>-txindex</code> and <code>-txindex=1</code> works).</p>

CC BY-SA 4.0
2024-02-15T01:33:39.140Z
2024-02-15T01:33:39.140Z
Vojtěch Strnad
<p>Can I specify all startup options like <code>-nodebuglogfile</code> or <code>-txindex</code> in bitcoin.conf file as <code>nodebuglogfile = 0</code>, <code>txindex = 0</code>? Can all startup options/flags without any parameter equivalent to setting them 0 or 1 in bitcoin.conf</p>

<bitcoin-core><bitcoin.conf>
Specify options as startup flag or conf file in bitcoin core?
sanket1729
# Specify options as startup flag or conf file in bitcoin core?

(Asked by: username_0 on 2024-02-15)

Can I specify all startup options like `-nodebuglogfile` or `-txindex` in bitcoin.conf file as `nodebuglogfile = 0`, `txindex = 0`? Can all startup options/flags without any parameter equivalent to setting them 0 or 1 in bitcoin.conf

**Tags:** bitcoin-core, bitcoin.conf


---

## 1 answers

### Answer by username_1 on 2024-02-15. Score: 4 | Accepted answer

Yes, all options can be specified either in bitcoin.conf or as command-line parameters. If an option appears in both then command line takes precedence. Boolean command-line options set to true can omit the value (i.e. both `-txindex` and `-txindex=1` works).


---

