{
  "slug": "dsl/migration",
  "title": "DSL migration",
  "description": "Migrate .ctest, Video YAML, and Pilot YAML into the unified Cuitty DSL.",
  "url": "https://cuitty.com/docs/dsl/migration",
  "markdown_url": "https://cuitty.com/docs/dsl/migration.md",
  "json_url": "https://cuitty.com/docs/dsl/migration.json",
  "frontmatter": {
    "title": "DSL migration",
    "description": "Migrate .ctest, Video YAML, and Pilot YAML into the unified Cuitty DSL.",
    "order": 4,
    "section": "DSL",
    "updatedAt": "2026-06-05"
  },
  "headings": [
    {
      "depth": 1,
      "slug": "dsl-migration",
      "text": "DSL migration"
    },
    {
      "depth": 2,
      "slug": "tests",
      "text": "Tests"
    },
    {
      "depth": 2,
      "slug": "video",
      "text": "Video"
    },
    {
      "depth": 2,
      "slug": "pilot",
      "text": "Pilot"
    }
  ],
  "body_markdown": "# DSL migration\n\nThe unified DSL is additive. Existing product formats stay supported while\nadapters import and export equivalent `.cuitty` blocks.\n\n## Tests\n\n`.ctest` maps to `test_suite` blocks.\n\n```bash\ncuitty-dsl import --from ctest tests/auth-flow.ctest\ncuitty-dsl export --target ctest examples/tests/auth-flow.cuitty\n```\n\n## Video\n\nVideo YAML maps to `video` blocks and still exports to renderer-compatible YAML.\n\n```bash\ncuitty-dsl import --from video-yaml video/examples/02-code-demo.yaml\ncuitty-dsl export --target video-yaml examples/video/code-demo.cuitty\n```\n\n## Pilot\n\nPilot YAML playbooks map to `playbook` blocks and still export to existing Pilot\nengine YAML.\n\n```bash\ncuitty-dsl import --from pilot-yaml pilot/playbooks/cloudflare/dns.add-a-record.yaml\ncuitty-dsl export --target pilot-yaml examples/pilot/cloudflare-dns.cuitty\n```",
  "body_html": "<h1 id=\"dsl-migration\">DSL migration</h1>\n<p>The unified DSL is additive. Existing product formats stay supported while\nadapters import and export equivalent <code>.cuitty</code> blocks.</p>\n<h2 id=\"tests\">Tests</h2>\n<p><code>.ctest</code> maps to <code>test_suite</code> blocks.</p>\n<pre class=\"astro-code github-dark\" style=\"background-color:#24292e;color:#e1e4e8; overflow-x: auto;\" tabindex=\"0\" data-language=\"bash\"><code><span class=\"line\"><span style=\"color:#B392F0\">cuitty-dsl</span><span style=\"color:#9ECBFF\"> import</span><span style=\"color:#79B8FF\"> --from</span><span style=\"color:#9ECBFF\"> ctest</span><span style=\"color:#9ECBFF\"> tests/auth-flow.ctest</span></span>\n<span class=\"line\"><span style=\"color:#B392F0\">cuitty-dsl</span><span style=\"color:#9ECBFF\"> export</span><span style=\"color:#79B8FF\"> --target</span><span style=\"color:#9ECBFF\"> ctest</span><span style=\"color:#9ECBFF\"> examples/tests/auth-flow.cuitty</span></span></code></pre>\n<h2 id=\"video\">Video</h2>\n<p>Video YAML maps to <code>video</code> blocks and still exports to renderer-compatible YAML.</p>\n<pre class=\"astro-code github-dark\" style=\"background-color:#24292e;color:#e1e4e8; overflow-x: auto;\" tabindex=\"0\" data-language=\"bash\"><code><span class=\"line\"><span style=\"color:#B392F0\">cuitty-dsl</span><span style=\"color:#9ECBFF\"> import</span><span style=\"color:#79B8FF\"> --from</span><span style=\"color:#9ECBFF\"> video-yaml</span><span style=\"color:#9ECBFF\"> video/examples/02-code-demo.yaml</span></span>\n<span class=\"line\"><span style=\"color:#B392F0\">cuitty-dsl</span><span style=\"color:#9ECBFF\"> export</span><span style=\"color:#79B8FF\"> --target</span><span style=\"color:#9ECBFF\"> video-yaml</span><span style=\"color:#9ECBFF\"> examples/video/code-demo.cuitty</span></span></code></pre>\n<h2 id=\"pilot\">Pilot</h2>\n<p>Pilot YAML playbooks map to <code>playbook</code> blocks and still export to existing Pilot\nengine YAML.</p>\n<pre class=\"astro-code github-dark\" style=\"background-color:#24292e;color:#e1e4e8; overflow-x: auto;\" tabindex=\"0\" data-language=\"bash\"><code><span class=\"line\"><span style=\"color:#B392F0\">cuitty-dsl</span><span style=\"color:#9ECBFF\"> import</span><span style=\"color:#79B8FF\"> --from</span><span style=\"color:#9ECBFF\"> pilot-yaml</span><span style=\"color:#9ECBFF\"> pilot/playbooks/cloudflare/dns.add-a-record.yaml</span></span>\n<span class=\"line\"><span style=\"color:#B392F0\">cuitty-dsl</span><span style=\"color:#9ECBFF\"> export</span><span style=\"color:#79B8FF\"> --target</span><span style=\"color:#9ECBFF\"> pilot-yaml</span><span style=\"color:#9ECBFF\"> examples/pilot/cloudflare-dns.cuitty</span></span></code></pre>",
  "links_out": []
}