railway init
Create a new Railway project and link it to the current directory.
Usage
Aliases
railway new
Options
| Flag | Description |
|---|---|
-n, --name <NAME> | Project name (randomly generated if not provided) |
-w, --workspace <ID|NAME> | Workspace to create the project in |
--json | Output in JSON format |
Examples
Interactive project creation
Prompts you to select a workspace and enter a project name.
Create with specific name
Create in specific workspace
Non-interactive (CI/CD)
Output
After creation, the project is automatically linked to your current directory. You can start deploying with railway up.