---
url: "https://vueda.dev/v3/reference/api/js/use/useCommand.md"
title: "use/useCommand"
---

# use/useCommand

## Overview

Provides context pairs for the Command and CommandGroup component trees.
Based on the shadcn-vue command implementation.

## Methods

- [provideCommandContext](/v3/reference/api/js/use/useCommand/functions/provideCommandContext.md)
- [provideCommandGroupContext](/v3/reference/api/js/use/useCommand/functions/provideCommandGroupContext.md)
- [useCommand](/v3/reference/api/js/use/useCommand/functions/useCommand.md)
- [useCommandGroup](/v3/reference/api/js/use/useCommand/functions/useCommandGroup.md)

## Source

`client/lib/use/useCommand.js:1`
