pip install cookiecutter huggingface_hub
Instructions can be found here. Make sure to authenticate with your desired Github account.
We'll add your Hugging Face token to Github secrets automatically with the token saved from running this command.
huggingface-cli login
Now you can make a new project from this template like this:
cookiecutter https://github.com/nateraw/spaces-template
An example project generated from this template can be seen here.