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

Command Line Usage

Federico Ramírez edited this page Mar 26, 2013 · 10 revisions

Once Iced Tea is installed, you'll be able to call it simply by typing tea into the command line.

About the CLI

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>

Commands

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

  • compile
  • watch
  • clean

Compile

usage: tea compile input [ouptut]

Compiles a file or a folder recursively

Watch

usage: tea watch input [output]

Watches a file or a folder not recursively

Clean

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.

Clone this wiki locally