-
Notifications
You must be signed in to change notification settings - Fork 10
Command Line Usage
Once Blueberry is installed, you'll be able to call it simply by typing bb
in your terminal.
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>
It's really easy to use Blueberry's CLI, right now it only has three commands
- compile
- watch
- clean
usage: bb compile input [ouptut]
Compiles a file or a folder recursively
usage: bb watch input [output]
Watches a file or a folder recursively.
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.