Biblys Command Line Interface
Build
npm run build
Build and watch
npm run dev
Run built version
node build/app.js
git clone
cd cli
npm install -g .
Create a config file at ~/.biblys/config.json
with the following content:
{
"sites": [
{
"name": "paronymie",
"server": "paronymie.fr",
"path": "/var/www/paronymie"
}
]
}
All commands can be run for one site, several sites or all sites
Run for one site
biblys [command] [site] [...arguments]
Run for several sites
biblys [command] [site1,site2,site3] [...arguments]
Run for all sites
biblys [command] all [...arguments]
Deploy a site
biblys deploy [site] [version]
Display a site's current version
biblys version [site]
Get a config option value for a site
Use --bare
to return value only without log message.
biblys config:get [site] [path]
biblys config:get demo maintenance.enabled
biblys config:get demo maintenance.enabled
Set a config option value for a site
biblys config:set [site] [path]=[value] [path]=[value]
biblys config:set demo maintenance.enabled=true
Deletes a config option value for a site
biblys config:del [site] [path]=[value] [path]=[value]
biblys config:del demo maintenance.message
Update a site's theme to its latest version
biblys theme:update [site]
Replace current site theme with another one
biblys theme:switch [current] [target]