---
id: installation
title: Installation
---
You can install Vue Query via [NPM](https://npmjs.com).
### NPM
```bash
npm i @tanstack/vue-query
```
or
```bash
pnpm add @tanstack/vue-query
```
or
```bash
yarn add @tanstack/vue-query
```
or
```bash
bun add @tanstack/vue-query
```
> Wanna give it a spin before you download? Try out the [basic](../examples/basic) example!
Vue Query is compatible with Vue 2.x and 3.x
> If you are using Vue 2.6, make sure to also setup [@vue/composition-api](https://github.com/vuejs/composition-api)
### Vue Query Initialization
Before using Vue Query, you need to initialize it using `VueQueryPlugin`
```tsx
import { VueQueryPlugin } from '@tanstack/vue-query'
app.use(VueQueryPlugin)
```
### Use of Composition API with `
...
```