---
title: Command
description: Command menu for search and quick actions.
base: base
component: true
links:
doc: https://github.com/dip/cmdk
---
## About
The `` component uses the [`cmdk`](https://github.com/dip/cmdk) component by [Dip](https://www.dip.org/).
## Installation
Command
Manual
```bash
npx shadcn@latest add command
```
Install the following dependencies:
```bash
npm install cmdk
```
Copy and paste the following code into your project.
Update the import paths to match your project setup.
## Usage
```tsx showLineNumbers
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from "@/components/ui/command"
```
```tsx showLineNumbers
No results found.
Calendar
Search Emoji
Calculator
Profile
Billing
Settings
```
## Examples
### Basic
A simple command menu in a dialog.
### Shortcuts
### Groups
A command menu with groups, icons and separators.
### Scrollable
Scrollable command menu with multiple items.
## RTL
To enable RTL support in shadcn/ui, see the [RTL configuration guide](/docs/rtl).
## API Reference
See the [cmdk](https://github.com/dip/cmdk) documentation for more information.