Skip to main content

CLI Overview

starward provides a comprehensive command-line interface for astronomical calculations.

Global Options

OptionDescription
--verbose, -vShow calculation steps
--jsonOutput in JSON format
--output, -oOutput format: plain, json, latex
--precision, -pPrecision level (see below)
--versionShow version
--helpShow help

Precision Levels

LevelDecimalsUse Case
compact2Quick reference
display4Readable output
standard6Default
high10Research
full15Maximum precision
starward --precision high sun position

Command Groups

GroupAliasDescription
timetTime conversions
coordscCoordinate transformations
anglesaAngular calculations
sunsSolar position and events
moonmLunar position and phases
planetspPlanetary positions
observeroObserver management
visvVisibility calculations
constantsconstAstronomical constants

Examples

# Using aliases
starward t now # time now
starward p all # planets all
starward s rise # sun rise

# Combining options
starward -v --json planets position mars

# Pipeline to jq
starward planets all --json | jq '.planets.jupiter'

Detailed References