cab is a wrapper for ghc-pkg and cabal that provides some nice features like listing outdated packages. See https://hackage.haskell.org/package/cab for more details on the cab program.
Reports whether the current working directory is within a sandbox. Useful to check before installing Cabal packages into the global registry.