Skip to content

voiage.cli.generate_config

generate_config([positional or keyword] template_name: str = typer.Argument(..., help='Name of the configuration template to generate (for example: evsi)'), [positional or keyword] output_file: Path | None = typer.Option(None, '--output', '-o', help='File to save the generated config')) -> None

Generate a JSON configuration template for a CLI command.

Generate an EVSI config template and save it to a file:

.. code-block:: bash

voiage generate-config evsi > evsi_config.json

Parameters:

  • template_name str (default: typer.Argument(..., help='Name of the configuration template to generate (for example: evsi)'))
  • output_file Path | None (default: typer.Option(None, '--output', '-o', help='File to save the generated config'))

Returns: None