function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Georg WilleGeorg Wille 

Ways to see when a specific daily api limit block ends

when executing the force:package:version:create command, I get the message:
The package2 version create request failed because this organization has reached its daily limit
is there a way to know, for this and any of the other limits, when in the future I will be able to perform the action in question again, and how many times?
Best Answer chosen by Georg Wille
Georg WilleGeorg Wille
Hello Vinay, Malni: I knew already about force:limits:api:display, but that does not tell me how long I have to wait before I can try the action again (in the event I had to repeat the force:package:version:create once every hour for four hours in a row).
In the meantime I have found an answer: use force:package:version:create:list (https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_package.htm#cli_reference_force_package_version_create_list)
Thanks anyway for your efforts!

All Answers

Malni Chandrasekaran 2Malni Chandrasekaran 2
Hi Georg,
Have you tried the CLI command "sfdx force:limits:api:display". This command list the maximum limit and the used count of 'Package 2 version create' as well.

Hope this helps!
VinayVinay (Salesforce Developers) 
Hi Georg,

You can query the limits by the following command:
sfdx force:limits:api:display

Reference:
https://trailblazers.salesforce.com/answers?id=9063A000000DzAqQAK

Thanks,
Georg WilleGeorg Wille
Hello Vinay, Malni: I knew already about force:limits:api:display, but that does not tell me how long I have to wait before I can try the action again (in the event I had to repeat the force:package:version:create once every hour for four hours in a row).
In the meantime I have found an answer: use force:package:version:create:list (https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_package.htm#cli_reference_force_package_version_create_list)
Thanks anyway for your efforts!
This was selected as the best answer