The command-line bootstrapper for buddy(1).

npm install buddy-cli
1 downloads in the last day
4 downloads in the last week
73 downloads in the last month


The buddy-cli allows local versions of the buddy(1) command to be run directly from the command line without any additional setup. This allows different versions of the buddy tool to be run from different projects, without any conflict.

NOTE: version 0.5.0+ is only compatible with buddy versions 0.10.0+ and up


# If necessary, first uninstall your existing buddy global install
$ npm -g uninstall buddy

$ npm -g install buddy-cli


Usage: buddy [options] <command> [path/to/package.json || path/to/buddy.js || path/to/buddy.json]


  init                   set up a basic buddy project
  install [config]       install dependencies [ADD-ON buddy-dependencies]
  build [config]         build js and css sources
  watch [config]         watch js and css source files and build changes
  deploy [config]        build compressed js and css sources
  ls                     list all previously created files and directories
  clean                  remove all previously created files and directories


  -h, --help             output usage information
  -V, --version          output the version number
  -t, --targets [types]  optional comma separated list of target(s) to build [js,css,html]
  -c, --compress         compress output for production deployment
  -l, --lint             check output for syntax and logic errors
  -r, --reload           reload all connected live-reload clients on file change during watch [ADD-ON buddy-server]
  -s, --serve            create a webserver to serve static files during watch [ADD-ON buddy-server]
  -S, --script           run script on build completion
  -L, --lazy             convert js modules for lazy evaluation
  -v, --verbose          print all messages for debugging

The init command will walk you through the basic set-up of a package.json file, installing a local copy of buddy in the process:

$ buddy init
This utility will walk you through a basic buddy package.json set-up.
+ project name:

Once installed, run buddy as described here:

npm loves you