Skip to main content

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​

ParameterRequiredDescriptionDefault
--table <table>NoFilter by table, buckets or objects; both tables when omittedBoth tables
-e, --env-id <envId>NoEnvironment ID—
--jsonNoOutput 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.