Documentation

This section reflects the current CLI behavior in this repository (checked against command help and source on March 3, 2026).

Install Import Export Serve safely

Publishing and safety

  • Exporting for format details and scope behavior.
  • Serving for localhost/static-dir usage.
  • Security for visibility defaults and doctor checks.
  • Self-hosting for optional nginx reverse proxy setup.

Command map

link-garden init <dir>
link-garden add --url <url> [--title ...] [--tags ...] [--notes ...] [--folder ...]
link-garden import-chrome --bookmarks-file <path> [--dedupe by_url|by_guid|both] [--dry-run] [--watch]
link-garden list [--search ...] [--tag ...] [--folder ...] [--visibility ...]
link-garden set-visibility --id <id> --visibility private|unlisted|public
link-garden export --format markdown|json|html --out <dir> [--scope public|unlisted|all] [--dangerous-all]
link-garden serve [--repo-dir .] [--port 8000] [--export-mode public|unlisted|all] [--allow-remote]
link-garden doctor [--rebuild-index] [--fix]
link-garden rebuild-index [--dry-run]
link-garden duplicates [--include-archived]
link-garden backup --out <dir> [--format zip|tar|copy]
link-garden hub export --out <dir>