Created
June 29, 2024 00:41
-
-
Save sjurgis/f6b6ec03d93537fb6d32000232826df3 to your computer and use it in GitHub Desktop.
One liner to display Salesforce org limits that are under 100%
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sf org list limits --json | node -e "JSON.parse(require('fs').readFileSync(0,'utf-8')).result.filter(i=>i.remaining<i.max).forEach(i=>console.log(\`\${i.name}: \${((i.remaining/i.max)*100).toFixed(2)}% remaining\`))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment