diskspace is a {macOS command line tool to return the available disk space on APFS volumes.} With the various APFS features the value for free disk space returned from tools such as du or df will not be accurate. This tool uses system functions to get various measures of available disk space.

WWW: https://github.com/scriptingosx/diskspace
