Direct numerical simulations are used to characterize wind-shear effects on entrainment in a barotropic convective boundary layer (CBL) that grows into a linearly stratified atmosphere. We consider weakly to strongly unstable conditions $-z_{enc}/L_{Ob}\gtrsim 4$, where $z_{enc}$ is the encroachment CBL depth and $L_{Ob}$ is the Obukhov length. Dimensional analysis allows us to characterize such a sheared CBL by a normalized CBL depth, a Froude number and a Reynolds number. The first two non-dimensional quantities embed the dependence of the system on time, on the surface buoyancy flux, and on the buoyancy stratification and wind velocity in the free atmosphere. We show that the dependence of entrainment-zone properties on these two non-dimensional quantities can be expressed in terms of just one independent variable, the ratio between a shear scale $(\unicode[STIX]{x0394}z_{i})_{s}\equiv \sqrt{1/3}\unicode[STIX]{x0394}u/N_{0}$ and a convective scale $(\unicode[STIX]{x0394}z_{i})_{c}\equiv 0.25z_{enc}$, where $\unicode[STIX]{x0394}u$ is the velocity increment across the entrainment zone, and $N_{0}$ is the buoyancy frequency of the free atmosphere. Here $(\unicode[STIX]{x0394}z_{i})_{s}$ and $(\unicode[STIX]{x0394}z_{i})_{c}$ represent the entrainment-zone thickness in the limits of weak convective instability (strong wind) and strong convective instability (weak wind), respectively. We derive scaling laws for the CBL depth, the entrainment-zone thickness, the mean entrainment velocity and the entrainment-flux ratio as functions of $(\unicode[STIX]{x0394}z_{i})_{s}/(\unicode[STIX]{x0394}z_{i})_{c}$. These scaling laws can also be expressed as functions of only a Richardson number $(N_{0}z_{enc}/\unicode[STIX]{x0394}u)^{2}$, but not in terms of only the stability parameter $-z_{enc}/L_{Ob}$.