Skip to content

Commit

Permalink
update installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mkideal committed Oct 15, 2024
1 parent baf65ba commit eaf0adb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 36 deletions.
43 changes: 8 additions & 35 deletions website/docs/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,54 +76,27 @@ flowchart TD

## Installation

To install Next, you can use the following command:

<Tabs
defaultValue="unix"
defaultValue="unix-like"
values={[
{ label: 'Unix-like', value: 'unix' },
{ label: 'Windows', value: 'windows' },
{ label: 'Unix-like Shell', value: 'unix-like' },
{ label: 'Windows PowerShell', value: 'powershell' },
]}>

<TabItem value="unix">
To install Next on Unix-like systems (Linux, macOS, and Git-Bash for windows, etc.), you can use the following command:

<TabItem value="unix-like">
```sh
curl --proto '=https' --tlsv1.2 -sSf https://getnext.sh | sh
```

This script will download and install the latest version of Next on your system.

:::tip

If the downloading is very slow, you can use a https proxy like this:

```sh
curl --proto '=https' --tlsv1.2 -sSf https://getnext.sh | https_proxy=http://127.0.0.1:1080 sh
```

:::

</TabItem>

<TabItem value="windows">
To install Next on Windows, you can use the following command in **PowerShell**:

<TabItem value="powershell">
```sh
iwr -useb https://getnext.sh/ps | iex
```

This will install the Next on your Windows system.

:::note
Also, you can install Next in **Git-Bash**:

```sh
curl --proto '=https' --tlsv1.2 -sSf https://getnext.sh | sh
```
:::
</TabItem>
</Tabs>

After installing `next`, run `next version` to check the installed version:
After installing Next, run `next version` to check the installed version:

```sh
next version
Expand Down
6 changes: 5 additions & 1 deletion website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,12 @@ const config: Config = {
label: "Feature Images Designed by Freepik",
href: "https://www.freepik.com",
},
{
label: "Built with Docusaurus",
href: "https://docusaurus.io",
},
],
copyright: `Copyright © ${new Date().getFullYear()} Next, Inc. Built with Docusaurus.`,
copyright: `Copyright © ${new Date().getFullYear()} Next, Inc.`,
},
prism: {
theme: prismLight,
Expand Down

0 comments on commit eaf0adb

Please sign in to comment.