These two commands make it possible to look up the title of a sheet (one of the tabs of a Spreadsheet document) if you know its sheet id (which can be found in the URL as its "gid"; the first sheet created always has a gid of 0).
The first is the title command which translates the given sheetid to its title. Example:
gsheet title --id 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms --sheetid 0 returns Class Data
The other is the sheetInfo command which dumps a Spreadsheet documents metadata including its sheets (in the "sheets" property:
These two commands make it possible to look up the title of a sheet (one of the tabs of a Spreadsheet document) if you know its sheet id (which can be found in the URL as its "gid"; the first sheet created always has a gid of 0).
The first is the
title
command which translates the given sheetid to its title. Example:gsheet title --id 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms --sheetid 0
returnsClass Data
The other is the sheetInfo command which dumps a Spreadsheet documents metadata including its sheets (in the "sheets" property:
gsheet sheetInfo 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms