1
Shell Commands
samantha edited this page 2026-03-27 10:44:37 +00:00
Shell Commands
The interactive shell runs in the same terminal as the HTTP server. Type help to see available commands at any time.
Reference
| Command | Description |
|---|---|
| add-company | Add a new company interactively |
| list-companies | List all companies with price and share count |
| add-currency | Add a new currency interactively |
| list-currency | List all currencies with their IDs |
| add-revenue | Add a revenue entry interactively |
| list-revenue | List revenue entries for a company/period |
| help | Show all available commands |
| exit | Quit |
Example Session
> add-currency Code: DKK Name: Danish Krone Currency added.> list-currency ID Code Name 1 DKK Danish Krone
> add-company Name: Novo Nordisk Shares outstanding: 4442064180 Price: 251.00 Currency ID: 1 Company added.
> list-companies ID Name Price Shares Outstanding Currency 1 Novo Nordisk 251.00 4442064180 1
Notes
- The shell and HTTP API share the same database connection — changes made via either are immediately visible to the other.
sum-revenueis listed in thehelpoutput but is not yet wired to a shell handler; use the REST API for revenue queries in the meantime.