Skip to content

CLI Reference

astro-up [OPTIONS] <COMMAND>

Global Flags

FlagShortDescription
--jsonOutput as JSON (for scripting)
--verbose-vShow debug output
--quiet-qSuppress non-error output
--config <PATH>Path to config database

Commands

catalog sync

Sync the catalog if cache is stale.

sh
astro-up catalog sync

catalog refresh

Force re-download the catalog regardless of TTL.

sh
astro-up catalog refresh

scan

Scan the system for installed astrophotography software. Uses WMI enumeration, then per-package detection chains (registry, PE headers, ASCOM profiles, known paths, driver store).

sh
astro-up scan

show

Show software status. Without arguments, lists all catalog packages.

sh
astro-up show                    # All packages
astro-up show installed          # Installed only
astro-up show outdated           # Packages with available updates
astro-up show nina-app           # Detail view for a package

install

Download and install a package.

sh
astro-up install nina-app                # Install (interactive by default)
astro-up install nina-app --dry-run      # Preview only
astro-up install nina-app -y             # Skip confirmation
FlagDescription
--dry-runShow what would be installed without executing
-y, --yesSkip confirmation prompt

update

Update installed packages.

sh
astro-up update nina-app               # Update one package
astro-up update --all                  # Update all outdated packages
astro-up update --all --dry-run        # Preview all updates
astro-up update nina-app --allow-major # Allow major version jumps
astro-up update nina-app -y            # Skip confirmation
FlagDescription
--allUpdate all outdated packages
--dry-runShow plan without executing
--allow-majorAllow updates across major versions
-y, --yesSkip confirmation prompt

Full-text search across package names, descriptions, tags, aliases, and publishers.

sh
astro-up search "plate solver"

config

Manage configuration (SQLite-backed key-value store).

sh
astro-up config init    # Generate default config
astro-up config show    # Show effective configuration

self-update

Update astro-up itself.

sh
astro-up self-update            # Check and install update
astro-up self-update --dry-run  # Check only

lifecycle-test

Run a full lifecycle test for a package (download, install, detect, uninstall). Used by CI to validate manifests.

sh
astro-up lifecycle-test nina-app --manifest-path ./manifests
astro-up lifecycle-test nina-app --manifest-path ./manifests --dry-run
astro-up lifecycle-test nina-app --manifest-path ./manifests --version 3.1.2
FlagDescription
--manifest-path <DIR>Path to manifests repo checkout (required)
--version <VER>Specific version to test (default: latest)
--install-dir <DIR>Install directory for download-only packages
--catalog-path <FILE>Path to compiled catalog.db for version resolution
--dry-runDownload and probe only, skip install/uninstall
--report-file <FILE>Write JSON report to file

Exit Codes

CodeMeaning
0Success
1General error
2Cancelled (Ctrl+C)
3Invalid arguments
4Network error
5No updates available

Licensed under Apache-2.0