tdk table list
List the tables of a collection, or of the whole project
tdk table list \
--proj quickstart \
--coll sales_data \
--name country \
--at 2024-05-20T10:00:00Z \
--at-trx trx-8c1d40 \
--format table \
--browse \
--wrap \
--max-width max_width-example \
--max-result 100 \
--filter filter-example \
--order-by order_by-example \
--cursor cursor-example \
--fields fields-example \
--profile production
| Flag | Type | Required | Description |
|---|---|---|---|
--proj, -P | string | Optional | Project to target; overrides the pinned project. Prompted for when a command needs one and neither is set. |
--coll, -c | string | Optional | Name of the collection to which the tables belong. Default: the pinned collection, else every collection of the project. |
--name, -n | string | Optional | A name wildcard to match for the list. For example, 'my_table*' will match all tables starting with 'my_table'. |
--at | string | Optional | If provided, the tables as they were at the given time will be listed. Must be either a valid timestamp in the form of a unix timestamp (milliseconds since epoch without a dot, e.g. '1750074554472') or a valid date-time format. The valid formats are 'YYYY-MM-DD', 'YYYY-MM-DDTHH', 'YYYY-MM-DDTHH:MM', 'YYYY-MM-DDTHH:MM:SS', and 'YYYY-MM-DDTHH:MM:SS.sss'. A 'Z' character can be added at the end to indicate UTC time (e.g., '2023-10-01T12Z' or '2023-10-01T12:00:00.000Z') or it can be omitted to indicate local time (e.g., '2023-10-01T12' or '2023-10-01T12:00:00.000'). NOTE: This argument is mutually exclusive with arguments: [at-trx]. |
--at-trx | string | Optional | ID of a transaction. If provided, the tables as they were at the end of the given transaction will be listed. NOTE: This argument is mutually exclusive with arguments: [at]. |
-o, --format | table | json | yaml | Optional | Output format. 'json' and 'yaml' give a listing as an array and table data as one object per row. |
--browse, --print | flag | Optional | Open the table in a viewer that scrolls both ways, or print it and return. |
--wrap | flag | Optional | Show every value whole, wrapping long and multi-line values inside their column instead of cutting them. |
--max-width | string | Optional | Maximum width of each column, in characters; longer values are cut and end in '…'. Use 0 for no limit. Defaults to the width each table sets. |
--max-result | string | Optional | Maximum number of rows to list. Use 0 for no limit, or for the most a program running tdk allows. Defaults to 100. |
--filter | string | Optional | Filter on a field, with OP one of eq, ne, gt, ge, lt, le, lk, btw, is. Repeatable: conditions on different fields must all hold, conditions on the same field are alternatives. Combines with the command's own filters. |
--order-by | string | Optional | Sort by a field, ascending (+, the default) or descending (-). |
--cursor | string | Optional | Continue a listing from the 'next' cursor it returned, with the same filters and order. |
--fields | string | Optional | Keep only these fields of each row, comma-separated; '?' lists the fields the rows have and 'all' keeps every one, which a program running tdk otherwise gets without the internal ids. Not in the table view. |
--profile | string | Optional | Profile whose login and pinned project and collection this command uses; with no NAME, the default profile. Default: the profile set with 'tdk set --profile', else the default profile. |