-
Notifications
You must be signed in to change notification settings - Fork 10
Command Line Usage
Once Iced Tea is installed, you'll be able to call it simply by typing tea into the command line.
The CLI is designed to compile .tea files into .php files, but not only that, as with PHP, only the code inside <?tea and ?> tags will be compiled, everything else will be untouced.
This allows you to mix PHP and IcedTea in the same file.
Example:
<h1>Hello
<?tea
name = _GET['name'] ?? 'User'
echo(name)
?>
</h1>
It's really easy to use Iced Tea's CLI, right now it only has three commands
- compile
- watch
- clean
usage: tea compile input [ouptut]
Compiles a file or a folder recursively
usage: tea watch input [output]
Watches a file or a folder not recursively
usage: tea clean input
Cleans the workspace, removing all PHP files if there's a .tea file with
the same name. This is a destructive process! There's no way to get your
files back using Iced Tea CLI, it's designed to help you keep your workspace
clean if you compiled in the same folder your .tea files are.