7 months ago
Currently, when configuring deployments through Railway's UI, there's no straightforward way to export these settings into a railway.json configuration file. Users who want to transition from UI-based configuration to config-as-code must manually recreate their settings, which is a time-consuming and error-prone process. This process often involves:
Consulting the JSON schema repeatedly to ensure proper syntax.
Trial and error to match UI settings with configuration properties
Proposed Solution
Add an "Export as railway.json" button or "Copy as JSON" option in the deployment settings interface that generates properly formatted configuration code based on the current UI settings. This would allow users to:
Configure their deployment through the UI
Click the export button to generate the equivalent
railway.jsoncodeCopy the generated configuration directly into their project
Implementation Details
The export should include all relevant deployment settings (environment variables, build settings, deploy settings, etc.)
Generated JSON should follow Railway's configuration schema exactly
Include helpful comments in the exported JSON to explain what each section does
Option to export either the full configuration or just specific sections
0 Threads mention this feature
2 Replies
6 months ago
+1 to this. It would reduce risk and save time. After a day configuring in the UI, I just want to click “Export” to get a railway.json and commit it to GitHub as my own version.
Even better: built-in version history for railway.json in the UI (like Google Sheets or n8n) so I can snapshot before changes and rollback if needed. Ideally railway.json becomes the single source of truth—capturing all deployment data—and can be imported into any account/project to share setups easily (with safe handling of secrets).railway.json is basically a Jira-friendly receipt — drop it in a ticket and nobody can say I was just watching logs all day
. Exporting railway.json gives me a tidy “proof-of-work” for Jira — instant diffs, instant bragging rights. Also, railway.json makes a great paper trail for Jira; my PM can see real diffs, not just my coffee consumption. 
6 months ago
Hello,
This is already possible.
Open your latest deployment and click the Details tab, from there you can switch to JSON mode, and then copy the JSON.
