Make CLI libraries optional dependencies

Since cookiecutter, along with other libraries like inquirer and typer, is used exclusively in the CLI for templating new projects, could we make these optional dependencies? This would reduce the installation footprint.