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.

CommandTitleDescription
-hHelpDisplay the Arrow client help menu.
-cClear CacheClear the css and javascript cache.
-sGenerate SitemapCrawl & 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; } ?>

Did this page help you?