[HELP] How to add a new CLI command

Hi everyone…

This is my first posting. I am really desperate to know how I can add a new command in CLI (I am using Asterisk 1.4.1) ?

Say, I want when I type “greeting today”, then the output in CLI will be “Hello world”…

I really need help from you guys…

Thank You
Fadil