save_provenance

save_provenance is a script in CIMEROOT/CIME/Tools.

$ ./save_provenance --help
usage: 
save_provenance <MODE> [<casedir>] [--verbose]
OR
save_provenance --help

EXAMPLES:
    # Save run (timing) provenance for current case 
    > save_provenance postrun

This tool provide command-line access to provenance-saving functionality

positional arguments:
  {build,prerun,postrun}
                        Phase for which to save provenance. prerun is mostly
                        for infrastructure testing; it does not make sense to
                        store this information manually otherwise
  caseroot              Case directory (default:
                        /home/runner/work/cime/cime/CIME/Tools)

options:
  -h, --help            show this help message and exit
  -l LID, --lid LID     Force system to save provenance with this LID
                        (default: None)

Logging options:
  -d, --debug           Print debug information (very verbose) to file /home/r
                        unner/work/cime/cime/CIME/Tools/save_provenance.log
                        (default: False)
  -v, --verbose         Add additional context (time and file) to log messages
                        (default: False)
  -s, --silent          Print only warnings and error messages (default:
                        False)