The 4.2.0-beta.1 version is released under the beta tag, so you just have to use npx create-strapi-app@beta my_project --ts
You can have more information about our tags & package metadata by running npm show @strapi/strapi or npm dist-tags @strapi/strapi