Shell Options

shell 是基于 Spring Shell 项目构建的。Spring Shell 和 Data Flow 的命令行有些选项是通用的。shell 的命令行选项如下:

unix:>java -jar spring-cloud-dataflow-shell-2.1.0.RELEASE.jar --help
Data Flow Options:
  --dataflow.uri=                              Address of the Data Flow Server [default: http://localhost:9393].
  --dataflow.username=                        Username of the Data Flow Server [no default].
  --dataflow.password=                    Password of the Data Flow Server [no default].
  --dataflow.credentials-provider-command= Executes an external command which must return an
                                                    OAuth Bearer Token (Access Token prefixed with 'Bearer '),
                                                    e.g. 'Bearer 12345'), [no default].
  --dataflow.skip-ssl-validation=       Accept any SSL certificate (even self-signed) [default: no].
  --dataflow.proxy.uri=                  Address of an optional proxy server to use [no default].
  --dataflow.proxy.username=        Username of the proxy server (if required by proxy server) [no default].
  --dataflow.proxy.password=        Password of the proxy server (if required by proxy server) [no default].
  --spring.shell.historySize=                 Default size of the shell log file [default: 3000].
  --spring.shell.commandFile=                 Data Flow Shell executes commands read from the file(s) and then exits.
  --help                                            This message.

spring.shell.commandFile 选项可用于指向一个现有文件,文件中包含部署一个或多个相关的流和任务的 shell 命令。 还支持执行多个文件,它们应该以逗号分隔的字符串传递: --spring.shell.commandFile=file1.txt,file2.txt在创建一些脚本或者自动部署时,会提供很大的帮助。

此外,以下shell命令可以将复杂脚本模块化,拆解为多个独立文件:dataflow:>script --file <YOUR_AWESOME_SCRIPT>

Last updated