Restore all items within a folder to an earlier version

Can I automate the task of checking & restoring all files beneath a specified path to an earlier version?

Can I list the available versions of files from terminal?