Skip to content

stars export

All export commands load the full database and write to files. By default, output goes to $XDG_DATA_HOME/.stars/exports/ with a timestamp in the filename. Use --output (-o) to specify a custom path.

Terminal window
stars export csv
stars export csv --output ~/stars.csv
stars export csv --columns [name url language stars]
FlagShortTypeDescription
--output-opathCustom output path
--columns-clist<string>Specific columns to include

Exported columns default to: name, full_name, url, description, language, stars, forks, created_at, updated_at, owner, topics, license, archived, is_fork.

Terminal window
stars export json
stars export json --pretty
stars export json --minimal --pretty --output ~/stars.json
FlagShortDescription
--output-oCustom output path
--minimal-mExport only name, url, description, language, topics
--pretty-pPretty-print with indentation

Exports to Nushell Object Notation — useful for re-importing into Nushell later.

Terminal window
stars export nuon
stars export nuon --output ~/stars.nuon
FlagShortDescription
--output-oCustom output path

Generates a Markdown table. Great for pasting into GitHub issues, PRs, or documentation.

Terminal window
stars export md
stars export md --columns [name description language stars]
stars export md --output ~/stars.md
FlagShortTypeDescription
--output-opathCustom output path
--columns-clist<string>Columns to include (default: name, description, language, stars)

Exports as a Firefox-compatible HTML bookmarks file. Supports grouping by language, owner, topic, year, or no grouping.

Terminal window
stars export firefox
stars export firefox --group-by owner
stars export firefox --include-archived --include-forks
FlagShortTypeDefaultDescription
--output-opathautoCustom output path
--group-by-gstring"language"Grouping: language, owner, topic, year, none
--include-archivedfalseInclude archived repos
--include-forksfalseInclude forked repos

Import the exported file into Firefox via Bookmarks > Manage Bookmarks > Import and Backup > Import Bookmarks from HTML.

Same as Firefox but generates Chrome-compatible HTML.

Terminal window
stars export chrome
stars export chrome --group-by topic
stars export chrome --output ~/chrome_bookmarks.html

Flags are identical to the Firefox export. Import into Chrome via chrome://bookmarks > Import bookmarks.