imports:list#

rai imports:list [OPTIONS]

List objects imported into a RelationalAI model.

Options#

OptionTypeDescription
--modelStringThe name of the model for which imports are filtered.

Example#

Use the imports:list command to list all objects imported into a RelationalAI model. For example, to list all imports for a model named myModel, run:

❯ rai imports:list --model myModel

---------------------------------------------------

▰▰▰▰ Imports fetched


  Import                                  Type               Status
 ────────────────────────────────────────────────────────────────────
  SNOWFLAKE_DB.SCHEMA.TABLE1              Snowflake object   SYNCING
  SNOWFLAKE_DB.SCHEMA.TABLE2              Snowflake object   SYNCED


---------------------------------------------------

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

❯ rai imports:list --model myModel

---------------------------------------------------

▰▰▰▰ Imports fetched

No imports found

---------------------------------------------------

If the --model option is not provided, you are prompted to interacively select a model from a list of available models:

❯ rai imports:list

---------------------------------------------------

▰▰▰▰ Models fetched

? Select a model:
┌──────────────────────────────────────────────────────────────────────────────────────────┐
│❯   2/2                                                                                   │
│❯ myModel                                                                                 │
│  myModel2                                                                                │
└──────────────────────────────────────────────────────────────────────────────────────────┘

▰▰▰▰ Imports fetched


  Import                                  Type               Status
 ────────────────────────────────────────────────────────────────────
  SNOWFLAKE_DB.SCHEMA.TABLE1              Snowflake object   SYNCING
  SNOWFLAKE_DB.SCHEMA.TABLE2              Snowflake object   SYNCED


---------------------------------------------------

Use the arrow keys to select a model and press Enter to confirm your selection. You can search for a model by typing part of its name in the prompt.

See Also#