tcb storage policies list
View the RLS policies on the buckets / objects tables.
v3.4.0+
PG mode storage commands have been available since @cloudbase/cli@3.4.0.
Usage
tcb storage policies list [--table buckets|objects] [-e <envId>] [--json]
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
--table <table> | No | Filter by table, buckets or objects; both tables when omitted | Both tables |
-e, --env-id <envId> | No | Environment ID | — |
--json | No | Output the raw PGExecuteResult | — |
Examples
tcb storage policies list --table objects
tcb storage policies list --json
Change policies
Change RLS policies with tcb db execute plus --role postgres and a CREATE POLICY / DROP POLICY statement.