Use include-snippets with the export action to include code snippets when exporting a result for archiving as an *.inspxez file.
Example
This command exports the result in the myRes result directory, including code snippets, and saves the archive as my-archived-result.inspxez in the current working directory.