If a person has a CDL and moves to another state:

To drive a commercial motor vehicle in West Virginia, you must apply to transfer your CDL within 30 days of establishing residence in the state.
DMV Writen Test