vyl CLI
vyl is the lightweight command entrypoint for Vyline setup, repair, plugin scaffolding, and Snapshots.
The goal is to make Vyline easier to try without forcing users to understand the full repository layout, Git submodules, or every Bun workspace command first.
Recommended entrypoints
New users
Use the future npm/Bun package entrypoint:
bunx vyl init
bunx vyl installvyl install performs a shallow clone including the required submodules. Source archives are not used because GitHub source archives omit submodule contents required to run Vyline.
Existing repository checkout
From a Vyline checkout:
bun install
bun run vyl init
bun run vyl:doctor
bun run vyl:fix
bun run vyl:snapshot -- create manualThe package exposes both vyl and vyline bin names for npm/Bun publishing, but the preferred short command is vyl.
Commands
Interactive setup
bunx vyl init
# or inside this repository
bun run vyl initStarts a small interactive setup menu for common actions:
- start the development server
- run doctor
- repair setup
- create a plugin
- create a Snapshot
- install Vyline with required submodules
Install without a full manual clone
bunx vyl install
# or inside this repository
bun run vyl installThe installer shallow-clones the repository and its submodules. The target must not already exist. Git is required.
Doctor
bun run vyl:doctor
# or
bun run vyl doctorChecks the local environment without creating directories or probe files:
- Bun
- Git
- repository root
- backend entrypoint
- desktop package
- protocol package / submodule state
- root
node_modules .env- configured data directory or its parent accessibility (
VYLINE_DATA_DIR, defaultVyline/backend/data) - configured storage directory or its parent accessibility (
VYLINE_STORAGE_DIR, defaultVyline/backend/storage)
Fix
bun run vyl:fix
bun run vyl fix --buildRepairs common setup issues in the same locations used by the Backend:
- creates the configured data and storage directories (defaults:
Vyline/backend/data/andVyline/backend/storage/) - creates
.envfrom.env.examplewhen available - initializes submodules when running inside a Git checkout
- runs
bun install - optionally runs
bun run build
Development start
bun run vyl devStarts the usual backend + frontend development flow. Direct scripts such as bun run dev, bun run typecheck, bun run lint, and bun run build are still available for lower-level work.
Plugin scaffold
bun run vyl plugin create my-pluginCreates a plugin template under plugins/my-plugin with:
package.jsonmanifest.jsonsrc/index.tsREADME.md
The generated plugin is intentionally small and TypeScript-first. It is meant to become the base for create-vyline-plugin / @vyline/plugin-sdk publishing.
Snapshots
Backup/restore is rebranded as Snapshot. A Snapshot archives VYLINE_DATA_DIR only. It does not include VYLINE_STORAGE_DIR (saved media/cache). Stop Vyline before creating or restoring one for a consistent point-in-time copy.
bun run vyl snapshot create manual
bun run vyl snapshot list
bun run vyl snapshot restore snapshots/vyline-snapshot-xxxx.tar.gz --force
bun run vyl snapshot schedule dailySnapshot commands support custom directories:
bun run vyl snapshot create auto --data-dir ./data --snapshots ./snapshotsWithout --data-dir, snapshots use VYLINE_DATA_DIR, or the Backend's default Vyline/backend/data/ directory. Restore stages and validates the replacement before switching directories; with --force, the previous data is retained in a .before-restore-* directory and restored if the switch fails. The archive contains sensitive local account/session data; store and share it accordingly.
The schedule command stores .vyline/snapshot-schedule.json.
On Windows it also tries to register a VylineSnapshot scheduled task via schtasks:
bun run vyl snapshot schedule dailyOn Linux/macOS it prints a command that can be wired into cron or a systemd timer.
Current package shape
This PR adds the foundation without the Control Center.
Vyline/packages/cliprovidesvyl/vyline.Vyline/packages/create-pluginprovides the local plugin scaffold generator.- Root scripts expose convenient wrappers:
vyl,vyl:init,vyl:doctor,vyl:fix,vyl:snapshot.
Future npm shape
Recommended public package split:
@vyline/cli/vylcreate-vyline-plugin@vyline/plugin-sdk@vyline/theme-sdk
Control Center is intentionally not part of this PR.