open
Opens a project and keeps it open: run the tests, run them again, step through the failed ones — without reloading the project between commands.
Synopsis
catcli open [-p <path>] [-g] [-q]
Options
| Short | Long | Value | Meaning |
|---|---|---|---|
-p |
--project |
path | Project file, or a directory with exactly one *.cat.yaml. Default: the current directory. |
-g |
--progress |
Accepted for uniformity with run and show; open always shows progress bars while the project loads. |
|
-q |
--quiet |
Hide the “working offline” notice. |
open has no --loggingLevel; the session runs without logging.
What it does
Opens the project, then prompts for a command and keeps prompting until exit:
Command to execute (run, rerun, result, exit):
| Command | Effect |
|---|---|
run |
Runs all tests of the open project (no filters) and writes the project’s outputs. The project file is not re-read. |
rerun |
Re-reads the project file — picking up edits to tests, data sources and lists — and then runs all tests. The sign-in and plan check runs again. |
result |
Shows the next test that did not pass (Failed, Error or Inconclusive): its full name and description, the message, and the query of each data source side by side. Repeating result steps to the next one; after the last it wraps around to the first and says so. Before any run it says there are no results; when every test passed it says so. |
exit |
Closes the project and ends the session. |
Commands are not case-sensitive; anything else prints Unknown command and prompts again. The typical loop is run → result, result, … → fix the data or the test → rerun.
Output
run and rerun print the same per-test lines, breakdown bar and totals as run. result prints one test per call as a set of panels:
Showing non-passed test # 1 / 3:
╭─ [SourceDataTests].[2].[Check if the table DIM.DESTINATIONS is not empty.] ─╮
│ The destinations dimension must never be empty after the nightly load. │
╰────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────────────────────────────────────────╮
│ The set is empty; expected at least one row. │
╰────────────────────────────────────────────────────────────────────────────╯
╭─ AERO_PROD ─────────────────────────────╮╭──────────────────────────────────╮
│ SELECT * FROM DIM.DESTINATIONS ││ │
╰─────────────────────────────────────────╯╰──────────────────────────────────╯
Exit code
0 after exit. 1 when the project could not be opened. 2–7 from the sign-in and plan check, at start or at rerun — see Exit codes.
Examples
# the project in the current directory
catcli open
# a specific project
catcli open -p "D:\MyProjects\Aero.cat.yaml"
Related
- Introduction — conventions, sign-in, exit codes.
run— one-shot run with filters, for scripts and pipelines.- Tests — properties —
Descriptionis whatresultshows under the name; fill it in.