{"record":{"id":"a33ed6cea2d5eb70","repo":"jdx/mise","slug":"no-mise-toml-file-found","errorCode":null,"errorMessage":"No mise.toml file found","messagePattern":"No mise\\.toml file found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/config/get.rs","lineNumber":103,"sourceCode":"                        .iter()\n                        .map(|v| match v {\n                            toml::Value::String(s) => format!(\"\\\"{s}\\\"\"),\n                            toml::Value::Integer(i) => i.to_string(),\n                            toml::Value::Boolean(b) => b.to_string(),\n                            toml::Value::Float(f) => f.to_string(),\n                            toml::Value::Datetime(d) => d.to_string(),\n                            toml::Value::Array(_) => \"[...]\".to_string(),\n                            toml::Value::Table(_) => \"{...}\".to_string(),\n                        })\n                        .collect();\n                    miseprintln!(\"[{}]\", elements.join(\", \"));\n                }\n                toml::Value::Table(t) => {\n                    miseprintln!(\"{}\", toml::to_string(t)?);\n                }\n            }\n        } else {\n            bail!(\"No mise.toml file found\");\n        }\n        Ok(())\n    }\n}\n","sourceCodeStart":85,"sourceCodeEnd":108,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/config/get.rs#L85-L108","documentation":"`mise config get` without a key needs a resolved mise.toml file to read and print. If no config file could be resolved at all (no explicit file, not requesting system config, and `top_toml_config()` found none), mise reports that no mise.toml file was found, since there is nothing to display.","triggerScenarios":"Running `mise config get` in a directory with no mise.toml anywhere up the tree, no global config, and no explicit `--file`/`--system` selection; e.g. in a fresh home directory, /tmp, or a CI checkout without config.","commonSituations":"Running the command outside any project; fresh containers before any `mise use`; expecting `mise config get` to print defaults when no config exists.","solutions":["cd into the project that has a mise.toml, or create one with `mise use <tool>`","Create a global config: `mise use -g node@20`","Pass an explicit `--file <path>` pointing at an existing config","Use `mise config ls` to see which config files mise currently detects"],"exampleFix":"// before\n$ cd /tmp && mise config get  # No mise.toml file found\n// after\n$ cd ~/myproject  # contains mise.toml\n$ mise config get","handlingStrategy":"fallback","validationCode":"mise config ls | grep -q . || echo \"no mise.toml detected in this directory tree\"","typeGuard":"has_mise_toml() { mise config ls 2>/dev/null | grep -q .; }","tryCatchPattern":"out=$(mise config get 2>&1) || { echo \"$out\"; mise config get -g 2>/dev/null || true; }","preventionTips":["Run `mise config get` only inside projects with mise.toml","Bootstrap projects with `mise use` before querying config","Pass `--file` explicitly in scripts","Treat absence of config as an expected, handled state"],"tags":["config","cli","missing-config"],"backgroundTag":"missing-config-file","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}