EU docs
$yarn add launchdarkly-vue-client-sdk
1// Add the code below to your main.js file.2import { createApp } from 'vue';3import App from './App.vue';4import { LDPlugin } from 'launchdarkly-vue-client-sdk';56const app = createApp(App);78// A "context" is a data object representing users, devices, organizations, and other entities.9const context = {10 kind: 'user',11 key: 'EXAMPLE_CONTEXT_KEY',12 name: 'Sandy',13};1415// This is your client-side ID.16app.use(LDPlugin, {17 clientSideID: 'YOUR_CLIENT_SIDE_ID',18 context: context19});2021app.mount('#app');
You can find your server-side SDK keys, mobile keys, and client-side ID on the SDK keys page under Settings.
To learn more, read Initialize the client and context in the Vue SDK reference guide.