spring_reference/VII. Spring Boot CLI/55.6. Using the embedded sh...

15 lines
647 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### 55.6. 使用内嵌shell
Spring Boot包括完整的BASH和zsh shells的命令行脚本。如果你不使用它们中的任何一个可能你是一个Window用户那你可以使用`shell`命令启用一个集成shell。
```shell
$ spring shell
Spring Boot (v1.3.0.BUILD-SNAPSHOT)
Hit TAB to complete. Type \'help' and hit RETURN for help, and \'exit' to quit.
```
从内嵌shell中可以直接运行其他命令
```shell
$ version
Spring CLI v1.3.0.BUILD-SNAPSHOT
```
内嵌shell支持ANSI颜色输出和tab补全。如果需要运行一个原生命令你可以使用`$`前缀。点击ctrl-c将退出内嵌shell。