Change from npm create trigger to npx create-trigger
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user