Skip to content

biblys/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

biblys/cli

Biblys Command Line Interface

Development

Build

npm run build

Build and watch

npm run dev

Run built version

node build/app.js

Install

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"
    }
  ]
}

Usage

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

Deploy a site

biblys deploy [site] [version]

version

Display a site's current version

biblys version [site]

config:get

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

config:set

Set a config option value for a site

biblys config:set [site] [path]=[value] [path]=[value]
biblys config:set demo maintenance.enabled=true

config:del

Deletes a config option value for a site

biblys config:del [site] [path]=[value] [path]=[value]
biblys config:del demo maintenance.message

theme:update

Update a site's theme to its latest version

biblys theme:update [site]

theme:switch

Replace current site theme with another one

biblys theme:switch [current] [target]

About

Biblys command line interface

Resources

Stars

Watchers

Forks

Packages

No packages published