This is documentation for the development version of the project, aka master branch. If you installed Gramine from packages, documentation for the stable version is available at

gramine-argv-serializer – Serialize command line arguments


gramine-argv-serializer [ARGS]


gramine-argv-serializer serializes the command line arguments and prints it to stdout. The result is intended to be redirected to a file that can be used as a trusted or a protected file and loader.argv_src_file manifest option pointed to it. For more information on the usage, please refer to Manifest syntax.

For an example on how to use this utility from Python, please refer to libos/test/regression/


gramine-argv-serializer "binary_name" "arg1" "arg2" > gramine_args.txt