jdx/mise · error
No mise.toml file found
Error message
No mise.toml file found
What it means
`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.
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
Example fix
// before $ cd /tmp && mise config get # No mise.toml file found // after $ cd ~/myproject # contains mise.toml $ mise config get
Defensive patterns
Strategy: fallback
Validate before calling
mise config ls | grep -q . || echo "no mise.toml detected in this directory tree"
Type guard
has_mise_toml() { mise config ls 2>/dev/null | grep -q .; } Try / catch
out=$(mise config get 2>&1) || { echo "$out"; mise config get -g 2>/dev/null || true; } Prevention
- 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
When it happens
Trigger: 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.
Common situations: Running the command outside any project; fresh containers before any `mise use`; expecting `mise config get` to print defaults when no config exists.
Related errors
- No mise.toml file found
- cannot export ' ': use a shorthand attribute such as…
- Check command must not be empty
- collection updates require scalar or array values
- config file not found
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/a33ed6cea2d5eb70.
Report an issue: GitHub.
Appendix: source
Thrown at src/cli/config/get.rs:103
.iter()
.map(|v| match v {
toml::Value::String(s) => format!("\"{s}\""),
toml::Value::Integer(i) => i.to_string(),
toml::Value::Boolean(b) => b.to_string(),
toml::Value::Float(f) => f.to_string(),
toml::Value::Datetime(d) => d.to_string(),
toml::Value::Array(_) => "[...]".to_string(),
toml::Value::Table(_) => "{...}".to_string(),
})
.collect();
miseprintln!("[{}]", elements.join(", "));
}
toml::Value::Table(t) => {
miseprintln!("{}", toml::to_string(t)?);
}
}
} else {
bail!("No mise.toml file found");
}
Ok(())
}
}
View on GitHub (pinned to 533346cc37)