
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@thirdweb-dev/create-tw-app
Advanced tools
The easiest way to get started with thirdweb is by using create-tw-app
. This CLI tool enables you to quickly start building a new thirdweb application, with everything set up for you. You can create a new app using one the defaults thirdweb templates, or by using one of the official thirdweb examples. To get started, use the following command:
npx create-tw-app@latest
# or
yarn create tw-app
# or
pnpm create tw-app
This will prompt you to choose between "Next.js", "Create React App" and "Vite". You can also pass them as a flag:
npx create-tw-app --next
# or
npx create-tw-app --cra
# or
npx create-tw-app --vite
This will also prompt you to choose between TypeScript or JavaScript, you can also pass them as a flag:
npx create-tw-app --typescript
# or
npx create-tw-app --javascript
You can also use the shortcute --js
or --ts
.
An example of using both flags at the same time:
npx create-tw-app --next --ts`
To create a new app in a specific folder, you can send a name as an argument. For example, the following command will create a new Next.js app called thirdwebb-app
in a folder with the same name:
npx create-tw-app@latest tw-app
# or
yarn create tw-app tw-app
# or
pnpm create tw-app tw-app
One example of using the --example
flag:
npx create-tw-app@latest --example custom-minting-page
# or
yarn create tw-app --example custom-minting-page
# or
pnpm create tw-app --example custom-minting-page
create-tw-app
comes with the following options:
yarn create tw-app
pnpm create tw-app
create-tw-app
allows you to create a new thirdweb app within seconds. It is officially maintained by the creators of thirdweb, and includes a number of benefits:
npx create-tw-app
(with no arguments) launches an interactive experience that guides you through setting up a project.npx create-tw-app --example contract-hub
).The simplest way to work on the CLI locally is to:
npm install -g ./
yarn dev
FAQs
Create thirdweb apps with one command
We found that @thirdweb-dev/create-tw-app demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.