Skip to content

Commit

Permalink
feat: add core-1 vs core-2 upgrade docs (#1915)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekradko authored Jan 17, 2025
1 parent b7d8d88 commit e6f040a
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 30 deletions.
6 changes: 3 additions & 3 deletions docs/upgrade-guides/core-2/backend.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ To run the CLI tool, navigate to your project and run it in the terminal:

<CodeBlockTabs options={["npm", "yarn", "pnpm"]}>
```bash {{ filename: 'terminal' }}
npx @clerk/upgrade
npx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
yarn dlx @clerk/upgrade
yarn dlx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
pnpm dlx @clerk/upgrade
pnpm dlx @clerk/upgrade --from=core-1
```
</CodeBlockTabs>

Expand Down
6 changes: 3 additions & 3 deletions docs/upgrade-guides/core-2/chrome-extension.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ To run the CLI tool, navigate to your project and run it in the terminal:

<CodeBlockTabs options={["npm", "yarn", "pnpm"]}>
```bash {{ filename: 'terminal' }}
npx @clerk/upgrade
npx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
yarn dlx @clerk/upgrade
yarn dlx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
pnpm dlx @clerk/upgrade
pnpm dlx @clerk/upgrade --from=core-1
```
</CodeBlockTabs>

Expand Down
6 changes: 3 additions & 3 deletions docs/upgrade-guides/core-2/expo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ To run the CLI tool, navigate to your project and run it in the terminal:

<CodeBlockTabs options={["npm", "yarn", "pnpm"]}>
```bash {{ filename: 'terminal' }}
npx @clerk/upgrade
npx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
yarn dlx @clerk/upgrade
yarn dlx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
pnpm dlx @clerk/upgrade
pnpm dlx @clerk/upgrade --from=core-1
```
</CodeBlockTabs>

Expand Down
6 changes: 3 additions & 3 deletions docs/upgrade-guides/core-2/fastify.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ To run the CLI tool, navigate to your project and run it in the terminal:

<CodeBlockTabs options={["npm", "yarn", "pnpm"]}>
```bash {{ filename: 'terminal' }}
npx @clerk/upgrade
npx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
yarn dlx @clerk/upgrade
yarn dlx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
pnpm dlx @clerk/upgrade
pnpm dlx @clerk/upgrade --from=core-1
```
</CodeBlockTabs>

Expand Down
6 changes: 3 additions & 3 deletions docs/upgrade-guides/core-2/javascript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ To run the CLI tool, navigate to your project and run it in the terminal:

<CodeBlockTabs options={["npm", "yarn", "pnpm"]}>
```bash {{ filename: 'terminal' }}
npx @clerk/upgrade
npx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
yarn dlx @clerk/upgrade
yarn dlx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
pnpm dlx @clerk/upgrade
pnpm dlx @clerk/upgrade --from=core-1
```
</CodeBlockTabs>

Expand Down
6 changes: 3 additions & 3 deletions docs/upgrade-guides/core-2/nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ To run the CLI tool, navigate to your project and run it in the terminal:

<CodeBlockTabs options={["npm", "yarn", "pnpm"]}>
```bash {{ filename: 'terminal' }}
npx @clerk/upgrade
npx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
yarn dlx @clerk/upgrade
yarn dlx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
pnpm dlx @clerk/upgrade
pnpm dlx @clerk/upgrade --from=core-1
```
</CodeBlockTabs>

Expand Down
6 changes: 3 additions & 3 deletions docs/upgrade-guides/core-2/node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ To run the CLI tool, navigate to your project and run it in the terminal:

<CodeBlockTabs options={["npm", "yarn", "pnpm"]}>
```bash {{ filename: 'terminal' }}
npx @clerk/upgrade
npx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
yarn dlx @clerk/upgrade
yarn dlx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
pnpm dlx @clerk/upgrade
pnpm dlx @clerk/upgrade --from=core-1
```
</CodeBlockTabs>

Expand Down
6 changes: 3 additions & 3 deletions docs/upgrade-guides/core-2/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ To run the CLI tool, navigate to your project and run it in the terminal:

<CodeBlockTabs options={["npm", "yarn", "pnpm"]}>
```bash {{ filename: 'terminal' }}
npx @clerk/upgrade
npx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
yarn dlx @clerk/upgrade
yarn dlx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
pnpm dlx @clerk/upgrade
pnpm dlx @clerk/upgrade --from=core-1
```
</CodeBlockTabs>

Expand Down
6 changes: 3 additions & 3 deletions docs/upgrade-guides/core-2/remix.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ To run the CLI tool, navigate to your project and run it in the terminal:

<CodeBlockTabs options={["npm", "yarn", "pnpm"]}>
```bash {{ filename: 'terminal' }}
npx @clerk/upgrade
npx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
yarn dlx @clerk/upgrade
yarn dlx @clerk/upgrade --from=core-1
```

```bash {{ filename: 'terminal' }}
pnpm dlx @clerk/upgrade
pnpm dlx @clerk/upgrade --from=core-1
```
</CodeBlockTabs>

Expand Down
16 changes: 13 additions & 3 deletions docs/upgrade-guides/nextjs/v6.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,19 @@ description: Learn how to upgrade your application to use the latest Clerk Next.

To upgrade to `@clerk/nextjs` v6, use the upgrade CLI:

```bash {{ filename: 'terminal' }}
npx @clerk/upgrade
```
<CodeBlockTabs options={["npm", "yarn", "pnpm"]}>
```bash {{ filename: 'terminal' }}
npx @clerk/upgrade
```

```bash {{ filename: 'terminal' }}
yarn dlx @clerk/upgrade
```

```bash {{ filename: 'terminal' }}
pnpm dlx @clerk/upgrade
```
</CodeBlockTabs>

The CLI will walk you through the upgrade and apply necessary changes to your application automatically.

Expand Down

0 comments on commit e6f040a

Please sign in to comment.