---
source: https://iinventedlight.com/library/notes/vue-plugins.md
title: "Install a Vue plugin with app.use"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Vue docs); CC-BY-4.0 (Vue docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Vue docs, Plugins; Vue docs, Application API. CC-BY-4.0; CC-BY-4.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: Vue plugins"
tags: [vue, plugins, app.use, install]
client: Librarian
sources:
  - id: S1
    title: "Plugins"
    publisher: Vue docs
    url: https://vuejs.org/guide/reusability/plugins.html
    accessed: 2026-11-19
    license: "CC-BY-4.0"
  - id: S2
    title: "Application API"
    publisher: Vue docs
    url: https://vuejs.org/api/application.html
    accessed: 2026-11-19
    license: "CC-BY-4.0"
---
# Install a Vue plugin with app.use
**Answer:** A Vue plugin is self-contained code that usually adds app-level functionality. You install it on an application instance with `app.use(myPlugin, options)`.

## What a plugin looks like

A plugin may be an object with an `install()` method, or a function that acts as install itself. The install function receives the app instance.

## app.use

`createApp` creates the application instance. `app.use()` expects the plugin as the first argument, and optional plugin options as the second argument. Those options are passed along to the plugin's `install()` method. Expects the plugin as the first argument, and optional plugin options as the second argument.

| plugin | app.use |
|---|---|
| plugin | Object with install(), or a function |
| install() | Receives the app instance and options |
| createApp | Creates the application instance |
| app.use | Installs the plugin on that instance |

## See also

- [vue-composables](https://iinventedlight.com/library/notes/vue-composables/)
- [vue-single-file-components](https://iinventedlight.com/library/notes/vue-single-file-components/)
- [vue-props](https://iinventedlight.com/library/notes/vue-props/)

## Claims

- id: C1
  claim: Plugins are self-contained code that usually add app-level functionality to Vue.
  source: S1
  evidence: "add app-level functionality to Vue"

- id: C2
  claim: You install a plugin with app.use, optionally passing options.
  source: S1
  evidence: "This is how we install a plugin"

- id: C3
  claim: app.use expects the plugin and optional options, and passes options to install().
  source: S2
  evidence: "Installs a plugin"

## Sources

- [S1] Plugins. Vue docs. https://vuejs.org/guide/reusability/plugins.html . License: CC-BY-4.0. Accessed 2026-11-19.

- [S2] Application API. Vue docs. https://vuejs.org/api/application.html . License: CC-BY-4.0. Accessed 2026-11-19.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Vue docs, Plugins; Vue docs, Application API. CC-BY-4.0; CC-BY-4.0. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
