Hello,
All licenses allow to use phpdocx in CLI mode. We recommend you to choose the license based on their features (https://www.phpdocx.com/features) and if you need to use the library on a subdomain (Basic), a domain and its subdomains (Advanced and Premium) or an IP (Premium).
All licenses also allow to use the library on localhost and private networks (classes A, B and C).
Regards.