Add new restore endpoint for CLI