Skip to content

Lens Discovery Commands

Browse and discover public lenses on the LenserFight platform. This command group covers public discovery — searching, filtering, sorting, and connecting to lenses created by other users or communities.

For version and resource management of lenses you own, see Lens Commands.

bash
lenserfight lenses <subcommand>
lf lenses <subcommand>

lenserfight lenses

List public lenses with optional filters and sorting.

bash
lenserfight lenses
lenserfight lenses --sort popularity
lenserfight lenses --sort date
lenserfight lenses --tag typescript
lenserfight lenses --author @chainabit
lenserfight lenses --limit 50 --json
FlagRequiredDefaultDescription
--sortNodateSort order: date, popularity, trending
--tagNoFilter by tag slug
--authorNoFilter by lenser handle (e.g. @alice)
--communityNoFilter by community slug
--limitNo20Number of results (max 100)
--offsetNo0Pagination offset
--jsonNofalseOutput as JSON

Output columns: ID, Slug, Title, Author, Tags, Score, Updated At

Sort values

ValueBehaviour
dateMost recently updated first
popularitySorted by combined usage score (uses + forks)
trendingHot score weighted over the past 7 days

Full-text search across public lens titles and descriptions.

bash
lenserfight lenses search "code review"
lenserfight lenses search "sql optimizer" --tag databases --json
FlagRequiredDefaultDescription
--tagNoNarrow to a specific tag slug
--limitNo10Number of results
--jsonNofalseOutput as JSON

lenserfight lenses view <lens-slug-or-id>

Show detailed metadata for a single public lens.

bash
lenserfight lenses view code-reviewer
lenserfight lenses view abc123-uuid --json

Output includes: lens ID, slug, title, description, author handle, tags, latest version ID, resource slots, usage count, created and updated timestamps.


lenserfight lenses fork <lens-slug-or-id>

Clone a public lens into your own library. Forked lenses start as private drafts.

bash
lenserfight lenses fork code-reviewer
lenserfight lenses fork abc123-uuid --name "My Code Reviewer"
FlagRequiredDefaultDescription
--nameNoOriginal titleDisplay name for the forked lens

Forking preserves the latest published version as your initial draft. Attribution to the original lens is recorded automatically.


lenserfight lenses use <lens-slug-or-id>

Execute a public lens directly without forking it. Runs against the current published version.

bash
lenserfight lenses use code-reviewer --input "Review this function for security issues."
lenserfight lenses use abc123-uuid --ollama --model llama3.2
lenserfight lenses use code-reviewer --byok --provider openai --model gpt-4o
FlagRequiredDefaultDescription
--inputYesInput text to pass to the lens
--ollamaNofalseExecute using local Ollama
--modelNoprovider defaultModel to use
--byokNofalseUse your own API key
--providerNoProvider name when using --byok
--jsonNofalseOutput result as JSON

Shortcut for lenserfight lenses --sort trending. Shows the top lenses by hot score in the last 7 days.

bash
lenserfight lenses trending
lenserfight lenses trending --tag ai --limit 10 --json

lenserfight lenses starred

List lenses you have starred. Requires authentication.

bash
lenserfight lenses starred
lenserfight lenses starred --json

lenserfight lenses star <lens-slug-or-id>

Star or unstar a public lens.

bash
lenserfight lenses star code-reviewer
lenserfight lenses star code-reviewer --remove
FlagRequiredDefaultDescription
--removeNofalseUnstar the lens

URL pattern

Public lenses are accessible on the web at:

https://lenserfight.com/:lens-slug

For example, a lens with slug code-reviewer is available at:

https://lenserfight.com/code-reviewer

When referencing a lens in any LenserFight surface (CLI, API, or web), you can use either the slug or the UUID. The slug is stable across versions; the UUID is canonical.