Follow CBSDFW.COM: Facebook | Twitter

DETROIT (AP) – Volkswagen is agreeing to settle consumer lawsuits and government allegations that it cheated on emissions tests by taking steps that will cost the company $14.7 billion.

READ MORE: Arlington Police Associations Present 'No Confidence' Petitions To City Council Regarding Chief Al Jones

Terms of the settlement were revealed Tuesday in orders filed with the U.S. District Court in San Francisco.

READ MORE: 'You Have Demonized Our Kids': Little Elm High School Parents Lecture School Board Over Police Handling Of Student Walkout

VW will pay just over $10 billion to either buy back the cheating diesel vehicles or repair them. It also will pay owners from $5,100 to $10,000 for their trouble. The German company also has to pay governments $2.7 billion for environmental mitigation and spend another $2 billion for research on zero-emissions vehicles in the U.S.

Lawyers say it’s the largest auto-related consumer class-action settlement in U.S. history.

MORE NEWS: Some Families Of Astroworld Crowd Surge Victims Turn Down Travis Scott's Offer To Pay For Funerals

(© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)