LinuxCommandLibrary

gnucash-cli

command-line interface for GnuCash reports and quotes

TLDR

Update quotes for all securities

$ gnucash-cli --quotes get [file.gnucash]
copy
Show Finance::Quote version and sources
$ gnucash-cli --quotes info
copy
Dump quotes for specific securities
$ gnucash-cli --quotes dump [namespace] [symbol1] [symbol2]
copy
List available reports
$ gnucash-cli --report list
copy
Run a report
$ gnucash-cli --report run --name "[Balance Sheet]" [file.gnucash]
copy
Export report to file
$ gnucash-cli --report run --name "[report]" --output-file [output.html] [file.gnucash]
copy

SYNOPSIS

gnucash-cli [options] [datafile]

DESCRIPTION

gnucash-cli is the command-line interface for GnuCash, a personal and small business financial accounting application. It operates in two modes: quotes mode for fetching and updating security prices, and report mode for generating financial reports. This allows automation of price updates and report generation without opening the GUI.

PARAMETERS

-h, --help

Show help message.
-v, --version
Show GnuCash version.
--quotes command
Quotes mode: info, get, dump.
-R, --report command
Report mode: list, show, run.
--name name
Report name for run command.
--output-file file
Output file for report.
--export-type type
Export format type.
--debug
Enable debugging mode.
--log arg
Log level overrides.
--logto file
File to log into.

CAVEATS

Quotes functionality requires Finance::Quote to be properly configured. Database URIs are supported for MySQL and PostgreSQL backends.

SEE ALSO

gnucash(1), ledger(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community