|Docs

railway templates

Discover published Railway templates from the CLI. The templates command groups subcommands for finding templates that you can deploy from the dashboard or through the Railway API.

You can also call the command as railway template. Both forms behave identically.

Usage

Subcommands

SubcommandAliasesDescription
searchfind, list, lsSearch published templates.

Search published Railway templates. The command works in two modes:

  • In a terminal (TTY), it opens a command-palette-style picker that updates as you type.
  • Outside a terminal, or when --json is set, it prints results to stdout for use in scripts and agents.

The picker is seeded with the optional QUERY argument. Pressing Enter selects the highlighted template. The command does not require authentication.

Usage

Arguments

ArgumentDescription
QUERYSearch term. Seeds the picker in TTY mode.

Options

FlagDescription
--jsonPrint results as JSON. Disables the interactive picker.
--limit <LIMIT>Number of results to request. Defaults to 20. Maximum 50.
--after <CURSOR>Fetch the next page using pageInfo.endCursor from a previous response.
--category <CATEGORY>Filter by template category.
--verified <BOOL>Filter by verification state. Accepts true or false.

Examples

Open the interactive picker

Search with a seed query

Filter to verified templates

Filter by category

Paginate through results

Use the endCursor value from the previous JSON response as the next --after value.