Update in place
drive update uploads new content into an existing file. Drive keeps the previous version, and the name and type stay unless you change them.
$
goog drive update FILE_ID ./report-v2.pdfUpload a new version of a file without changing its ID or links, and see every version Drive keeps.
drive update uploads new content into an existing file. Drive keeps the previous version, and the name and type stay unless you change them.
goog drive update FILE_ID ./report-v2.pdf--expect-modified-time or --expect-md5 refuses the update when someone changed the file since you last read it.
goog drive update FILE_ID ./report-v2.pdf --expect-modified-time 2026-01-31T09:15:00.000Zdrive revisions lists the stored versions of an uploaded file, oldest first.
goog drive revisions FILE_ID