stars (main command)
The main stars command loads your local database, applies filters, and outputs results in your chosen format.
stars [query] [flags]Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
query | string? | Optional search query — matches against name, full_name, description, and topics |
Output flags
Section titled “Output flags”| Flag | Description |
|---|---|
--json | Output as JSON |
--csv | Output as CSV |
--md | Output as Markdown table |
--nuon | Output as NUON (Nushell Object Notation) |
--dataframe | Output as Polars DataFrame (requires nu_plugin_polars) |
--lazyframe | Output as Polars LazyFrame (requires nu_plugin_polars) |
--raw | Raw database output — all columns, no formatting |
Filter and sort flags
Section titled “Filter and sort flags”| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--no-defaults | Skip default filters (show archived, stale, excluded languages) | |||
--columns | -c | list<string> | config value | Columns to display |
--limit | -l | int | unlimited | Limit number of results |
--sort | -s | string | "stars" | Sort by: stars, forks, pushed, created, name, language, owner |
--reverse | -r | true | Reverse sort order |
Examples
Section titled “Examples”# Show all stars with default formattingstars
# Search for CLI toolsstars "cli tool"
# Top 20 repos by star countstars --limit 20
# Output as JSONstars --json | save stars.json
# Show all repos (no default filters)stars --no-defaults
# Show only specific columnsstars --columns [owner name language stars]
# Sort by last push datestars --sort pushed
# Pipe to Nushell for further filteringstars --raw | where language == "Rust" | where stargazers_count > 1000How it works
Section titled “How it works”- Checks for migration from legacy
gh-starson first use - Loads all data from SQLite via
core/storage.nu - Applies default filters (unless
--no-defaults): excludes archived repos, repos not pushed in 365+ days, and certain languages - Applies search query if provided (case-insensitive match against name, full_name, description, topics)
- Sorts by the chosen field (default: star count, descending)
- Applies
--limitif set - Formats output based on chosen format flag (default: colored table)
Version
Section titled “Version”stars versionReturns a record with module version, Nushell version, and Polars plugin status:
╭─────────┬───────────────╮│ version │ 3.0.0 ││ nushell │ 0.110.0 ││ polars │ not installed │╰─────────┴───────────────╯stars helpPrints detailed usage information for all commands, flags, and examples.