Skip to main content

CLI Overview

starward provides a comprehensive command-line interface for astronomical calculations, deep-sky object browsing, and observation planning.

Global Options

OptionDescription
--verbose, -vShow calculation steps
--jsonOutput in JSON format
--output, -oOutput format: plain, json, rich, 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

Core Calculations

GroupAliasDescription
timetTime conversions
coordscCoordinate transformations
anglesaAngular calculations
constantsconstAstronomical constants

Solar System

GroupAliasDescription
sunsSolar position and events
moonmLunar position and phases
planetspPlanetary positions

Deep-Sky Catalogs

GroupDescription
messierMessier catalog (110 objects)
ngcNGC catalog (~7,840 objects)
icIC catalog (~5,386 objects)
caldwellCaldwell catalog (109 objects)

Star Catalogs

GroupDescription
starsHipparcos bright star catalog

Observation Tools

GroupDescription
findCross-catalog object finder
listCustom observation lists
observerObserver profile management
visVisibility calculations

Examples

# Core calculations
starward t now # Current time
starward coords transform "12h +45d" --to galactic

# Solar system
starward sun rise --lat 40.7 --lon -74.0
starward planets position mars

# Deep-sky catalogs
starward messier show 31 # M31 Andromeda Galaxy
starward ngc list --type galaxy --magnitude 10
starward caldwell search sculptor

# Star catalog
starward stars show 32349 # Sirius
starward stars list --constellation Ori

# Cross-catalog search
starward find galaxies --mag 10 --constellation Vir
starward find bright # Naked-eye objects

# Observation lists
starward list create "Tonight"
starward list add "Tonight" M31 --notes "Check visibility"
starward list show "Tonight"

# Pipeline to jq
starward --json messier show 31 | jq '.coordinates'

Detailed References

Core & Solar System

Catalogs & Observation