sellstock-cli(1)
π sellstock-cli π
okay bestie, welcome to sellstock-cli from the General Commands Manual β she's the one who records FIFO stock or commodity sales, and she is lowkey a queen for it π
β¨ NAME β¨
sellstock-cli β record FIFO stock or commodity sales π
πΈ SYNOPSIS πΈ
sellstock-cli
no args, no flags, she just is π¦
π DESCRIPTION π
so sellstock-cli is a text program for quickly recording commodity sales in a ledger file. that's the whole vibe. fast little data entry bestie π
here's the little journey she takes you on:
- first, the program prompts you for the account in which the commodity was stored, the account for commissions, and the account to credit for gains and losses β plus the amount and name of the sold commodity, its sale price, and the commission. yes that's a lot of prompts, she's thorough, she's an overachiever, we love her for it β¨
- then, the program invokes
ledgerto list the dates and prices at which each commodity was purchased, lists them, subtracts the requested amount, and shows the result. math? done. by someone else. iconic π₯ - finally, the resulting transaction is shown, asking for a confirmation to save it to the journal. your finger, the enter key, the moment of commitment π«Ά
β οΈ important bestie: the program must be supplied with the location of the ledger file to work with. like, no ledger file, no sale, no nothing.
the location of the file is determined using the following mechanisms, in this order. the first mechanism which yields a result, wins. first come first served, periodt π
π ENVIRONMENT π
the following environment variable is recognized by this program:
LEDGER_FILEβ path to ledger file to work with ποΈ
π FILES π
the config file for ledger(1), namely the file .ledgerrc in the user's home directory, is scanned looking for the following option:
--file FILEβ path to ledger file to work with π
π SEE ALSO π
the whole little friend group, go say hi π
and that's the page, bestie!! this manual came from the General Commands Manual, version sellstock-cli(1), dated November 14 2022 β yes she's been slaying since 2022 and she's not stopping πΈπ β¨ go record those FIFO sales, you've got this π¦
π¦ where this page comes from
- debian bookworm: ledgerhelpers 0.3.10-2 Β· GPL-2.0-or-later
- debian trixie: ledgerhelpers 0.3.10-3 Β· GPL-2.0-or-later
- ubuntu noble: ledgerhelpers 0.3.10-2 Β· GPL-2.0-or-later
- ubuntu resolute: ledgerhelpers 0.3.10-3 Β· GPL-2.0-or-later
- ubuntu stonking: ledgerhelpers 0.3.10-3 Β· GPL-2.0-or-later
- Copyright 2022 Marcin Owsiany <porridge@debian.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms