Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): added missing package manager tabs in cli docs #3606

Closed
wants to merge 9 commits into from
35 changes: 24 additions & 11 deletions apps/docs/content/docs/guide/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ To install the `CLI` globally, execute one of the following commands in your ter

Alternatively, you can use the `CLI` without a global installation by employing `npx`:

```bash
npx nextui-cli@latest
```
<PackageManagers
commands={{
npm: "npx nextui-cli@latest",
yarn: "yarn dlx nextui-cli@latest",
pnpm: "pnpm dlx nextui-cli@latest",
bun: "bunx nextui-cli@latest",
wingkwong marked this conversation as resolved.
Show resolved Hide resolved
}}
/>

</Steps>

Expand Down Expand Up @@ -113,16 +118,24 @@ You will be prompted to configure your project:
```

Install the dependencies to start the local server:

```codeBlock bash
cd my-nextui-app && npm install
```
<PackageManagers
commands={{
npm: "cd my-nextui-app && npm install",
yarn: "cd my-nextui-app && yarn install",
pnpm: "cd my-nextui-app && pnpm install",
bun: "cd my-nextui-app && bun install",
}}
/>

Start the local server:

```codeBlock bash
npm run dev
```
<PackageManagers
commands={{
npm: "npm run dev",
yarn: "yarn run dev",
pnpm: "pnpm run dev",
bun: "bun run dev",
}}
/>

## add

Expand Down
23 changes: 17 additions & 6 deletions apps/docs/content/docs/guide/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,25 @@ You will be prompted to configure your project:
```

Install the dependencies to start the local server:
```codeBlock bash
cd my-nextui-app && npm install
```
<PackageManagers
commands={{
npm: "cd my-nextui-app && npm install",
yarn: "cd my-nextui-app && yarn install",
pnpm: "cd my-nextui-app && pnpm install",
bun: "cd my-nextui-app && bun install",
}}
/>

Start the local server:
```codeBlock bash
npm run dev
```
<PackageManagers
commands={{
npm: "npm run dev",
yarn: "yarn run dev",
pnpm: "pnpm run dev",
bun: "bun run dev",
}}
/>


Once your NextUI project is ready to develop, you can add individual components using the CLI. For example, to add a button component:

Expand Down