Turns on versioning so overwritten and deleted objects keep a previous version, protecting against accidental data loss and enabling easy rollback. Older versions still cost storage, so pair this with a lifecycle policy to prune them. List versions with gsutil ls -a gs://my-bucket/.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.