First you should visit your state's DMV and get a copy of the CDL manual. You will be taking several tests specific to this manual so you should study it well. You may purchase a practice test online if you feel this would be helpful, although it is not required. When you feel comfortable knowing the material, revisit the DMV and take the test.