Boeing Co. will cut 5% of its commercial airplane workforce as the company struggles to stabilize the pace of its production ramps.