The potential-energy surfaces (PESs) for ground states of even-even $^{102--112}\mathrm{Cd}$ isotopes are obtained by using the three-dimensional relativistic Hartree-Bogoliubov model with the density-dependent meson exchange interaction. The quadrupole deformation parameters are extracted from the PES calculations and employed in the beyond mean-field projected shell model to study the yrast and excited states of these isotopes. Besides, the $E2$ transition probabilities and $g$ factors are obtained and compared with the experimental data. The present calculations support the experimental finding that yrast ${8}^{+}$ states of light Cd isotopes are of ${(\ensuremath{\pi}{g}_{9/2})}^{2}$ character whereas the yrast ${10}^{+}$ states of medium-mass Cd isotopes are found to possess ${(\ensuremath{\nu}{h}_{11/2})}^{2}$ character.