Cali is a terminal-based calculator that interprets natural language for real-time calculations, including arithmetic, currency conversions, unit conversions, and date/time operations.
brew tap borhansaflo/cali
brew install calicargo install caliDownload the latest release for your platform from the releases page
-
Clone the repository:
git clone https://github.com/BorhanSaflo/cali.git cd cali -
Build with Cargo:
cargo build --release
-
The compiled binary will be available at
target/release/cali
cargo install --path .Start Cali by running:
./target/release/cali
# Or if installed with cargo install
caliType expressions and see results instantly:
10 + 5 # 15
20 * 3 # 60
100 / 4 # 25
Assign values to variables and use them in calculations:
price = 10 USD
tax = 7%
total = price + price * tax # $10.70
Convert between various units:
5 km in miles # 3.10686 mi
10 USD in EUR # €8.50
350 ml in cups # 1.47981 cup
Perform date-related calculations:
next friday # 2025-04-18
next monday + 2 weeks # 2025-05-05
Calculate percentages:
20% of 50 # 10
price - 15% # $8.50
Enter: Add a new lineUp/Down: Navigate through linesLeft/Right: Move cursor horizontallyHome/End: Move to start/end of lineBackspace/Delete: Delete charactersCtrl+q: Quit the applicationCtrl+s: Save the current file
