{"record":{"id":"38aed063c49a7be7","repo":"quickwit-oss/quickwit","slug":"unknown-command-subcommand","errorCode":null,"errorMessage":"unknown command `{subcommand}`","messagePattern":"unknown command `(.+?)`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"quickwit/quickwit-cli/src/cli.rs","lineNumber":85,"sourceCode":"            CliCommand::Run(_) => Level::INFO,\n            CliCommand::Index(subcommand) => subcommand.default_log_level(),\n            CliCommand::Source(_) => Level::ERROR,\n            CliCommand::Split(_) => Level::ERROR,\n            CliCommand::Tool(_) => Level::ERROR,\n        }\n    }\n\n    pub fn parse_cli_args(mut matches: ArgMatches) -> anyhow::Result<Self> {\n        let (subcommand, submatches) = matches\n            .remove_subcommand()\n            .context(\"failed to parse command\")?;\n        match subcommand.as_str() {\n            \"index\" => IndexCliCommand::parse_cli_args(submatches).map(CliCommand::Index),\n            \"run\" => RunCliCommand::parse_cli_args(submatches).map(CliCommand::Run),\n            \"source\" => SourceCliCommand::parse_cli_args(submatches).map(CliCommand::Source),\n            \"split\" => SplitCliCommand::parse_cli_args(submatches).map(CliCommand::Split),\n            \"tool\" => ToolCliCommand::parse_cli_args(submatches).map(CliCommand::Tool),\n            _ => bail!(\"unknown command `{subcommand}`\"),\n        }\n    }\n\n    pub async fn execute(self, env_filter_reload_fn: EnvFilterReloadFn) -> anyhow::Result<()> {\n        match self {\n            CliCommand::Index(subcommand) => subcommand.execute().await,\n            CliCommand::Run(subcommand) => subcommand.execute(env_filter_reload_fn).await,\n            CliCommand::Source(subcommand) => subcommand.execute().await,\n            CliCommand::Split(subcommand) => subcommand.execute().await,\n            CliCommand::Tool(subcommand) => subcommand.execute().await,\n        }\n    }\n}\n","sourceCodeStart":67,"sourceCodeEnd":99,"githubUrl":"https://github.com/quickwit-oss/quickwit/blob/a39730c5cdcd1a4fe798403737ae293999ea21f8/quickwit/quickwit-cli/src/cli.rs#L67-L99","documentation":"Top-level CLI argument parsing received a subcommand string that matches none of the registered clap subcommands (run, index, source, split, tool, etc.). It fires after clap's subcommand extraction succeeded but the match on the subcommand name fell through to the default arm.","triggerScenarios":"Thrown at quickwit/quickwit-cli/src/cli.rs:85 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run `quickwit --help` to list the valid subcommands","Check for typos in the subcommand name","Make sure you are on a Quickwit version that supports the subcommand you typed"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a39730c5cdcd1a4fe798403737ae293999ea21f8","analyzedAt":"2026-09-08T13:19:37.784Z","contentChangedAt":"2026-09-08T13:19:37.784Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}