Skip to content

cents portfolio

Manage portfolios (separate database files).

Switch between different portfolios for tracking separate accounts or users. Use ‘cents portfolio add’ to register a database file, then ‘cents portfolio use’ to switch between them.

Terminal window
cents portfolio <subcommand> [OPTIONS] [ARGS]...
  • cents portfolio add — Register a new portfolio.
  • cents portfolio current — Show the currently active portfolio.
  • cents portfolio list — List all registered portfolios.
  • cents portfolio remove — Remove a portfolio (does not delete the database file).
  • cents portfolio use — Switch to a portfolio.

Register a new portfolio.

NAME is a short identifier (e.g., ‘personal’, ‘ira’, ‘friend’). PATH is the path to the database file.

Example: cents portfolio add friend ~/Downloads/friend.db

Synopsis

Terminal window
cents portfolio add NAME PATH

Arguments

ArgumentTypeRequired
NAMEtextyes
PATHpathyes

Example

Terminal window
cents portfolio add friend ~/Downloads/friend.db

Show the currently active portfolio.

Synopsis

Terminal window
cents portfolio current

Example

Terminal window
cents portfolio current

List all registered portfolios.

Synopsis

Terminal window
cents portfolio list

Example

Terminal window
cents portfolio list

Remove a portfolio (does not delete the database file).

Example: cents portfolio remove friend

Synopsis

Terminal window
cents portfolio remove NAME

Arguments

ArgumentTypeRequired
NAMEtextyes

Example

Terminal window
cents portfolio remove friend

Switch to a portfolio.

All subsequent cents commands will use this portfolio.

Example: cents portfolio use friend

Synopsis

Terminal window
cents portfolio use NAME

Arguments

ArgumentTypeRequired
NAMEtextyes

Example

Terminal window
cents portfolio use friend
Not financial advice. Cents is an educational and research tool for tracking your own investment theses. Outputs are model-generated and may be inaccurate. You are solely responsible for your own investment decisions.