Use your APIs from the command line, without code.
Recent revisions are kept. Restoring one creates a new revision.