Arrow Client
The Command Line Interface to Tatanka
Arrow is the command line client for Tatanka. There are lots of things you can do with the client such as:
- Clear cache
- Generate sitemap
- Build your own methods into Arrow for your application
First cd into your tatanka directory and try running the following:
$ cd tatanka/
$ php arrow -h
Native Arrow Options
Below are the built in options that the Arrow client provides natively.
Command | Title | Description |
---|---|---|
-h | Help | Display the Arrow client help menu. |
-c | Clear Cache | Clear the css and javascript cache. |
-s | Generate Sitemap | Crawl & generate your website's sitemap at yourdomain.com/sitemap.xml |
Write your own arrow methods
Create a file named arrow (with no extension) in your inc/ directory.
cd inc/
touch arrow
In your inc/arrow file start with something like the following:
<?php
// --Long flags Only
$longopts = array(
"your-option",
);
$about = "YourAppName";
// Get options
$options = getopt(false, $longopts);
// Reset Test Tags
if(isset($options['your-option']))
{
// Do stuff here...
echo "Something happened!\n";
die;
}
?>
Updated less than a minute ago
Did this page help you?