Skip to content

Add template search command#871

Merged
m-abdelwahab merged 2 commits intomasterfrom
mahmoud/template-search
May 5, 2026
Merged

Add template search command#871
m-abdelwahab merged 2 commits intomasterfrom
mahmoud/template-search

Conversation

@m-abdelwahab
Copy link
Copy Markdown
Collaborator

@m-abdelwahab m-abdelwahab commented May 5, 2026

Summary

Adds a new railway templates search command backed by the Railway API templateSearch query.

The command supports an interactive TTY picker for humans, with a minimal command-palette-style search experience, while also supporting non-interactive usage through plain output and --json for agents or scripts. It includes pagination, category, verification, and limit flags, and uses the public GraphQL client so template search does not require login.

railway templates search --help
Search published templates

Usage: railway templates search [OPTIONS] [QUERY]

Arguments:
  [QUERY]  Search term. Seeds the picker in TTY mode

Options:
      --json                 Print the GraphQL response shape as JSON
      --limit <LIMIT>        Number of results to request [default: 20]
      --after <AFTER>        Fetch the next page using pageInfo.endCursor
      --category <CATEGORY>  Filter by template category
      --verified <VERIFIED>  Filter by verification state [possible values: true, false]
  -h, --help                 Print help
  -V, --version              Print version

Demo

template.search.in.CLI.mp4

@m-abdelwahab m-abdelwahab added the release/minor Author minor release label May 5, 2026
@m-abdelwahab m-abdelwahab merged commit e445022 into master May 5, 2026
6 of 7 checks passed
@m-abdelwahab m-abdelwahab deleted the mahmoud/template-search branch May 5, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/minor Author minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant