v8scli
v0.2.2
Published
CLI for building and publishing V8 point_script mods (companion of v8_scripting)
Readme
v8scli
CLI for building and publishing V8 point_script mods (companion of v8_scripting).
Every command is npx v8scli <command> — the package name matches the bin
name, so it works both outside a project (npx fetches the package) and inside
one (the scaffolded project has it as a devDependency).
npx v8scli init my_mod # scaffold a new mod in ./my_mod
cd my_mod && npm install
npx v8scli build # bundle + dist/my_mod.vjs_c для теста на своём сервере
npx v8scli login # portal url + api token (dpt_...)
npx v8scli upload # pack sources, create a version on the portal
npx v8scli status # versions + review status
npx v8scli pull my_mod # fetch the latest uploaded sources from the portal
npx v8scli search # browse published libraries
npx v8scli add my_lib # pin a library release (+ typings)
npx v8scli remove my_lib # drop a dependency (+ its typings)
npx v8scli update # bump pinned releases to the latest
npx v8scli deps # (re)download typings of dependenciesLocal SDK/CLI development
--local wires the SDK and CLI as file: dependencies from your checkouts
(place them next to each other or set V8S_LOCAL_SDK):
cd dev_portal/cli && npm install
cd ~/mods && node /path/to/dev_portal/cli/bin/v8s.js init my_mod --local
cd my_mod && npm install && npx v8scli build