You need to just start the AEM instance with publish mode and configure the replication agents accordingly.can you let us know if you are looking for any particular thing here ?
You can customize the client context [1] and add the details you need in the same[1] http://blogs.adobe.com/aemtutorials/2013/07/24/customize-the-client-context/
basically, I think you need to replace ${filename} with the actual filename and similarly for basename and directory as per the example given in the above article