Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Command Line Usage

Federico Ramirez edited this page Jan 11, 2015 · 10 revisions

Once Blueberry is installed, you'll be able to call it simply by typing bb in your terminal.

About the CLI

The CLI is designed to compile .bb files into .php files, but not only that, as with PHP, only the code inside <?bb and ?> tags will be compiled, everything else will be untouced.

This allows you to mix PHP and Blueberry in the same file.

Example:

<h1>Hello 
<?bb
name = _GET['name'] ?? 'User'
echo(name)
?>
</h1>

Commands

It's really easy to use Blueberry's CLI, right now it only has three commands

  • compile
  • watch
  • clean

Compile

usage: bb compile input [ouptut]

Compiles a file or a folder recursively

Watch

usage: bb watch input [output]

Watches a file or a folder recursively.

Clean

usage: bb clean input

Cleans the workspace, removing all PHP files if there's a .bb file with the same name. This is a destructive process! There's no way to get your files back using Blueberry CLI, it's designed to help you keep your workspace clean if you compiled in the same folder your .bb files are.

Clone this wiki locally