{"record":{"id":"b83c0d63604b8241","repo":"nikivdev/code","slug":"railway-cli-not-found-install-npm-install-g-ra","errorCode":null,"errorMessage":"Railway CLI not found. Install: npm install -g @railway/cli","messagePattern":"Railway CLI not found\\. Install: npm install -g @railway/cli","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/deploy.rs","lineNumber":1607,"sourceCode":"                Some(&result.selected_keys),\n            )?;\n        }\n    }\n\n    println!(\"\\n✓ Cloudflare deploy setup complete.\");\n    Ok(())\n}\n\n/// Deploy to Railway.\nfn deploy_railway(project_root: &Path, config: Option<&Config>) -> Result<()> {\n    let default_rail = RailwayConfig::default();\n    let rail_cfg = config\n        .and_then(|c| c.railway.as_ref())\n        .unwrap_or(&default_rail);\n\n    // Check railway CLI\n    if which::which(\"railway\").is_err() {\n        bail!(\"Railway CLI not found. Install: npm install -g @railway/cli\");\n    }\n\n    // Link project if specified\n    if let (Some(project), Some(env)) = (&rail_cfg.project, &rail_cfg.environment) {\n        println!(\"==> Linking to Railway project...\");\n        let status = Command::new(\"railway\")\n            .args([\"link\", project, \"--environment\", env])\n            .current_dir(project_root)\n            .status()?;\n        if !status.success() {\n            bail!(\"Failed to link Railway project\");\n        }\n    }\n\n    // Set env vars from file\n    if let Some(env_file) = &rail_cfg.env_file {\n        let env_path = project_root.join(env_file);\n        if env_path.exists() {","sourceCodeStart":1589,"sourceCodeEnd":1625,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/deploy.rs#L1589-L1625","documentation":"Error \"Railway CLI not found. Install: npm install -g @railway/cli\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/deploy.rs:1607 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a747e741ae92c09071d0ae946ab48488adcff1ce","analyzedAt":"2026-09-01T22:43:55.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}