Skip to content

Installation

  • Nushell 0.110.0+ — the module uses features from recent Nushell releases
  • gh CLI — GitHub’s official CLI, used for API access
  • nu_plugin_polars (optional) — only needed for --dataframe / --lazyframe output
  1. Clone the repository into your Nushell modules directory:

    Terminal window
    git clone https://github.com/danielbodnar/stars.nu ~/.config/nushell/modules/stars

    Or wherever you keep Nushell modules. The path just needs to be accessible via use.

  2. Authenticate with GitHub using the gh CLI:

    Terminal window
    gh auth login

    Follow the prompts to authenticate. The module uses gh api under the hood, so it inherits your gh authentication.

  3. Load the module in your Nushell session:

    Terminal window
    use ~/.config/nushell/modules/stars *

    To load it automatically, add that line to your config.nu or env.nu.

For DataFrame/LazyFrame output (used with --dataframe and --lazyframe flags):

Terminal window
cargo install nu_plugin_polars
plugin add ~/.cargo/bin/nu_plugin_polars

After installing, restart Nushell or run plugin use polars.

Terminal window
stars version

You should see output like:

╭─────────┬────────────────╮
│ version │ 3.0.0 │
│ nushell │ 0.110.0 │
│ polars │ not installed │
╰─────────┴────────────────╯