Skip to main content

Synopsis

What It Does

wsignal init writes a starter config file to disk. The default starter config is:

Options

--config <path>

Write the generated config to a custom path instead of wsignal.config.ts.

--yes

Skip prompts and use the starter defaults immediately. wsignal init also behaves non-interactively when standard output is not a TTY.

--force

Overwrite an existing config file at the target path. Without --force, wsignal init fails if the target file already exists.

Interactive Mode

Without --yes, wsignal init prompts for:
  • Port
  • Endpoint name
  • Endpoint path
  • Method
  • Whether the endpoint should use its own log file
  • Optional log file name

Examples

Generate the default config:
Write a config to a custom file:
Replace an existing config: