Pretty sure a simple "dry run" is what you're looking for. Not sure what programs support it, but I know Docker for one does.
Sorry yes, "dry run".
There are definitely ways of doing it on a command by command basis but what I was more thinking about was a dry run on an entire pipeline. It's not a use case I tend to run into much these days though because there are usually better tools.
I'd love it if there was a way to do a "test run" of a command line where it prints what it would do without actually touching the file system (for example).