CLI Reference
CLI is provided by @shevky/core through the bin entry shevky -> core/shevky.js.
Flags
Defined in core/scripts/cli.js (getCliOptionDefinitions()):
| Flag | Alias | Type | Description |
|---|---|---|---|
--help | -h | Boolean | Print usage text |
--version | -v | Boolean | Print version |
--init | - | Boolean | Initialize project |
--build | - | Boolean | Run full build |
--dev | - | Boolean | Build + serve locally |
Dispatch Order
core/scripts/main.js checks flags in this order:
--help-> print usage viacommand-line-usage--version-> print version string--init-> runcore/scripts/init.js--dev-> build then serve--build-> run full build- No flags -> print help
Command Details
shevky --init
Runs core/scripts/init.js:
- Clones
fatihtatoglu/shevky-simple-blogviadegit - Copies
src/andtailwind.config.js - Installs build dependencies via
exec.installPackage() - Writes
.gitignore - Updates
package.jsonwith scripts:build->npx shevky --build,dev->npx shevky --dev
shevky --build
Runs core/scripts/build.js execute():
- Loads i18n, config, templates, plugins
- Executes the full build lifecycle
- Writes output to
dist/
shevky --dev
- Runs the full build first
- Starts
serve@14ondist/ - Logs:
Serving dist on http://localhost:3000
Exit Behavior
- Plugin errors are logged and swallowed; build may complete with missing plugin output.
--initexits early on missingpackage.jsonor clone/install failures.
Note
runWatch() exists in core/scripts/main.js but no CLI flag maps to it in the current version. (Inferred from source comparison.)