You can use one license for Live / Production, Staging, Dev and Localhost Sites if your domain name is clearly a dev or staging site. The system automatically recognizes specific domains and subdomains conventions as staging or dev environment. Here is the list:
TLDs that are considered as dev or staging:
Subdomains that are considered as dev or staging
Nis an unsigned int)
Additionally, if your domain is
localhost (with any port), it will also be treated as a localhost domain.
If your dev or staging site doesn’t fit the criteria listed above, try to deactivate the license from within the WP Admin dashboard (WooCommerce -> AJAX Search bar -> My Account), and then reuse the license.