Biblys Command Line Interface
Build
npm run buildBuild and watch
npm run devRun built version
node build/app.jsgit 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.enabledSet a config option value for a site
biblys config:set [site] [path]=[value] [path]=[value]
biblys config:set demo maintenance.enabled=trueDeletes a config option value for a site
biblys config:del [site] [path]=[value] [path]=[value]
biblys config:del demo maintenance.messageUpdate a site's theme to its latest version
biblys theme:update [site]Replace current site theme with another one
biblys theme:switch [current] [target]Load target site's theme to replace current site's
biblys theme:load [target]