Skip to content

imports:list

Terminal window
rai imports:list [OPTIONS]

List details about data streams imported into the RelationalAI (RAI) Native App. Requires the cdc_admin application role.

OptionTypeDescription
--modelStringFilter results by model name. If missing, imports for all models are displayed.

Use the imports:list command to list all data streams:

Terminal window
rai imports:list
---------------------------------------------------
▰▰▰▰ Imports fetched
# Name Model Created Creator Batches Status Errors
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
2 MY_DB.MY_SCHEMA.TABLE1 MyModel 2024-09-23 10:36:12 jane.doe@company.com 1 LOADED
3 MY_DB.MY_SCHEMA.TABLE2 MyModel 2024-10-03 11:27:36 jane.doe@company.com 1 LOADED
4 MY_DB.MY_SCHEMA.TABLE3 MyOtherModel 2024-10-01 17:35:22 alex_smith@company.com 2 LOADED
---------------------------------------------------

Use the --model option to filter results by model name:

Terminal window
rai imports:list --model MyModel
---------------------------------------------------
▰▰▰▰ Imports fetched
# Name Model Created Creator Batches Status Errors
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
2 MY_DB.MY_SCHEMA.TABLE1 MyModel 2024-09-23 10:36:12 jane.doe@company.com 1 LOADED
3 MY_DB.MY_SCHEMA.TABLE2 MyModel 2024-10-03 11:27:36 jane.doe@company.com 1 LOADED
---------------------------------------------------

If no model named MyModel exists, the command returns an error message:

Terminal window
rai imports:list --model MyModel
---------------------------------------------------
▰▰▰▰ Imports fetched
No imports found
---------------------------------------------------

See Data Management for more information on data streams.