2 months ago
I have a system largely setup and want to create a template.json file that represents that system, refine it and then use it to create a new instance of the project and to share it with other users. Or to be able to build the template.json manually and import it into my account (private template) or publish it in the marketplace to share it. But I can't seem to find any place where you can use a template.json file directly, you can only generate a new template by exporting an existing system to one and as far as I can tell that's a one way operation. Is there a template management API I'm unaware of?
2 Replies
2 months ago
Railway doesn't actually have a template.json file format—templates are created and managed entirely through the dashboard UI, not via importable files. There's no template management API for programmatic creation either.
What you might be thinking of is railway.json (or railway.toml), which is our Config as Code feature for individual service deployment settings. That's different from templates though—it handles things like build commands, start commands, and healthcheck paths for a single service, not multi-service project blueprints.
For your workflow, the closest option is to set up your project how you want it, then go to your project's Settings and click "Generate Template from Project." From there you can refine the template in the Template Composer before publishing or sharing it. You can also create templates from scratch in that same workspace by adding services from GitHub repos or Docker images and configuring their variables.
Once you have a template, you get a shareable URL and can publish it to the marketplace if you want others to discover it.
Does that work?
Status changed to Awaiting User Response Railway • about 2 months ago
angelo-railway
Railway doesn't actually have a template.json file format—templates are created and managed entirely through the dashboard UI, not via importable files. There's no template management API for programmatic creation either.What you might be thinking of is railway.json (or railway.toml), which is our Config as Code feature for individual service deployment settings. That's different from templates though—it handles things like build commands, start commands, and healthcheck paths for a single service, not multi-service project blueprints.For your workflow, the closest option is to set up your project how you want it, then go to your project's Settings and click "Generate Template from Project." From there you can refine the template in the Template Composer before publishing or sharing it. You can also create templates from scratch in that same workspace by adding services from GitHub repos or Docker images and configuring their variables.Once you have a template, you get a shareable URL and can publish it to the marketplace if you want others to discover it. Does that work?
a month ago
Thanks, its not optimal for building out my template and variables (had an agent setup the infra so its outside the loop in the UI) but thanks!
Status changed to Awaiting Railway Response Railway • about 1 month ago
Status changed to Solved noahd • about 1 month ago