You can run npx create typescript-app@beta
in your terminal to interactively create a new repository:
npx create typescript-app@beta
The creation script will by default:
- Prompt you for a directory, which template preset to run with, and some starting information
- Initialize new directory as a local Git repository
- Copy the template's files to that directory
- Create a new repository on GitHub and set it as the local repository's upstream
- Configure relevant settings on the GitHub repository
You'll then need to manually go through the following two steps to set up tooling on GitHub:
- Create two tokens in repository secrets (unless you chose to opt out of releases):
ACCESS_TOKEN
: A GitHub PAT with repo and workflow permissionsNPM_TOKEN
: An npm access token with Automation permissions
- Install two GitHub apps:
Your new repository will then be ready for development! Hooray! 🥳
You can customize which pieces of tooling are provided and the options they're created with. See Options.md.
For example, skipping the "This package was templated with..." block:
npx create typescript-app@beta --mode create --exclude-templated-with
See Blocks.md for details on the tooling pieces and which presets they're included in.