'what is the difference between sbt dist vs publishLocal?

what is the difference between sbt dist vs sbt publishLocal ? I would like to know the difference so that we can use in based on the need

Thanks

sbt


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source