You can generate a script that contains the RCL needed to create an object such as a connection, route, and subscription.
Generating RCL for an object
Select the Replication Server object for which you want to generate RCL.
Right-click the selected object.
Select Generate RCL from the context menu. The RCL Script Editor opens, which contains the commands needed to create the object.