[{"data":1,"prerenderedAt":10},["ShallowReactive",2],{"clay-page:\u002F3.x\u002Fcli":3},{"html":4,"toc":5,"description":6,"hero":7,"list":8,"socialImage":9},"\u003Ch1 id=\"command-line\">Command Line\u003C\u002Fh1>\n\u003Cp>The \u003Ccode>clay\u003C\u002Fcode> command: its subcommands and options, and the checks every build runs.\u003C\u002Fp>\n\u003Cp>You need five commands, usually run with \u003Ccode>npx\u003C\u002Fcode> or from the scripts in \u003Ccode>package.json\u003C\u002Fcode>:\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Command\u003C\u002Fth>\n\u003Cth>Does\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>\u003Ccode>clay dev\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Live preview while you write\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>clay build\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Builds the site into static files\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>clay preview\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Serves the built site, as readers will see it\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>clay edit\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Edits pages, folders and settings in the terminal\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>clay version &lt;name&gt;\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Saves the current docs as an older version\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cp>Every option is in \u003Ca href=\"\u002Fclay-example-repo\u002F3.x\u002Fcli\u002Fcommands\" data-route=\"\u002F3.x\u002Fcli\u002Fcommands\">Commands\u003C\u002Fa>. What \u003Ccode>clay build\u003C\u002Fcode> checks, and how \u003Ccode>--strict\u003C\u002Fcode> makes problems fail the build, is in \u003Ca href=\"\u002Fclay-example-repo\u002F3.x\u002Fcli\u002Fbuild-checks\" data-route=\"\u002F3.x\u002Fcli\u002Fbuild-checks\">Build Checks\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cdiv class=\"markdown-alert markdown-alert-tip\">\n\u003Cp class=\"markdown-alert-title text-primary\">\u003Ci class=\"fa-solid fa-lightbulb mr-2\">\u003C\u002Fi>Tip\u003C\u002Fp>\n\u003Cp>Use \u003Ccode>clay build --strict\u003C\u002Fcode> in CI: a broken link then stops the deploy instead of reaching readers.\u003C\u002Fp>\n\u003C\u002Fdiv>\n",[],"The clay command: its subcommands and options, and the checks every build runs.",null,true,"\u002F_clay\u002Fsocial\u002F3.x\u002Fcli.png",1792666368798]