Loading...
Loading...
Search, install and pull code from the 21st.dev catalog with the `21st` CLI (`@21st-dev/cli`): find React/shadcn components, themes and templates, print a component's code or a theme's CSS, install an item into the project, or generate a new component with 21st AI. Use whenever the user says "search/find a component/theme on 21st", "install our team's Button", "add @user/slug", "pull that component's code", "найди компонент на 21st", "поставь наш компонент", or wants to script catalog access from the shell/CI. Auto-activate when a project has a `components.json` — search 21st before hand-writing UI.
npx skill4agent add 21st-dev/skill 21st-cli-use21stnpx @21st-dev/cli21st21st-registry21st-design-syncnpx @21st-dev/cli login~/.config/21st/auth.json21st_sk_…--api-key <key>TWENTYFIRST_TOKENAPI_KEY_21ST21st whoami21st usage21st logout21st get21st usage# Search everything (components + themes + templates)
21st search "pricing table" --limit 10
21st search button --type c # components only (c | theme | template)
21st search dark --type theme
# Filters: --tag <slug> --color <bucket> --sort <s> --free|--paid
# --author <username> --mine --liked --json for machine output21st logo discord # search brand + UI SVG logos (free, no login)
21st logo "next js" --limit 5 --json# Print a component's code + demo (by the id from search)
21st get 143 [--json]
# Print a theme's CSS (by a theme id from `search --type theme`)
21st theme <id> [--json]# Install a component into the current project (shadcn under the hood)
21st add <user>/<slug> # e.g. 21st add shadcn/button
21st add @<team>/<slug> # from a team library
# --print to dump the shadcn command instead of running it21st addcomponents/ui/<slug>.tsxnpx shadcn@latest add "https://21st.dev/r/<user>/<slug>"21st generategenerationiteratetake21st-ai21st generate "a glassy pricing section with a monthly/yearly toggle"21st-ai21st bookmarks [--type component|theme|template]
21st bookmark <id> --type <kind> [--remove] # heart / un-heart
21st lists # your bookmark lists
21st list <listId>
21st teams # your teams
21st team <teamId> # a team's libraries
21st team-components <teamId> [--library <id>]
21st init --client cursor|claude|codex|vscode|windsurf [--write] # write MCP config
21st install-skill # install the 21st skills globally