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.
Synopsis
Section titled “Synopsis”cents portfolio <subcommand> [OPTIONS] [ARGS]...Subcommands
Section titled “Subcommands”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.
cents portfolio add
Section titled “cents portfolio add”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
cents portfolio add NAME PATHArguments
| Argument | Type | Required |
|---|---|---|
NAME | text | yes |
PATH | path | yes |
Example
cents portfolio add friend ~/Downloads/friend.dbcents portfolio current
Section titled “cents portfolio current”Show the currently active portfolio.
Synopsis
cents portfolio currentExample
cents portfolio currentcents portfolio list
Section titled “cents portfolio list”List all registered portfolios.
Synopsis
cents portfolio listExample
cents portfolio listcents portfolio remove
Section titled “cents portfolio remove”Remove a portfolio (does not delete the database file).
Example: cents portfolio remove friend
Synopsis
cents portfolio remove NAMEArguments
| Argument | Type | Required |
|---|---|---|
NAME | text | yes |
Example
cents portfolio remove friendcents portfolio use
Section titled “cents portfolio use”Switch to a portfolio.
All subsequent cents commands will use this portfolio.
Example: cents portfolio use friend
Synopsis
cents portfolio use NAMEArguments
| Argument | Type | Required |
|---|---|---|
NAME | text | yes |
Example
cents portfolio use friend