Change from npm create trigger to npx create-trigger

This commit is contained in:
Eric Allam
2023-02-27 13:49:04 +00:00
parent b0e64937a0
commit 313b7163e8
4 changed files with 8 additions and 8 deletions
@@ -138,8 +138,8 @@ function TemplateDetails({
template.
</Body>
<CopyTextPanel
text={`npm create trigger ${template.slug}`}
value={`npm create trigger@latest ${template.slug} ${
text={`npx create-trigger ${template.slug}`}
value={`npx create-trigger@latest ${template.slug} ${
commandFlags ? ` ${commandFlags}` : ""
}`}
className="mb-8"
@@ -67,10 +67,10 @@ export function TemplatesGrid({
{template.title}
</Header1>
<CopyTextPanel
value={`npm create trigger@latest ${template.slug}${
value={`npx create-trigger@latest ${template.slug}${
commandFlags ? ` ${commandFlags}` : ``
}`}
text={`npm create trigger ${template.slug}`}
text={`npx create-trigger ${template.slug}`}
className=""
/>
</div>
@@ -72,8 +72,8 @@ export function WorkflowOnboarding({
running this command.
</Body>
<CopyTextPanel
value={`npm create trigger@latest --apiKey ${apiKey}`}
text={`npm create trigger --apiKey ${apiKey}`}
value={`npx create-trigger@latest --apiKey ${apiKey}`}
text={`npx create-trigger --apiKey ${apiKey}`}
/>
</div>
</div>
+2 -2
View File
@@ -11,7 +11,7 @@ To scaffold out a new project using `create-trigger`, run any of the following t
### npm
```sh
npm create trigger@latest
npx create-trigger@latest
```
### yarn
@@ -29,7 +29,7 @@ pnpm create trigger@latest
You can also specify the [template](https://app.trigger.com/templates) you want to use by passing an argument to the command, like so:
```sh
npm create trigger@latest github-stars-to-slack
npx create-trigger@latest github-stars-to-slack
```
## Advanced Usage