@decompile
COMMAND: @decompile[/dbref] <object>[/attr] [=<newname>]
Dumps the sequence of commands needed to clone <object>. This is handy for saving your objects in a text file in case the game dies a horrible death, or for moving your pride-and-joy creation from one game to another. @decompile works on all object types. If you specify <newname>, then the commands emitted will set attributes, locks, and flags on an object named <newname> and will omit the command to create the object.
If you specify <object>/<attr>, <attr> accepts wildcards.
If you specify the /dbref switch, you will get output using the dbref number instead of the object name.