[SalesForce] hitting limits while creating a unlocked package version

I run the following command

sfdx force:package:version:create -p SFExtension -d force-app -k xxxx --wait 10 -v DevHub

and with my 6th (5 finished successfully) execution I get this error:

ERROR:  The package2 version create request failed because this organization has reached its daily limit.

What limit does block me here? Can I really only build a package 5 times a day?

…this is really frustrating 🙁

Best Answer

You can query the limits by the following command:

sfdx force:limits:api:display

Run this against your dev hub org, and you'll see a line like this:

NAME                                   REMAINING  MAXIMUM
─────────────────────────────────────  ─────────  ─────────
...
PackageVersionCreates                  50         50

This is the daily limit for the entire org. If you've run out, you'll have to wait until tomorrow.

The limits are different for different types of orgs, so you'll need to check your org's limits.

Edit:

I couldn't find the chart that I've seen before, but it does seem like Developer Edition is limited to 6 packages/day, Enterprise should be 50/day, and Performance/Unlimited should be 200/day.

A developer edition is really not intended to be a real hub, just more of a learning/design/package container. Your dev hub org should be a real (i.e. paid) org.

Related Topic