Skip to content

Instantly share code, notes, and snippets.

@sjurgis
Created June 29, 2024 00:41
Show Gist options
  • Save sjurgis/f6b6ec03d93537fb6d32000232826df3 to your computer and use it in GitHub Desktop.
Save sjurgis/f6b6ec03d93537fb6d32000232826df3 to your computer and use it in GitHub Desktop.
One liner to display Salesforce org limits that are under 100%
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