Skip to content

CLI Command

Do Trong Long edited this page Jan 30, 2023 · 3 revisions

The command which uses to start faker has below format

sh -c "$(curl -sSL https://bit.ly/faker-sh)" -s [arguments]

The arguments could be seen as following

Arguments:
  -s or --source        Specify source folder
  -p or --port          Specify port to listen
  -w or --watch         Watch source for changes
  -v or --version       Specify faker's version
  -j or --java-options  Customize java options
  -h or --help          Show help
  • -s or --source: specify source folder which any file has extension .json will be parsed
  • -p or --port: Change listen port of server. Default value is 3030
  • -w or --watch: Since v1.1.0 you can watch source folder for changes. This might be an expensive task, and limit by OS support, hence, performance might vary.
  • -v or --version: Specify faker version, you must delete file faker.jar before effective
  • -j or --java-options: Additional java options might be specified by this argument
  • -h or --help: Show usage help
Clone this wiki locally