google-spreadsheet-csv is a command-line tool that syncs a google spreadsheet with a CSV file by using the google spreadsheet API.
When sending data, the headers of the CSV and spreadsheet must match. Otherwise, the operation is aborted and an error is reported. After that, the data in the CSV file is sent, and surplus data in the spreadsheet is removed.