gen command