nikivdev/code · error
Railway CLI not found. Install: npm install -g @railway/cli
Error message
Railway CLI not found. Install: npm install -g @railway/cli
What it means
Error "Railway CLI not found. Install: npm install -g @railway/cli" thrown in nikivdev/code.
Source
Thrown at src/deploy.rs:1607
Some(&result.selected_keys),
)?;
}
}
println!("\n✓ Cloudflare deploy setup complete.");
Ok(())
}
/// Deploy to Railway.
fn deploy_railway(project_root: &Path, config: Option<&Config>) -> Result<()> {
let default_rail = RailwayConfig::default();
let rail_cfg = config
.and_then(|c| c.railway.as_ref())
.unwrap_or(&default_rail);
// Check railway CLI
if which::which("railway").is_err() {
bail!("Railway CLI not found. Install: npm install -g @railway/cli");
}
// Link project if specified
if let (Some(project), Some(env)) = (&rail_cfg.project, &rail_cfg.environment) {
println!("==> Linking to Railway project...");
let status = Command::new("railway")
.args(["link", project, "--environment", env])
.current_dir(project_root)
.status()?;
if !status.success() {
bail!("Failed to link Railway project");
}
}
// Set env vars from file
if let Some(env_file) = &rail_cfg.env_file {
let env_path = project_root.join(env_file);
if env_path.exists() {View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/deploy.rs:1607 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01).
Data as JSON: /api/errors/b83c0d63604b8241.
Report an issue: GitHub.