Dump environment variables, OS information, and other provenance information for the command line application you're about to execute to a JSON file.
Use pip
pip install selfie
Just prefix your command with selfie
. This will print the provenance
information to the console following your command
selfie ls -la ~/
If you want to save the provenance information to a file, use the
-o|--output-file
argument
selfie -o selfie.json ls -la ~/
If you wish selfie
to lock the --output-file
for the duration of the
command being executed, use the -l|--lock
argument
selfie -o selfie.json -l ls -la ~/
If you want the selfie
output to mask out certain environment variables, provide
a comma separated list of regular expressions using the -m|--mask
argument
selfie -m '.*PASSPHRASE.*','SECRET_THINGER' ls -la ~/
You can save often used --mask
regular expressions to a newline separated file
within your home directory ~/.config/selfie/ignore
. An example file would look
like this
.*PASSPHRASE.*
SECRET_THINGER
Use the --help
argument for more command line options.