[On trunk][1] is an enhancement to the CLI that adds the --bom option to the ".excel", ".once", and ".output" commands. [1]: https://www.sqlite.org/src/info/d5b0def96ba6d90f Please rebuild using the latest trunk sources and report back whether or not this new feature is working for you.