What are all commands for npx create-*?
I know npx create-react-app and npx-next-app what are all others app npx support?
Solution 1:
npx
is a program that downloads any package on npm. create-react-app
isn't a command for npx, rather, you're telling npx:
- Download
react-create-app
- Cache it (but not in the current directory, so it will stay 'clean')
- Try to run it as a program (the
package.json
file says how to do that, in this case: "runnode ./index.js
")
npx
knows nothing of React or Next.js and it doesn't have these things built in. All it knows is about is npm and how to run any (executable) package it downloads from there, like npx gulp
or npx serve
.
If you're working with a new framework and you're wondering if there's a utility to quickly set up a project, just search NPM and see what pops up.
Solution 2:
There is no set list because npx
is a package runner for Node.js. Running npx create-react-app
will try to find the package create-react-app
and run it. The package will be downloaded if not locally installed.
Therefore, the list of supported commands for npx
is "everything included in the repositories used by NPM". You can even create your own package, not visible to anybody else, and run it with npx
.