Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# semantic_release.cli.commands.main module

class semantic_release.cli.commands.main.Cli(name: str | None = None, invoke_without_command: bool = False, no_args_is_help: bool | None = None, subcommand_metavar: str | None = None, chain: bool = False, result_callback: Callable[[...], Any] | None = None, **attrs: Any)

  Bases: `MultiCommand`

  Root MultiCommand for the semantic-release CLI

  class SubCmds(*values)

    Bases: `Enum`

    Subcommand import definitions

    CHANGELOG = 'semantic_release.cli.commands.changelog'
    GENERATE_CONFIG = 'semantic_release.cli.commands.generate_config'
    PUBLISH = 'semantic_release.cli.commands.publish'
    VERSION = 'semantic_release.cli.commands.version'
  get_command(_ctx: Context, name: str) → Command | None

    Given a context and a command name, this returns a `Command` object if it exists or returns None.

  list_commands(_ctx: Context) → list[str]

    Returns a list of subcommand names in the order they should appear.