We propose a scheme to generate steady-state bipartite and tripartite entanglement in the cavity magnomechanical system, which consists of a microwave (MW) cavity field, three magnons, and a phonon mode. The three magnons are coupled to the MW cavity via the magnetic dipole interaction, and one of them is also coupled to the phonon mode through the magnetostrictive force. By utilizing the nonlinearity of the magnetostrictive force and the cavity-magnon interaction, the three magnons become mutually entangled, and the steady-state of the system displays a genuine tripartite entanglement. We found that there are optimum parameters, including the detunings and the cavity-magnon coupling, which lead to maximum entanglement. Moreover, the entanglement is robust against thermal effects.