[GNC] gnucash-cli options - accounts, dates and other settings

Christopher Lam christopher.lck at gmail.com
Tue Aug 31 11:54:55 EDT 2021


There's no mechanism to modify report options from the command line. The
gnucash-cli is meant mainly to run reports with sensible defaults (eg
balance sheet) and saved reports (eg transaction report with modified
options).

On Tue, 31 Aug 2021, 5:53 pm flywire, <flywire0 at gmail.com> wrote:

> This report needs accounts and dates to be specified in Win10 and I'd like
> to tweak some other settings. "A datafile may be specified to describe some
> saved options." Where is the documentation for gnucash-cli ?
>
> ====================
>
> E:\>"C:\Program Files (x86)\gnucash\bin\gnucash-cli" --report run --name
> "2fe3b9833af044abb929a88d5a59620f" --output-file arg.html demo.gnucash
>
> In Browser:
> > Transaction Report:
> > No accounts selected
> > This report requires accounts to be selected in the report options.
> >
> > Edit report options
>
> E:\>"C:\Program Files (x86)\gnucash\bin\gnucash-cli" --report show --name
> "2fe3b9833af044abb929a88d5a59620f"
>
> * name: Transaction Report
>   guid: 2fe3b9833af044abb929a88d5a59620f
>
> E:\>"C:\Program Files (x86)\gnucash\bin\C"
> Missing command or option
>
> C:\Program Files (x86)\gnucash\bin\gnucash-cli [options] [datafile] -
> GnuCash, accounting for personal and small business finance:
>
> Common Options:
>   -h [ --help ]           Show this help message
>   -v [ --version ]        Show GnuCash version
>   --debug                 Enable debugging mode: provide deep detail in the
>                           logs.
>                           This is equivalent to: --log "=info" --log
> "qof=info"
>                           --log "gnc=info"
>   --extra                 Enable extra/development/debugging features.
>   --log arg               Log level overrides, of the form
>                           "modulename={debug,info,warn,crit,error}"
>                           Examples: "--log qof=debug" or "--log
>                           gnc.backend.file.sx=info"
>                           This can be invoked multiple times.
>   --logto arg             File to log into; defaults to
> "/tmp/gnucash.trace";
>                           can be "stderr" or "stdout".
>   --gsettings-prefix arg  Set the prefix for gsettings schemas for
> gsettings
>                           queries. This can be useful to have a different
>                           settings tree while debugging.
>
> Price Quotes Retrieval Options:
>   -Q [ --quotes ] arg     Execute price quote related commands. Currently
> only
>                           one command is supported.
>
>                             get: Fetch current quotes for all foreign
>                                  currencies and stocks in the given GnuCash
>                                  datafile.
>
>   --namespace arg         Regular expression determining which namespace
>                           commodities will be retrieved for
>
> Report Generation Options:
>   -R [ --report ] arg     Execute report related commands. The following
>                           commands are supported.
>
>                             list: Lists available reports.
>                             show: Describe the options modified in the
> named
>                                   report. A datafile may be specified to
>                                   describe some saved options.
>                             run: Run the named report in the given GnuCash
>                                  datafile.
>
>   --name arg              Name of the report to run
>
>   --export-type arg       Specify export type
>
>   --output-file arg       Output file for report
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


More information about the gnucash-user mailing list