.. _728.cheat_sheet: Cheat Sheet =========== Quick summary of the command line changes between Cylc 7 / Rose 2019 and Cylc 8. .. highlight:: sub Validating ---------- Check the workflow configuration for errors: .. list-table:: :class: grid-table * - **Cylc 7** - **Rose 2019** - **Cylc 8** (Rose 2) * - :: cylc validate - :: # validate from $PWD rose suite-run --validate - :: cylc validate Installing & Running -------------------- Install a workflow from source and run it: .. list-table:: :class: grid-table * - **Cylc 7** - **Rose 2019** - **Cylc 8** (Rose 2) * - :: # no installation capability # run from source cylc run - :: # install from $PWD # then run rose suite-run - :: # validate, install & play cylc vip cylc vip # use $PWD Reloading --------- To update a running workflow with changes from the source directory: .. list-table:: :class: grid-table * - **Cylc 7** - **Rose 2019** - **Cylc 8** (Rose 2) * - :: # update the live source # directly, then cylc reload - :: # re-install from source # and do ``cylc reload`` rose suite-run --reload - :: # Validate against source; # Reinstall; # Reload or Play cylc vr Pausing & Unpausing ------------------- Tell a workflow not to submit any new jobs: .. list-table:: :class: grid-table * - **Cylc 7** & Rose 2019 - **Cylc 8** (Rose 2) * - :: cylc hold cylc unhold - :: cylc pause cylc play Stopping -------- Stop a running workflow:: cylc stop Restarting ---------- Restart a stopped workflow and pick up where it left off: .. list-table:: :class: grid-table * - **Cylc 7** - **Rose 2019** - **Cylc 8** (Rose 2) * - :: # no installation capability # restart from source cylc restart - :: # regular restart rose suite-restart Or alternatively:: # reinstall and restart rose suite-run --restart - :: # optionally reinstall cylc reinstall # restart cylc play Deleting -------- Delete the workflow :term:`run directory` (leave source files untouched): .. list-table:: :class: grid-table * - **Cylc 7** - **Rose 2019** - **Cylc 8** (Rose 2) * - :: rm -rf ~/cylc-run/ - :: rose suite-clean - :: cylc clean Scanning -------- List all running workflows:: cylc scan View A Workflow's Configuration ------------------------------- View the parsed workflow configuration: .. list-table:: :class: grid-table * - **Cylc 7** - **Rose 2019** - **Cylc 8** (Rose 2) * - :: cylc get-config --sparse \ - :: # install workflow rose suite-run -l # view installed config cylc get-config --sparse \ - :: cylc config Opening User Interfaces ----------------------- Opening the graphical user interface (GUI) or terminal user interface (TUI) for monitoring / controlling running workflows: .. list-table:: :class: grid-table * - - **Cylc 7** & Rose 2019 - **Cylc 8** (Rose 2) * - Terminal - :: cylc monitor - :: cylc tui * - Graphical - :: cylc gui - :: cylc gui * - Web Server - :: cylc review start - :: cylc hub Static Graph Visualisation -------------------------- Generate a visualisation for a workflow without running it: .. list-table:: :class: grid-table * - **Cylc 7** & Rose 2019 - **Cylc 8** (Rose 2) * - :: cylc graph - :: cylc graph This generates a basic image file if Graphviz is installed. The web UI will have full graph vis. in a future release. Datetime Operations ------------------- Datetime operations in task scripts: .. list-table:: :class: grid-table * - **Cylc 7** & Rose 2019 - **Cylc 8** (Rose 2) * - :: rose date --offset - :: isodatetime --offset * - :: rose date -c # equivalent to: rose date "$CYLC_TASK_CYCLE_POINT" - :: isodatetime ref # equivalent to: isodatetime "$CYLC_TASK_CYCLE_POINT" Rose Stem --------- Run a :ref:`rose:Rose Stem` test suite. .. list-table:: :class: grid-table * - **Rose 2019** - **Rose 2** (Cylc 8) * - :: # install and start rose stem - :: # install rose stem # start cylc play