{"id":"ce1199228979fd59","repo":"spring-projects/spring-boot","slug":"name-is-not-a-valid-command-see-help-ce1199","errorCode":null,"errorMessage":"'${name}' is not a valid command. See 'help'.","messagePattern":"'(.+?)' is not a valid command\\. See 'help'\\.","errorType":"exception","errorClass":"NoSuchCommandException","httpStatus":null,"severity":"error","filePath":"cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/core/HelpCommand.java","lineNumber":121,"sourceCode":"\t\t\t\t}\n\t\t\t\tif (command.getHelp() != null) {\n\t\t\t\t\tLog.info(command.getHelp());\n\t\t\t\t}\n\t\t\t\tCollection<HelpExample> examples = command.getExamples();\n\t\t\t\tif (examples != null) {\n\t\t\t\t\tLog.info((examples.size() != 1) ? \"examples:\" : \"example:\");\n\t\t\t\t\tLog.info(\"\");\n\t\t\t\t\tfor (HelpExample example : examples) {\n\t\t\t\t\t\tLog.info(\"    \" + example.getDescription() + \":\");\n\t\t\t\t\t\tLog.info(\"        $ \" + example.getExample());\n\t\t\t\t\t\tLog.info(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tLog.info(\"\");\n\t\t\t\t}\n\t\t\t\treturn ExitStatus.OK;\n\t\t\t}\n\t\t}\n\t\tthrow new NoSuchCommandException(commandName);\n\t}\n\n}\n","sourceCodeStart":103,"sourceCodeEnd":125,"githubUrl":"https://github.com/spring-projects/spring-boot/blob/5b2dbdbb8be64415eb6552f81ff7c449c8d251e6/cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/core/HelpCommand.java#L103-L125","documentation":"Error \"'${name}' is not a valid command. See 'help'.\" thrown in spring-projects/spring-boot.","triggerScenarios":"Thrown at cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/core/HelpCommand.java:121 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"5b2dbdbb8be64415eb6552f81ff7c449c8d251e6","analyzedAt":"2026-08-04T18:53:14.967Z","schemaVersion":2}