Include Yii Application And Framework In Php Script

I would like to script a php script called, say, update-xml.php and I will like to run it via php cli

php update-xml.php

And I would want the update-xml.php to have access to the yii application and framework so I would be able to use their helpers (models, etc).

How can I do this ?

You could use YIIC. and configure /config/console.php.

This would help :