{"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":77,"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\nstatic AFTER_LONG_HELP: &str = color_print::cstr!(\n    r#\"<bold><underline>Examples:</underline></bold>\n\n    $ <bold>mise toml get tools.python</bold>\n    3.12\n\"#\n);\n","sourceCodeStart":59,"sourceCodeEnd":90,"githubUrl":"https://github.com/jdx/mise/blob/9dcfcaa0dc8747a2577d3270b69bb9d8313b2807/src/cli/config/get.rs#L59-L90","documentation":"With no --file, mise config get calls top_toml_config() (src/config/mod.rs:2368), which returns the first TOML config in the loaded set (project mise.toml/mise.local.toml chain plus global TOML). If none exists - only .tool-versions, non-TOML files, or nothing at all - it returns None and the command bails 'No mise.toml file found' (src/cli/config/get.rs:77).","triggerScenarios":"'mise config get <key>' in a project with no mise.toml anywhere up the tree and no global TOML config; environments migrated from asdf carrying only .tool-versions; ~/.config/mise/config.toml never created and MISE_GLOBAL_CONFIG_FILE unset.","commonSituations":"asdf-era projects; fresh machines or container images; users whose entire configuration is .tool-versions or env vars.","solutions":["Create a mise.toml in the project (touch mise.toml, or run 'mise use <tool>' which creates one), then retry","Pass --file to point at an existing TOML config elsewhere","Check what mise currently loads: 'mise config' lists the config files in the loaded set"],"exampleFix":"# before\nmise config get tools.python\n# Error: No mise.toml file found\n\n# after\ntouch mise.toml   # or: mise use python@3.12\nmise config get tools.python","handlingStrategy":"validation","validationCode":"# bash: create-or-verify before reading\n[ -f mise.toml ] || touch mise.toml\nmise config get \"$KEY\"","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Include a mise.toml (even empty) in repo templates","Run 'mise use' once to create the config before scripting 'config get'"],"tags":["mise","config","missing-file","first-run"],"backgroundTag":"missing-config-file","analyzedSha":"9dcfcaa0dc8747a2577d3270b69bb9d8313b2807","analyzedAt":"2026-08-17T14:28:50.624Z","schemaVersion":2},"datasetVersion":"2026-08-21T13:17:26.733Z"}