If you know how to copy LTM virtual server info from bigip.conf on one ADC to another, then copying an iApp is not much different. Simply copy the "sys application service" definition. There are two added steps: (1) since iApps are always deployed in a folder, you must script a "create sys folder" command or add a folder definition to bigip_base.conf; (2) After loading the config files that you just modified with "tmsh load sys config," the iApp will be there, but it will not have been executed. You must either enter the iApp via the UI and click "Finished," or execute on the command line "tmsh modify sys application service MY_IAPP.app/MY_IAPP execute-action definition".