# Application App Shell: Command Bar Shell

Shell with a centered command bar in the top header, a keyboard shortcut hint, and a recent commands list below.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/command-bar-shell
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [App Shells](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/command-bar-shell.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-app-shells-command-bar-shell
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: avatars, badge, button, kbd
- Installs to: `@/components/blocks/application-pro/app-shells/command-bar-shell`

## About this block

Command Bar Shell leads with the bar: a centered input
in the top header spanning up to max-w-lg, labeled Run
a command or search with a Kbd hint showing the shortcut
and a Search icon on the left. Below it the content
area opens on a Recent commands list with three rows,
Run deploy to production 4 min ago, Search: onboarding
flow errors 22 min ago, and Open project prj_8h2k 1 hr
ago, each with an arrow icon and tabular timestamp.
A minimal icon rail on the left handles secondary
navigation; the header right side shows the workspace
badge and a Docs button.

Recent commands are one const array. The Kbd component
makes the shortcut scannable without adding weight.

## When to use

Reach for this shell for command-first tools where every
session begins at the bar: CI runners, search-driven
launchers, AI prompt interfaces, and admin consoles
where typing is faster than clicking. Do not use it for
information-dense dashboards where browsing beats
typing. Wire the bar to your command palette or search
handler and replace the dashed panels with workflow and
history table blocks.

A natural flow around it on an Application Pro page:

**Before**

- Nothing, shells are the page

**After**

- [Data table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables)
- [Filters and search](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search)

## What you can display

One strong use is the CI runner overview with recent
command history. Other command-bar contexts:

- **AI assistant.** The bar becomes the prompt field,
  results stream into the content column below.
- **Admin console.** Bar runs privileged commands,
  history table shows who ran what and when.
- **Search hub.** Bar searches across projects, pages,
  and members; results replace the recent list.

> Tip: pre-fill the bar placeholder with the most
> common action verb so new users know the vocabulary
> before they type a character.

## More in Application App Shells

- [Anchor Nav Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/anchor-nav-shell)
- [Bottom Panel Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/bottom-panel-shell)
- [Breadcrumb Header Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/breadcrumb-header-shell)
- [Card Grid Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/card-grid-shell)
- [Centered Content Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/centered-content-shell)
- [Checklist Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/checklist-shell)
- [Collapsible Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/collapsible-sidebar-shell)
- [Dashboard Home Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/dashboard-home-shell)
- [Document Tabs Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/document-tabs-shell)
- [Dual Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/dual-sidebar-shell)
- [Empty State Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/empty-state-shell)
- [Environment Banner Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/env-banner-shell)
- [Focus Mode Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/focus-mode-shell)
- [Full Bleed Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/full-bleed-shell)
- [Icon Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/icon-sidebar-shell)
- [Inbox Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/inbox-shell)
- [Nested Nav Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/nested-nav-sidebar-shell)
- [Right Rail Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/right-rail-shell)
- [Settings Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/settings-shell)
- [Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/sidebar-shell)
- [Split Content Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/split-content-shell)
- [Sticky Toolbar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/sticky-toolbar-shell)
- [Tabbed Page Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/tabbed-page-shell)
- [Topbar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/topbar-shell)
- [Two Pane Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/two-pane-shell)
- [Wizard Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/wizard-shell)
