Dev Tools Basics
GxP Dev Tools (@gxp-dev/tools, CLI gxdev) supports local Vue app development. It scaffolds a project, supplies a development runtime, runs preview/socket services and packages a .gxpapp. Developer Hub agents and hosted workspaces use a separate platform lifecycle.
What Dev Tools Provides
| Surface | Purpose |
|---|---|
| CLI | Scaffold/update projects, run preview, inspect declarations and build packages |
| Runtime store | Develop against local app/configuration data and supported API/socket bindings |
| Local AI assistants | Optional interactive or noninteractive help through installed provider tools |
| Development inspectors/extensions | Inspect/edit local state and simulate events |
| Mock API | Generate local schema-based responses when enabled |
| Test/lint tools | Run component tests, code lint and manifest/configuration checks |
| Storybook | Discover the installed AppUI package's stories and optional MCP endpoint |
A successful local preview does not establish platform permissions, attendee isolation, API availability or a published release.
Quick Setup
Prerequisites
Use a Node version compatible with the installed tools; the reviewed toolchain uses Node 24. Vite 8's 22.12 floor is not sufficient on its own: current Faker needs Node 22.13+ on that line and npm 10+. The scaffold uses npm for installation and lockfile verification even if you installed the global launcher with another package manager.
Install
npm install -g @gxp-dev/tools
gxdev --version
The reviewed source is version 2.1.39; compare your installed version and lockfile before relying on its commands.
Create a Plugin Project
gxdev init my-plugin --yes
cd my-plugin
This creates the scaffold and installs/verifies dependencies without agent, SSL or startup prompts. Omit --yes for interactive setup. In an existing package, unnamed init updates configuration rather than creating another app; --local --yes overwrites existing files.
Start Development
gxdev dev --no-https=true
Open the printed URL, normally http://localhost:3060 in the generated environment. Use gxdev setup-ssl and then gxdev dev for HTTPS. The explicit HTTP flag avoids the current bare-negation parsing mismatch.
Socket.IO starts by default; --no-socket disables it. For schema-generated mock API responses, set API_ENV=mock in .env and add --with-mock while keeping the socket service enabled. The flag enables the service without changing API routing. Stop/restart development after environment changes. Bare gxdev prints help; gxdev ui opens the TUI.
Key Concepts
GxP Store
Use the runtime store and declared operation/dependency bindings for installed app data. The standard app import is:
import { useGxpStore } from '@/stores/gxpPortalConfigStore'
const store = useGxpStore()
The managed runtime resolves the alias locally and provides platform-compatible externalization during build. Keep that setup intact. Changing local fixtures or mock responses does not change live project records or permission grants. See GxP Store.
Strings Plugin
Declare platform-configurable strings in the manifest and bind them in the component, for example:
<h1 gxp-string="welcome_text">Welcome</h1>
An existing configured string can override fallback text, so editing only the visible literal may not change the result. See Strings Plugin.
Socket Events
Local events test callbacks/UI updates. They do not certify the production socket transport or authorization. Inspect the selected dependency/channel and socket guide before treating simulation as live event delivery.
Plugin Architecture
The scaffold includes src/Plugin.vue, demo components, store exposure, layout files, manifest/configuration and test/lint setup. Package runtime files normally supply the boot HTML/entry and Vite configuration. Add vite.extend.js to extend that configuration; a root vite.config.js is not the current CLI's replacement mechanism.
Vue and other supported platform globals are externalized for delivery. Local packaging, hosted CI, release publication, project installation and attendee acceptance remain separate stages.
Validate and Deliver
npm run lint
npm run lint:js
npm test
npm run build
Read actual test counts: the default test command permits no tests. Inspect the generated dist/*.gxpapp and its manifest/assets. Commit source/lockfile, build the intended variant trunk, publish and validate the exact release in a test project before rollout.
Full Documentation
- Local toolkit walkthrough for setup, first edit and upgrades.
- CLI reference for supported commands and compatibility limits.
- Manifest, store and AppUI for app declarations/runtime/UI.
- Local AI assistants for provider configuration.
- Browser extensions and TUI for local controls.
- Building for Platform for package contents.
Next Steps
Use creating an app, hosted sessions, Git/builds and variants/releases to complete platform delivery. Use Local Dev Setup only when you need the platform contributor stack.