Skip to content

stars (main command)

The main stars command loads your local database, applies filters, and outputs results in your chosen format.

Terminal window
stars [query] [flags]
ParameterTypeDescription
querystring?Optional search query — matches against name, full_name, description, and topics
FlagDescription
--jsonOutput as JSON
--csvOutput as CSV
--mdOutput as Markdown table
--nuonOutput as NUON (Nushell Object Notation)
--dataframeOutput as Polars DataFrame (requires nu_plugin_polars)
--lazyframeOutput as Polars LazyFrame (requires nu_plugin_polars)
--rawRaw database output — all columns, no formatting
FlagShortTypeDefaultDescription
--no-defaultsSkip default filters (show archived, stale, excluded languages)
--columns-clist<string>config valueColumns to display
--limit-lintunlimitedLimit number of results
--sort-sstring"stars"Sort by: stars, forks, pushed, created, name, language, owner
--reverse-rtrueReverse sort order
Terminal window
# Show all stars with default formatting
stars
# Search for CLI tools
stars "cli tool"
# Top 20 repos by star count
stars --limit 20
# Output as JSON
stars --json | save stars.json
# Show all repos (no default filters)
stars --no-defaults
# Show only specific columns
stars --columns [owner name language stars]
# Sort by last push date
stars --sort pushed
# Pipe to Nushell for further filtering
stars --raw | where language == "Rust" | where stargazers_count > 1000
  1. Checks for migration from legacy gh-stars on first use
  2. Loads all data from SQLite via core/storage.nu
  3. Applies default filters (unless --no-defaults): excludes archived repos, repos not pushed in 365+ days, and certain languages
  4. Applies search query if provided (case-insensitive match against name, full_name, description, topics)
  5. Sorts by the chosen field (default: star count, descending)
  6. Applies --limit if set
  7. Formats output based on chosen format flag (default: colored table)
Terminal window
stars version

Returns a record with module version, Nushell version, and Polars plugin status:

╭─────────┬───────────────╮
│ version │ 3.0.0 │
│ nushell │ 0.110.0 │
│ polars │ not installed │
╰─────────┴───────────────╯
Terminal window
stars help

Prints detailed usage information for all commands, flags, and examples.