{
  "version": "https://jsonfeed.org/version/1.1",
  "title": "Cecil - Commandes",
  "home_page_url": "https://cloudflare.cecil.app/fr/documentation/commandes/",
  "feed_url": "https://cloudflare.cecil.app/fr/documentation/commandes/feed.json",
  "description": "Référence des commandes et options de la CLI de Cecil.",
  "icon": "https://cloudflare.cecil.app/favicon.7ff4b89eec6dad139a7d2d6561543285.png",
  "favicon": "https://cloudflare.cecil.app/thumbnails/64x/favicon.7ff4b89eec6dad139a7d2d6561543285.png",
  "language": "fr",
  "items": [
    {
      "id": "https://cloudflare.cecil.app/fr/documentation/commandes/new-extension/",
      "url": "https://cloudflare.cecil.app/fr/documentation/commandes/new-extension/",
      "title": "new:extension",
      "summary": "Créer le squelette d’une extension : générateur, extension Twig, post-processeur, abonné aux événements ou plugin.",
      "date_published": "2026-10-26T00:00:00+00:00",
      "date_modified": "2026-10-26T00:00:00+00:00","content_text": "new:extension\nCrée le squelette d’une classe d’extension dans le répertoire extensions, et affiche la configuration pour l’activer.\nUtilisation\nDescription:\n  Creates a new extension\n\nUsage:\n  new:extension [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                       Use the given path as working directory\n\nOptions:\n  -t, --type=TYPE            Extension type (generator, twig, postprocessor, subscriber, plugin)\n      --name=NAME            Extension class name (e.g.: \"MyGenerator\")\n      --namespace=NAMESPACE  Root namespace of the extension (e.g.: \"MySite\")\n  -f, --force                Override the file if already exist\n  -h, --help                 Display help for the given command. When no command is given display help for the list command\n      --silent               Do not output any message\n  -q, --quiet                Only errors are displayed. All other output is suppressed\n  -V, --version              Display this application version\n      --ansi|--no-ansi       Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction       Do not ask any interactive question\n  -v|vv|vvv, --verbose       Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The new:extension command creates the skeleton of an extension class in the extensions directory,\n  and displays the configuration to enable it.\n  If you run this command without any options, it will ask you for the extension type, name and namespace.\n\n    cecil.phar new:extension\n    cecil.phar new:extension --type=generator --name=Database --namespace=MySite\n\n  Available types: generator, twig, postprocessor, subscriber and plugin.\n\n  To override an existing extension, run:\n\n    cecil.phar new:extension --force\nTypes\n\n\n\nType\nClasse\nConfiguration\n\n\n\n\ngenerator\n&lt;namespace&gt;\\Generator\\&lt;name&gt; (générateur de pages)\npages.generators\n\n\ntwig\n&lt;namespace&gt;\\Twig\\&lt;name&gt; (extension Twig)\nlayouts.extensions\n\n\npostprocessor\n&lt;namespace&gt;\\PostProcessor\\&lt;name&gt; (post-processeur de sortie)\noutput.postprocessors\n\n\nsubscriber\n&lt;namespace&gt;\\Subscriber\\&lt;name&gt; (abonné aux événements)\nextensions.subscribers\n\n\nplugin\n&lt;namespace&gt;\\&lt;name&gt; (plugin)\nextensions.plugins\n\n\n\nLa classe est créée dans extensions\/&lt;chemin du namespace&gt;\/. L’espace de noms Cecil est réservé et ne peut pas être utilisé.",
      "content_html": "<h1>new:extension</h1>\n<p>Crée le squelette d’une classe d’<a href=\"../developers/1-extend.fr.md\">extension</a> dans le répertoire <code translate=\"no\">extensions</code>, et affiche la configuration pour l’activer.</p>\n<h2 id=\"utilisation\">Utilisation<a class=\"heading-anchor\" href=\"#utilisation\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">Description:\n  Creates a new extension\n\nUsage:\n  new:extension [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                       Use the given path as working directory\n\nOptions:\n  -t, --type=TYPE            Extension type (generator, twig, postprocessor, subscriber, plugin)\n      --name=NAME            Extension class name (e.g.: \"MyGenerator\")\n      --namespace=NAMESPACE  Root namespace of the extension (e.g.: \"MySite\")\n  -f, --force                Override the file if already exist\n  -h, --help                 Display help for the given command. When no command is given display help for the list command\n      --silent               Do not output any message\n  -q, --quiet                Only errors are displayed. All other output is suppressed\n  -V, --version              Display this application version\n      --ansi|--no-ansi       Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction       Do not ask any interactive question\n  -v|vv|vvv, --verbose       Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The new:extension command creates the skeleton of an extension class in the extensions directory,\n  and displays the configuration to enable it.\n  If you run this command without any options, it will ask you for the extension type, name and namespace.\n\n    cecil.phar new:extension\n    cecil.phar new:extension --type=generator --name=Database --namespace=MySite\n\n  Available types: generator, twig, postprocessor, subscriber and plugin.\n\n  To override an existing extension, run:\n\n    cecil.phar new:extension --force</code></pre>\n<h2 id=\"types\">Types<a class=\"heading-anchor\" href=\"#types\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Classe</th>\n<th>Configuration</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code translate=\"no\">generator</code></td>\n<td><code translate=\"no\">&lt;namespace&gt;\\Generator\\&lt;name&gt;</code> (générateur de pages)</td>\n<td><code translate=\"no\">pages.generators</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">twig</code></td>\n<td><code translate=\"no\">&lt;namespace&gt;\\Twig\\&lt;name&gt;</code> (extension Twig)</td>\n<td><code translate=\"no\">layouts.extensions</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">postprocessor</code></td>\n<td><code translate=\"no\">&lt;namespace&gt;\\PostProcessor\\&lt;name&gt;</code> (post-processeur de sortie)</td>\n<td><code translate=\"no\">output.postprocessors</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">subscriber</code></td>\n<td><code translate=\"no\">&lt;namespace&gt;\\Subscriber\\&lt;name&gt;</code> (abonné aux événements)</td>\n<td><code translate=\"no\">extensions.subscribers</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">plugin</code></td>\n<td><code translate=\"no\">&lt;namespace&gt;\\&lt;name&gt;</code> (plugin)</td>\n<td><code translate=\"no\">extensions.plugins</code></td>\n</tr>\n</tbody>\n</table>\n<p>La classe est créée dans <code translate=\"no\">extensions/&lt;chemin du namespace&gt;/</code>. L’espace de noms <code translate=\"no\">Cecil</code> est réservé et ne peut pas être utilisé.</p>",
      "language": "fr"
    },
    {
      "id": "https://cloudflare.cecil.app/fr/documentation/commandes/new-site/",
      "url": "https://cloudflare.cecil.app/fr/documentation/commandes/new-site/",
      "title": "new:site",
      "summary": "Créer un nouveau site.",
      "date_published": "2026-03-27T00:00:00+00:00",
      "date_modified": "2026-11-01T00:00:00+00:00","content_text": "new:site\nCrée un nouveau site.\nUtilisation\nDescription:\n  Creates a new website\n\nUsage:\n  new:site [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                  Use the given path as working directory\n\nOptions:\n  -f, --force           Override directory if it already exists\n      --demo            Add demo content (pages, templates and assets)\n  -h, --help            Display help for the given command. When no command is given display help for the list command\n      --silent          Do not output any message\n  -q, --quiet           Only errors are displayed. All other output is suppressed\n  -V, --version         Display this application version\n      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction  Do not ask any interactive question\n  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The new:site command creates a new website in the current directory, or in &lt;path&gt; if provided.\n  If you run this command without any options, it will ask you for the website title, baseline, base URL, description, author, language, etc.\n\n    cecil.phar new:site\n    cecil.phar new:site path\/to\/the\/working\/directory\n\n  To create a new website with demo content, run:\n\n    cecil.phar new:site --demo\n\n  To override an existing website, run:\n\n    cecil.phar new:site --force\nFichiers créés\nLa commande crée les fichiers suivants :\n\ncecil.yml : la configuration, avec des exemples commentés des options courantes\npages\/index.md : la page d'accueil\nassets\/favicon.png et assets\/icon.png : le favicon et l'image par défaut des cartes des réseaux sociaux\nstatic\/favicon.ico : le favicon historique\nREADME.md et .gitignore (_site\/, .cache\/ et .cecil\/), s'ils n'existent pas déjà\n.github\/workflows\/build-and-deploy.yml : un workflow GitHub Actions pour déployer sur GitHub Pages, si demandé\n\nAvec l'option --demo, elle ajoute aussi du contenu de démonstration : un blog (avec tags, pagination, un brouillon et une traduction en français), une section de documentation (triée par poids, avec une table des matières activée par cascade), des templates personnalisés, une feuille de style Sass, un fichier de données et des traductions.",
      "content_html": "<h1>new:site</h1>\n<p>Crée un nouveau site.</p>\n<h2 id=\"utilisation\">Utilisation<a class=\"heading-anchor\" href=\"#utilisation\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">Description:\n  Creates a new website\n\nUsage:\n  new:site [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                  Use the given path as working directory\n\nOptions:\n  -f, --force           Override directory if it already exists\n      --demo            Add demo content (pages, templates and assets)\n  -h, --help            Display help for the given command. When no command is given display help for the list command\n      --silent          Do not output any message\n  -q, --quiet           Only errors are displayed. All other output is suppressed\n  -V, --version         Display this application version\n      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction  Do not ask any interactive question\n  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The new:site command creates a new website in the current directory, or in &lt;path&gt; if provided.\n  If you run this command without any options, it will ask you for the website title, baseline, base URL, description, author, language, etc.\n\n    cecil.phar new:site\n    cecil.phar new:site path/to/the/working/directory\n\n  To create a new website with demo content, run:\n\n    cecil.phar new:site --demo\n\n  To override an existing website, run:\n\n    cecil.phar new:site --force</code></pre>\n<h2 id=\"fichiers-crees\">Fichiers créés<a class=\"heading-anchor\" href=\"#fichiers-crees\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>La commande crée les fichiers suivants :</p>\n<ul>\n<li><code translate=\"no\">cecil.yml</code> : la configuration, avec des exemples commentés des options courantes</li>\n<li><code translate=\"no\">pages/index.md</code> : la page d'accueil</li>\n<li><code translate=\"no\">assets/favicon.png</code> et <code translate=\"no\">assets/icon.png</code> : le favicon et l'image par défaut des cartes des réseaux sociaux</li>\n<li><code translate=\"no\">static/favicon.ico</code> : le favicon historique</li>\n<li><code translate=\"no\">README.md</code> et <code translate=\"no\">.gitignore</code> (<code translate=\"no\">_site/</code>, <code translate=\"no\">.cache/</code> et <code translate=\"no\">.cecil/</code>), s'ils n'existent pas déjà</li>\n<li><code translate=\"no\">.github/workflows/build-and-deploy.yml</code> : un workflow GitHub Actions pour <a href=\"https://cecil.app/fr/comment-faire/deploiement-github-pages/\" target=\"_blank\" rel=\"noopener noreferrer\">déployer sur GitHub Pages</a>, si demandé</li>\n</ul>\n<p>Avec l'option <code translate=\"no\">--demo</code>, elle ajoute aussi du contenu de démonstration : un blog (avec tags, pagination, un brouillon et une traduction en français), une section de documentation (triée par poids, avec une table des matières activée par <code translate=\"no\">cascade</code>), des templates personnalisés, une feuille de style Sass, un fichier de données et des traductions.</p>",
      "language": "fr"
    },
    {
      "id": "https://cloudflare.cecil.app/fr/documentation/commandes/new-page/",
      "url": "https://cloudflare.cecil.app/fr/documentation/commandes/new-page/",
      "title": "new:page",
      "summary": "Créer une nouvelle page, éventuellement à partir d’un modèle.",
      "date_published": "2026-03-27T00:00:00+00:00",
      "date_modified": "2026-12-01T00:00:00+00:00","content_text": "new:page\nCrée une nouvelle page.\nUtilisation\nDescription:\n  Creates a new page\n\nUsage:\n  new:page [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                        Use the given path as working directory\n\nOptions:\n      --name=NAME             Page path name\n      --slugify|--no-slugify  Slugify file name (or disable --no-slugify)\n  -p, --prefix                Prefix the file name with the current date (`YYYY-MM-DD`)\n  -f, --force                 Override the file if already exist\n  -o, --open                  Open editor automatically\n      --editor=EDITOR         Editor to use with open option\n  -h, --help                  Display help for the given command. When no command is given display help for the list command\n      --silent                Do not output any message\n  -q, --quiet                 Only errors are displayed. All other output is suppressed\n  -V, --version               Display this application version\n      --ansi|--no-ansi        Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction        Do not ask any interactive question\n  -v|vv|vvv, --verbose        Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The new:page command creates a new page file.\n  If you run this command without any options, it will ask you for the page name and other options.\n\n    cecil.phar new:page\n    cecil.phar new:page --name=path\/to\/a-page.md\n    cecil.phar new:page --name=path\/to\/A Page.md --slugify\n\n  To create a new page with a date prefix (i.e: `YYYY-MM-DD`), run:\n\n    cecil.phar new:page --prefix\n\n  To create a new page and open it with an editor, run:\n\n    cecil.phar new:page --open --editor=editor\n\n  To override an existing page, run:\n\n    cecil.phar new:page --force\nModèles de page\nVous pouvez définir vos propres modèles pour vos nouvelles pages dans le répertoire models :\n\nLe modèle d’une section doit porter le nom de la section (par exemple blog.md pour les pages créées dans blog\/)\nLe modèle des pages racine doit être nommé default.md\n\nUne page créée dans une section sans modèle utilise le modèle intégré.\nUn modèle est un template Twig, rendu lors de la création de la page. Les variables suivantes sont disponibles :\n\n\n\nVariable\nDescription\n\n\n\n\n{{ title }}\nLe titre, déduit du nom du fichier (sans extension, tirets remplacés par des espaces, première lettre en majuscule)\n\n\n{{ date }}\nLa date actuelle (AAAA-MM-JJ)\n\n\n{{ name }}\nLe nom du fichier, sans extension\n\n\n{{ section }}\nLa section (premier répertoire du chemin de la page), vide pour les pages racine\n\n\n{{ path }}\nLe chemin du fichier de la page, relatif au répertoire des pages\n\n\n{{ site }}\nLa configuration du site (par exemple {{ site.author.name }})\n\n\n\nTous les filtres et fonctions natifs de Twig sont utilisables (par exemple {{ date|date('d\/m\/Y') }}), ainsi que deux filtres supplémentaires :\n\nyaml_encode : encode une valeur pour le front matter, en l’entourant de guillemets si nécessaire (par exemple un titre contenant : ou #)\nslugify : convertit une chaîne en slug\n\nExemple de modèle models\/blog.md :\n---\ntitle: {{ title|yaml_encode }}\ndate: {{ date }}\nauthor: {{ site.author.name|default('Anonyme') }}\ntags: [{{ section }}]\n---\n_Votre contenu ici_\nUne variable non définie provoque une erreur. Pour conserver telle quelle une syntaxe Twig dans la page créée, entourez-la d’un bloc {% verbatim %}.\nLes marqueurs %title% et %date% des versions précédentes sont toujours pris en charge mais dépréciés : remplacez-les par {{ title }} et {{ date }}.\nOuvrir avec votre éditeur\nAvec l’option --open, la page est ouverte automatiquement avec l’éditeur défini par la clé editor de votre fichier de configuration (par exemple editor: typora), ou avec celui indiqué par l’option --editor.",
      "content_html": "<h1>new:page</h1>\n<p>Crée une nouvelle page.</p>\n<h2 id=\"utilisation\">Utilisation<a class=\"heading-anchor\" href=\"#utilisation\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">Description:\n  Creates a new page\n\nUsage:\n  new:page [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                        Use the given path as working directory\n\nOptions:\n      --name=NAME             Page path name\n      --slugify|--no-slugify  Slugify file name (or disable --no-slugify)\n  -p, --prefix                Prefix the file name with the current date (`YYYY-MM-DD`)\n  -f, --force                 Override the file if already exist\n  -o, --open                  Open editor automatically\n      --editor=EDITOR         Editor to use with open option\n  -h, --help                  Display help for the given command. When no command is given display help for the list command\n      --silent                Do not output any message\n  -q, --quiet                 Only errors are displayed. All other output is suppressed\n  -V, --version               Display this application version\n      --ansi|--no-ansi        Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction        Do not ask any interactive question\n  -v|vv|vvv, --verbose        Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The new:page command creates a new page file.\n  If you run this command without any options, it will ask you for the page name and other options.\n\n    cecil.phar new:page\n    cecil.phar new:page --name=path/to/a-page.md\n    cecil.phar new:page --name=path/to/A Page.md --slugify\n\n  To create a new page with a date prefix (i.e: `YYYY-MM-DD`), run:\n\n    cecil.phar new:page --prefix\n\n  To create a new page and open it with an editor, run:\n\n    cecil.phar new:page --open --editor=editor\n\n  To override an existing page, run:\n\n    cecil.phar new:page --force</code></pre>\n<h2 id=\"modeles-de-page\">Modèles de page<a class=\"heading-anchor\" href=\"#modeles-de-page\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Vous pouvez définir vos propres modèles pour vos nouvelles pages dans le répertoire <code translate=\"no\">models</code> :</p>\n<ol>\n<li>Le modèle d’une section doit porter le nom de la section (par exemple <code translate=\"no\">blog.md</code> pour les pages créées dans <code translate=\"no\">blog/</code>)</li>\n<li>Le modèle des pages racine doit être nommé <code translate=\"no\">default.md</code></li>\n</ol>\n<p>Une page créée dans une section sans modèle utilise le modèle intégré.</p>\n<p>Un modèle est un template <a href=\"https://twig.symfony.com\" target=\"_blank\" rel=\"noopener noreferrer\">Twig</a>, rendu lors de la création de la page. Les variables suivantes sont disponibles :</p>\n<table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code translate=\"no\">{{ title }}</code></td>\n<td>Le titre, déduit du nom du fichier (sans extension, tirets remplacés par des espaces, première lettre en majuscule)</td>\n</tr>\n<tr>\n<td><code translate=\"no\">{{ date }}</code></td>\n<td>La date actuelle (<code translate=\"no\">AAAA-MM-JJ</code>)</td>\n</tr>\n<tr>\n<td><code translate=\"no\">{{ name }}</code></td>\n<td>Le nom du fichier, sans extension</td>\n</tr>\n<tr>\n<td><code translate=\"no\">{{ section }}</code></td>\n<td>La section (premier répertoire du chemin de la page), vide pour les pages racine</td>\n</tr>\n<tr>\n<td><code translate=\"no\">{{ path }}</code></td>\n<td>Le chemin du fichier de la page, relatif au répertoire des pages</td>\n</tr>\n<tr>\n<td><code translate=\"no\">{{ site }}</code></td>\n<td>La configuration du site (par exemple <code translate=\"no\">{{ site.author.name }}</code>)</td>\n</tr>\n</tbody>\n</table>\n<p>Tous les filtres et fonctions natifs de Twig sont utilisables (par exemple <code translate=\"no\">{{ date|date('d/m/Y') }}</code>), ainsi que deux filtres supplémentaires :</p>\n<ul>\n<li><code translate=\"no\">yaml_encode</code> : encode une valeur pour le front matter, en l’entourant de guillemets si nécessaire (par exemple un titre contenant <code translate=\"no\">:</code> ou <code translate=\"no\">#</code>)</li>\n<li><code translate=\"no\">slugify</code> : convertit une chaîne en slug</li>\n</ul>\n<p>Exemple de modèle <code translate=\"no\">models/blog.md</code> :</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"xml\">---\ntitle: </span><span class=\"hljs-template-variable\">{{ title|yaml_encode }}</span><span class=\"xml\">\ndate: </span><span class=\"hljs-template-variable\">{{ <span class=\"hljs-name\">date</span> }}</span><span class=\"xml\">\nauthor: </span><span class=\"hljs-template-variable\">{{ site.author.name|<span class=\"hljs-keyword\">default</span>('Anonyme') }}</span><span class=\"xml\">\ntags: [</span><span class=\"hljs-template-variable\">{{ section }}</span><span class=\"xml\">]\n---\n_Votre contenu ici_</span></code></pre>\n<p>Une variable non définie provoque une erreur. Pour conserver telle quelle une syntaxe Twig dans la page créée, entourez-la d’un bloc <code translate=\"no\">{% verbatim %}</code>.</p>\n<aside class=\"note note-info\"><p>Les marqueurs <code translate=\"no\">%title%</code> et <code translate=\"no\">%date%</code> des versions précédentes sont toujours pris en charge mais dépréciés : remplacez-les par <code translate=\"no\">{{ title }}</code> et <code translate=\"no\">{{ date }}</code>.</p></aside>\n<h2 id=\"ouvrir-avec-votre-editeur\">Ouvrir avec votre éditeur<a class=\"heading-anchor\" href=\"#ouvrir-avec-votre-editeur\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Avec l’option <code translate=\"no\">--open</code>, la page est ouverte automatiquement avec l’éditeur défini par la clé <code translate=\"no\">editor</code> de votre fichier de configuration (par exemple <code translate=\"no\">editor: typora</code>), ou avec celui indiqué par l’option <code translate=\"no\">--editor</code>.</p>",
      "language": "fr"
    },
    {
      "id": "https://cloudflare.cecil.app/fr/documentation/commandes/serve/",
      "url": "https://cloudflare.cecil.app/fr/documentation/commandes/serve/",
      "title": "serve",
      "summary": "Prévisualiser le site avec le serveur intégré.",
      "date_published": "2026-03-27T00:00:00+00:00",
      "date_modified": "2026-10-16T00:00:00+00:00","content_text": "serve\nGénère et sert le site en local.\nLe serveur web est conçu pour faciliter les tests d’un site. Il n’a pas vocation à être un serveur web complet et ne doit pas être utilisé sur un réseau public.\nUtilisation\nDescription:\n  Starts the built-in server\n\nUsage:\n  serve [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                             Use the given path as working directory\n\nOptions:\n  -o, --open                       Open web browser automatically\n      --host=HOST                  Server host [default: \"localhost\"]\n      --port=PORT                  Server port [default: \"8000\"]\n  -w, --watch|--no-watch           Enable (or disable --no-watch) changes watcher (enabled by default)\n  -i, --incremental                Enable incremental builds (rebuild only changed pages)\n  -d, --drafts                     Include drafts\n      --optimize|--no-optimize     Enable (or disable --no-optimize) optimization of generated files\n  -c, --config=CONFIG              Set the path to extra config files (comma-separated)\n      --clear-cache[=CLEAR-CACHE]  Clear cache before build (optional cache key as regular expression) [default: false]\n  -p, --page=PAGE                  Build a specific page\n      --no-ignore-vcs              Changes watcher must not ignore VCS directories\n  -m, --metrics                    Show build metrics (duration and memory) of each step\n      --timeout=TIMEOUT            Sets the process timeout (max. runtime) in seconds [default: 7200]\n      --notify                     Send desktop notification on server start\n  -b, --background                 Run the server in the background\n  -h, --help                       Display help for the given command. When no command is given display help for the list command\n      --silent                     Do not output any message\n  -q, --quiet                      Only errors are displayed. All other output is suppressed\n  -V, --version                    Display this application version\n      --ansi|--no-ansi             Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction             Do not ask any interactive question\n  -v|vv|vvv, --verbose             Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The serve command starts the live-reloading-built-in web server.\n\n    cecil.phar serve\n    cecil.phar serve path\/to\/the\/working\/directory\n    cecil.phar serve --open\n    cecil.phar serve --drafts\n    cecil.phar serve --no-watch\n\n  To speed up local development you can enable incremental builds with the --incremental option.\n  When content pages change, Cecil rebuilds just those pages.\n  When templates change, Cecil rebuilds only pages using those templates (including Twig dependencies such as extends\/include).\n  Any other change (data, config, static or asset file, or file deletion) triggers a full rebuild:\n\n    cecil.phar serve --incremental\n\n  You can use a custom host and port by using the --host and --port options:\n\n    cecil.phar serve --host=127.0.0.1 --port=8080\n\n  To build the website with an extra configuration file, you can use the --config option.\n  This is useful during local development to override some settings without modifying the main configuration:\n\n    cecil.phar serve --config=config\/dev.yml\n\n  To start the server with changes watcher not ignoring VCS directories, run:\n\n    cecil.phar serve --no-ignore-vcs\n\n  To define the process timeout (in seconds), run:\n\n    cecil.phar serve --timeout=7200\n\n  Send a desktop notification on server start, run:\n\n    cecil.phar serve --notify\n\n  To run the server in the background, run:\n\n    cecil.phar serve --background\n    cecil.phar serve -b\n\n  Then stop it with:\n\n    cecil.phar serve:stop\nEn mode arrière-plan, les modifications de fichiers ne sont pas surveillées.\nserve:background\nAlias de serve --background : démarre le serveur intégré en arrière-plan sans occuper le terminal. Cette commande accepte les mêmes options que serve.\nDescription:\n  Starts the built-in server in the background (alias of `serve --background`)\n\nUsage:\n  serve:background [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                             Use the given path as working directory\n\nOptions:\n  -o, --open                       Open web browser automatically\n      --host=HOST                  Server host [default: \"localhost\"]\n      --port=PORT                  Server port [default: \"8000\"]\n  -w, --watch|--no-watch           Enable (or disable --no-watch) changes watcher (enabled by default)\n  -i, --incremental                Enable incremental builds (rebuild only changed pages)\n  -d, --drafts                     Include drafts\n      --optimize|--no-optimize     Enable (or disable --no-optimize) optimization of generated files\n  -c, --config=CONFIG              Set the path to extra config files (comma-separated)\n      --clear-cache[=CLEAR-CACHE]  Clear cache before build (optional cache key as regular expression) [default: false]\n  -p, --page=PAGE                  Build a specific page\n      --no-ignore-vcs              Changes watcher must not ignore VCS directories\n  -m, --metrics                    Show build metrics (duration and memory) of each step\n      --timeout=TIMEOUT            Sets the process timeout (max. runtime) in seconds [default: 7200]\n      --notify                     Send desktop notification on server start\n  -b, --background                 Run the server in the background\n  -h, --help                       Display help for the given command. When no command is given display help for the list command\n      --silent                     Do not output any message\n  -q, --quiet                      Only errors are displayed. All other output is suppressed\n  -V, --version                    Display this application version\n      --ansi|--no-ansi             Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction             Do not ask any interactive question\n  -v|vv|vvv, --verbose             Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The serve:background command starts the built-in web server in the background.\n\n    cecil.phar serve:background\n    cecil.phar serve:background path\/to\/the\/working\/directory\n\n  This command is an alias of serve --background.\n\n  Stop the server with:\n\n    cecil.phar serve:stop\nserve:log\nAffiche les journaux combinés du serveur et des erreurs, triés par date.\nDescription:\n  Shows combined server and error logs\n\nUsage:\n  serve:log [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                  Use the given path as working directory\n\nOptions:\n  -l, --lines=LINES     Number of entries to display [default: 25]\n  -h, --help            Display help for the given command. When no command is given display help for the list command\n      --silent          Do not output any message\n  -q, --quiet           Only errors are displayed. All other output is suppressed\n  -V, --version         Display this application version\n      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction  Do not ask any interactive question\n  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The serve:log command displays entries from combined server and error logs.\n\n    cecil.phar serve:log\n    cecil.phar serve:log path\/to\/the\/working\/directory\n    cecil.phar serve:log --lines=100\n    cecil.phar serve:log -l 100\nLes journaux sont lus depuis les fichiers .cecil\/errors.log et .cecil\/server.log, ce qui est utile pour déboguer le serveur de développement local.",
      "content_html": "<h1>serve</h1>\n<p>Génère et sert le site en local.</p>\n<aside class=\"note note-warning\"><p>Le serveur web est conçu pour faciliter les tests d’un site. Il n’a pas vocation à être un serveur web complet et ne doit pas être utilisé sur un réseau public.</p></aside>\n<h2 id=\"utilisation\">Utilisation<a class=\"heading-anchor\" href=\"#utilisation\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">Description:\n  Starts the built-in server\n\nUsage:\n  serve [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                             Use the given path as working directory\n\nOptions:\n  -o, --open                       Open web browser automatically\n      --host=HOST                  Server host [default: \"localhost\"]\n      --port=PORT                  Server port [default: \"8000\"]\n  -w, --watch|--no-watch           Enable (or disable --no-watch) changes watcher (enabled by default)\n  -i, --incremental                Enable incremental builds (rebuild only changed pages)\n  -d, --drafts                     Include drafts\n      --optimize|--no-optimize     Enable (or disable --no-optimize) optimization of generated files\n  -c, --config=CONFIG              Set the path to extra config files (comma-separated)\n      --clear-cache[=CLEAR-CACHE]  Clear cache before build (optional cache key as regular expression) [default: false]\n  -p, --page=PAGE                  Build a specific page\n      --no-ignore-vcs              Changes watcher must not ignore VCS directories\n  -m, --metrics                    Show build metrics (duration and memory) of each step\n      --timeout=TIMEOUT            Sets the process timeout (max. runtime) in seconds [default: 7200]\n      --notify                     Send desktop notification on server start\n  -b, --background                 Run the server in the background\n  -h, --help                       Display help for the given command. When no command is given display help for the list command\n      --silent                     Do not output any message\n  -q, --quiet                      Only errors are displayed. All other output is suppressed\n  -V, --version                    Display this application version\n      --ansi|--no-ansi             Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction             Do not ask any interactive question\n  -v|vv|vvv, --verbose             Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The serve command starts the live-reloading-built-in web server.\n\n    cecil.phar serve\n    cecil.phar serve path/to/the/working/directory\n    cecil.phar serve --open\n    cecil.phar serve --drafts\n    cecil.phar serve --no-watch\n\n  To speed up local development you can enable incremental builds with the --incremental option.\n  When content pages change, Cecil rebuilds just those pages.\n  When templates change, Cecil rebuilds only pages using those templates (including Twig dependencies such as extends/include).\n  Any other change (data, config, static or asset file, or file deletion) triggers a full rebuild:\n\n    cecil.phar serve --incremental\n\n  You can use a custom host and port by using the --host and --port options:\n\n    cecil.phar serve --host=127.0.0.1 --port=8080\n\n  To build the website with an extra configuration file, you can use the --config option.\n  This is useful during local development to override some settings without modifying the main configuration:\n\n    cecil.phar serve --config=config/dev.yml\n\n  To start the server with changes watcher not ignoring VCS directories, run:\n\n    cecil.phar serve --no-ignore-vcs\n\n  To define the process timeout (in seconds), run:\n\n    cecil.phar serve --timeout=7200\n\n  Send a desktop notification on server start, run:\n\n    cecil.phar serve --notify\n\n  To run the server in the background, run:\n\n    cecil.phar serve --background\n    cecil.phar serve -b\n\n  Then stop it with:\n\n    cecil.phar serve:stop</code></pre>\n<p>En mode arrière-plan, les modifications de fichiers ne sont pas surveillées.</p>\n<h2 id=\"serve-background\">serve:background<a class=\"heading-anchor\" href=\"#serve-background\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Alias de <code translate=\"no\">serve --background</code> : démarre le serveur intégré en arrière-plan sans occuper le terminal. Cette commande accepte les mêmes options que <code translate=\"no\">serve</code>.</p>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">Description:\n  Starts the built-in server in the background (alias of `serve --background`)\n\nUsage:\n  serve:background [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                             Use the given path as working directory\n\nOptions:\n  -o, --open                       Open web browser automatically\n      --host=HOST                  Server host [default: \"localhost\"]\n      --port=PORT                  Server port [default: \"8000\"]\n  -w, --watch|--no-watch           Enable (or disable --no-watch) changes watcher (enabled by default)\n  -i, --incremental                Enable incremental builds (rebuild only changed pages)\n  -d, --drafts                     Include drafts\n      --optimize|--no-optimize     Enable (or disable --no-optimize) optimization of generated files\n  -c, --config=CONFIG              Set the path to extra config files (comma-separated)\n      --clear-cache[=CLEAR-CACHE]  Clear cache before build (optional cache key as regular expression) [default: false]\n  -p, --page=PAGE                  Build a specific page\n      --no-ignore-vcs              Changes watcher must not ignore VCS directories\n  -m, --metrics                    Show build metrics (duration and memory) of each step\n      --timeout=TIMEOUT            Sets the process timeout (max. runtime) in seconds [default: 7200]\n      --notify                     Send desktop notification on server start\n  -b, --background                 Run the server in the background\n  -h, --help                       Display help for the given command. When no command is given display help for the list command\n      --silent                     Do not output any message\n  -q, --quiet                      Only errors are displayed. All other output is suppressed\n  -V, --version                    Display this application version\n      --ansi|--no-ansi             Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction             Do not ask any interactive question\n  -v|vv|vvv, --verbose             Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The serve:background command starts the built-in web server in the background.\n\n    cecil.phar serve:background\n    cecil.phar serve:background path/to/the/working/directory\n\n  This command is an alias of serve --background.\n\n  Stop the server with:\n\n    cecil.phar serve:stop</code></pre>\n<h2 id=\"serve-log\">serve:log<a class=\"heading-anchor\" href=\"#serve-log\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Affiche les journaux combinés du serveur et des erreurs, triés par date.</p>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">Description:\n  Shows combined server and error logs\n\nUsage:\n  serve:log [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                  Use the given path as working directory\n\nOptions:\n  -l, --lines=LINES     Number of entries to display [default: 25]\n  -h, --help            Display help for the given command. When no command is given display help for the list command\n      --silent          Do not output any message\n  -q, --quiet           Only errors are displayed. All other output is suppressed\n  -V, --version         Display this application version\n      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction  Do not ask any interactive question\n  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The serve:log command displays entries from combined server and error logs.\n\n    cecil.phar serve:log\n    cecil.phar serve:log path/to/the/working/directory\n    cecil.phar serve:log --lines=100\n    cecil.phar serve:log -l 100</code></pre>\n<p>Les journaux sont lus depuis les fichiers <code translate=\"no\">.cecil/errors.log</code> et <code translate=\"no\">.cecil/server.log</code>, ce qui est utile pour déboguer le serveur de développement local.</p>",
      "language": "fr"
    },
    {
      "id": "https://cloudflare.cecil.app/fr/documentation/commandes/build/",
      "url": "https://cloudflare.cecil.app/fr/documentation/commandes/build/",
      "title": "build",
      "summary": "Générer le site.",
      "date_published": "2026-03-27T00:00:00+00:00",
      "date_modified": "2026-11-01T00:00:00+00:00","content_text": "build\nGénère le site.\nUtilisation\nDescription:\n  Builds the website\n\nUsage:\n  build [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                               Use the given path as working directory\n\nOptions:\n  -d, --drafts                       Include drafts\n  -u, --baseurl=BASEURL              Set the base URL\n  -o, --output=OUTPUT                Set the output directory\n      --optimize|--no-optimize       Enable (or disable --no-optimize) optimization of generated files\n      --dry-run                      Build without saving\n  -c, --config=CONFIG                Set the path to extra config files (comma-separated)\n      --clear-cache[=CLEAR-CACHE]    Clear cache before build (optional cache key as regular expression) [default: false]\n  -p, --page=PAGE                    Build a specific page\n      --render-subset=RENDER-SUBSET  Render a subset of pages\n      --show-pages                   Show list of built pages in a table\n  -m, --metrics                      Show build metrics (duration and memory) of each step\n      --notify                       Send desktop notification on build completion\n  -h, --help                         Display help for the given command. When no command is given display help for the list command\n      --silent                       Do not output any message\n  -q, --quiet                        Only errors are displayed. All other output is suppressed\n  -V, --version                      Display this application version\n      --ansi|--no-ansi               Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction               Do not ask any interactive question\n  -v|vv|vvv, --verbose               Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The build command generates the website in the output directory.\n\n    cecil.phar build\n    cecil.phar build path\/to\/the\/working\/directory\n    cecil.phar build --baseurl=https:\/\/example.com\/\n    cecil.phar build --output=_site\n\n  To build the website with optimization of generated files, you can use the --optimize option.\n  This is useful to reduce the size of the generated files and improve performance:\n\n    cecil.phar build --optimize\n    cecil.phar build --no-optimize\n\n  To build the website without overwriting files in the output directory, you can use the --dry-run option.\n  This is useful to check what would be built without actually writing files:\n\n    cecil.phar build --dry-run\n\n  To build the website with a specific subset of rendered pages, you can use the --render-subset option.\n  This is useful to build only a part of the website, for example, only \"hot\" pages or a specific section:\n\n    cecil.phar build --render-subset=subset\n\n  To show build steps metrics, run:\n\n    cecil.phar build --metrics\n\n  Send a desktop notification on build completion, run:\n\n    cecil.phar build --notify\nMettre en ligne\nPar défaut, le site est généré dans le répertoire _site et peut être déployé tel quel sur n’importe quel serveur web ou service d’hébergement statique.\nPour générer et déployer le site automatiquement à chaque push sur un dépôt Git, Cecil fournit :\n\n\nun script de build, à utiliser comme commande de build sur une plateforme Jamstack ou un service d’intégration continue :\ncurl -sSOL https:\/\/cecil.app\/build.sh &amp;&amp; bash .\/build.sh\nIl télécharge Cecil (ou son binaire autonome si PHP n’est pas disponible), installe les thèmes et génère le site, en déduisant le contexte de build (production ou preview) et l’URL de base à partir de la plateforme.\nDéfinissez la variable d’environnement CECIL_ENV pour forcer le contexte de build, CECIL_VERSION pour utiliser une version précise de Cecil et CECIL_CMD_OPTIONS pour ajouter des options à la commande build (ex. : --optimize) ; les autres variables préfixées par CECIL_ surchargent la configuration (ex. : CECIL_OUTPUT_DIR).\n\n\nune GitHub Action, Cecil Action, pour générer le site dans un workflow GitHub Actions : la commande new:site peut créer un workflow qui déploie sur GitHub Pages.\n\n\nVoir Mettre en ligne pour des configurations prêtes à l’emploi (Netlify, Vercel, Cloudflare Pages, GitHub Pages, GitLab CI, etc.).",
      "content_html": "<h1>build</h1>\n<p>Génère le site.</p>\n<h2 id=\"utilisation\">Utilisation<a class=\"heading-anchor\" href=\"#utilisation\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">Description:\n  Builds the website\n\nUsage:\n  build [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                               Use the given path as working directory\n\nOptions:\n  -d, --drafts                       Include drafts\n  -u, --baseurl=BASEURL              Set the base URL\n  -o, --output=OUTPUT                Set the output directory\n      --optimize|--no-optimize       Enable (or disable --no-optimize) optimization of generated files\n      --dry-run                      Build without saving\n  -c, --config=CONFIG                Set the path to extra config files (comma-separated)\n      --clear-cache[=CLEAR-CACHE]    Clear cache before build (optional cache key as regular expression) [default: false]\n  -p, --page=PAGE                    Build a specific page\n      --render-subset=RENDER-SUBSET  Render a subset of pages\n      --show-pages                   Show list of built pages in a table\n  -m, --metrics                      Show build metrics (duration and memory) of each step\n      --notify                       Send desktop notification on build completion\n  -h, --help                         Display help for the given command. When no command is given display help for the list command\n      --silent                       Do not output any message\n  -q, --quiet                        Only errors are displayed. All other output is suppressed\n  -V, --version                      Display this application version\n      --ansi|--no-ansi               Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction               Do not ask any interactive question\n  -v|vv|vvv, --verbose               Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The build command generates the website in the output directory.\n\n    cecil.phar build\n    cecil.phar build path/to/the/working/directory\n    cecil.phar build --baseurl=https://example.com/\n    cecil.phar build --output=_site\n\n  To build the website with optimization of generated files, you can use the --optimize option.\n  This is useful to reduce the size of the generated files and improve performance:\n\n    cecil.phar build --optimize\n    cecil.phar build --no-optimize\n\n  To build the website without overwriting files in the output directory, you can use the --dry-run option.\n  This is useful to check what would be built without actually writing files:\n\n    cecil.phar build --dry-run\n\n  To build the website with a specific subset of rendered pages, you can use the --render-subset option.\n  This is useful to build only a part of the website, for example, only \"hot\" pages or a specific section:\n\n    cecil.phar build --render-subset=subset\n\n  To show build steps metrics, run:\n\n    cecil.phar build --metrics\n\n  Send a desktop notification on build completion, run:\n\n    cecil.phar build --notify</code></pre>\n<h2 id=\"deploy\">Mettre en ligne<a class=\"heading-anchor\" href=\"#deploy\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Par défaut, le site est généré dans le répertoire <strong><code translate=\"no\">_site</code></strong> et <strong>peut être déployé tel quel</strong> sur n’importe quel serveur web ou service d’hébergement statique.</p>\n<p>Pour générer et déployer le site automatiquement à chaque push sur un dépôt Git, Cecil fournit :</p>\n<ul>\n<li>\n<p>un <strong>script de build</strong>, à utiliser comme commande de build sur une plateforme Jamstack ou un service d’intégration continue :</p>\n<pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">curl -sSOL https://cecil.app/build.sh &amp;&amp; bash ./build.sh</code></pre>\n<p>Il télécharge Cecil (ou son <a href=\"../getting-started/2-installation.fr.md#standalone-binary\">binaire autonome</a> si PHP n’est pas disponible), installe les thèmes et génère le site, en déduisant le contexte de build (<code translate=\"no\">production</code> ou <code translate=\"no\">preview</code>) et l’URL de base à partir de la plateforme.<br>\nDéfinissez la variable d’environnement <code translate=\"no\">CECIL_ENV</code> pour forcer le contexte de build, <code translate=\"no\">CECIL_VERSION</code> pour utiliser une version précise de Cecil et <code translate=\"no\">CECIL_CMD_OPTIONS</code> pour ajouter des options à la commande <code translate=\"no\">build</code> (ex. : <code translate=\"no\">--optimize</code>) ; les autres variables préfixées par <code translate=\"no\">CECIL_</code> surchargent la <a href=\"../configuration/index.fr.md\">configuration</a> (ex. : <code translate=\"no\">CECIL_OUTPUT_DIR</code>).</p>\n</li>\n<li>\n<p>une <strong>GitHub Action</strong>, <a href=\"https://github.com/Cecilapp/Cecil-Action\" target=\"_blank\" rel=\"noopener noreferrer\">Cecil Action</a>, pour générer le site dans un workflow GitHub Actions : la commande <a href=\"1-new-site.fr.md\"><code translate=\"no\">new:site</code></a> peut créer un workflow qui déploie sur GitHub Pages.</p>\n</li>\n</ul>\n<aside class=\"note note-tip\"><p>Voir <a href=\"https://cecil.app/fr/documentation/mettre-en-ligne/\" target=\"_blank\" rel=\"noopener noreferrer\">Mettre en ligne</a> pour des configurations prêtes à l’emploi (Netlify, Vercel, Cloudflare Pages, GitHub Pages, GitLab CI, etc.).</p></aside>",
      "language": "fr"
    },
    {
      "id": "https://cloudflare.cecil.app/fr/documentation/commandes/doctor/",
      "url": "https://cloudflare.cecil.app/fr/documentation/commandes/doctor/",
      "title": "doctor",
      "summary": "Diagnostiquer la configuration, le front matter, le SEO et les liens.",
      "date_published": "2026-03-27T00:00:00+00:00",
      "date_modified": "2026-10-19T00:00:00+00:00","content_text": "doctor\nDiagnostique le site courant et l’environnement Cecil.\nUtilisation\nDescription:\n  Diagnoses the site configuration\n\nUsage:\n  doctor [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                  Use the given path as working directory\n\nOptions:\n  -c, --config=CONFIG   Set the path to an extra configuration file\n  -h, --help            Display help for the given command. When no command is given display help for the list command\n      --silent          Do not output any message\n  -q, --quiet           Only errors are displayed. All other output is suppressed\n  -V, --version         Display this application version\n      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction  Do not ask any interactive question\n  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The doctor command diagnoses the current site and Cecil environment.\n\n    cecil.phar doctor\n    cecil.phar doctor path\/to\/the\/working\/directory\n\n  To inspect a site with an extra configuration file, run:\n\n    cecil.phar doctor --config=config.yml\ndoctor:cache\nAffiche les réglages du cache (caches activés, répertoire) et son utilisation (nombre de fichiers et taille de chaque type de cache).\nDescription:\n  Shows cache status\n\nUsage:\n  doctor:cache [&lt;path&gt;]\n\nArguments:\n  path                  Use the given path as working directory\n\nOptions:\n  -h, --help            Display help for the given command. When no command is given display help for the list command\n      --silent          Do not output any message\n  -q, --quiet           Only errors are displayed. All other output is suppressed\n  -V, --version         Display this application version\n      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction  Do not ask any interactive question\n  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The doctor:cache command shows cache settings and usage details.\ndoctor:frontmatter\nValide la syntaxe du front matter des pages.\nDescription:\n  Validates pages front matter syntax\n\nUsage:\n  doctor:frontmatter [options] [--] [&lt;path&gt;]\n  doctor:fm\n\nArguments:\n  path                  Use the given path as working directory\n\nOptions:\n  -c, --config=CONFIG   Set the path to an extra configuration file\n  -p, --page=PAGE       Validate a single page relative to the pages directory\n  -h, --help            Display help for the given command. When no command is given display help for the list command\n      --silent          Do not output any message\n  -q, --quiet           Only errors are displayed. All other output is suppressed\n  -V, --version         Display this application version\n      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction  Do not ask any interactive question\n  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The doctor:frontmatter command validates front matter syntax for pages.\n\n    cecil.phar doctor:frontmatter\n    cecil.phar doctor:frontmatter path\/to\/the\/working\/directory\n\n  To validate a single page, run:\n\n    cecil.phar doctor:frontmatter --page=blog\/post.md\n\n  To inspect a site with an extra configuration file, run:\n\n    cecil.phar doctor:frontmatter --config=config.yml\ndoctor:seo\nAudite les pages HTML rendues pour détecter les problèmes SEO courants.\nDescription:\n  Audits rendered HTML pages for common SEO issues\n\nUsage:\n  doctor:seo [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                     Use the given path as working directory\n\nOptions:\n  -c, --config=CONFIG      Set the path to an extra configuration file\n  -p, --page=PAGE          Audit a single page relative to the pages directory\n      --format=FORMAT      Output format: text (default) or json [default: \"text\"]\n      --include-generated  Include generated pages (sections, taxonomies, pagination, etc.) in audit\n      --feedback           Include findings with feedback level\n      --fail-on=FAIL-ON    Return a failure exit code when findings of this level or higher are found: bad (default), ok, feedback or never [default: \"bad\"]\n  -h, --help               Display help for the given command. When no command is given display help for the list command\n      --silent             Do not output any message\n  -q, --quiet              Only errors are displayed. All other output is suppressed\n  -V, --version            Display this application version\n      --ansi|--no-ansi     Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction     Do not ask any interactive question\n  -v|vv|vvv, --verbose     Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The doctor:seo command builds the site in dry-run mode, then audits\n  the rendered HTML output for a focused set of SEO checks.\n\n    cecil.phar doctor:seo\n    cecil.phar doctor:seo path\/to\/the\/working\/directory\n\n  To audit a single page, run:\n\n    cecil.phar doctor:seo --page=blog\/post.md\n\n  To output results as JSON for CI integration:\n\n    cecil.phar doctor:seo --format=json\n\n  To include generated pages (sections, taxonomies, pagination, etc.):\n\n    cecil.phar doctor:seo --include-generated\n\n  To include findings with feedback level:\n\n    cecil.phar doctor:seo --feedback\n\n  By default, the command fails if findings with the bad level are found.\n  To change this behavior, use the --fail-on option:\n\n    cecil.phar doctor:seo --fail-on=ok\n    cecil.phar doctor:seo --fail-on=never\n\n  To inspect a site with an extra configuration file, run:\n\n    cecil.phar doctor:seo --config=config.yml\n\n  Configure audit thresholds and checks in your configuration:\n\n    doctor:\n      seo:\n        title: { min: 30, max: 60 }\n        description: { min: 120, max: 160 }\n        content: { min_words: 300 }\n        checks:\n          title: true\n          description: true\n          canonical: true\n          h1: true\n          og_tags: true\n          img_alt: true\n          content_length: true\n          lang_attribute: true\nLa commande construit le site en mode dry-run, puis audite le HTML rendu avec un jeu de contrôles ciblés : balise title, meta description, URL canonique, structure des titres, balises Open Graph, attributs alt des images, longueur estimée du contenu et attribut lang de l’élément &lt;html&gt;.\nPar défaut, les pages générées (pages sans fichier de contenu : sections, taxonomies, pagination, etc.) sont exclues de l’audit. Utilisez --include-generated pour les inclure.\nPar défaut, les constats de niveau feedback ne sont pas listés.\nUtilisez --feedback pour inclure les constats de niveau feedback en plus des autres constats.\nExportez les résultats en JSON pour l’intégration continue avec --format=json.\nPar défaut, la commande retourne un code de sortie d’échec (1) lorsque des constats de niveau bad sont trouvés. Utilisez --fail-on=ok pour échouer également sur les constats ok, --fail-on=feedback pour échouer sur n’importe quel constat, ou --fail-on=never pour toujours réussir.\nConfiguration\nPersonnalisez les seuils d’audit et les contrôles activés dans votre fichier de configuration :\ndoctor:\n  seo:\n    title: { min: 30, max: 60 }\n    description: { min: 120, max: 160 }\n    content: { min_words: 300 }\n    checks:\n      title: true\n      description: true\n      canonical: true\n      h1: true\n      og_tags: true\n      img_alt: true\n      content_length: true\n      lang_attribute: true\ndoctor:links\nContrôle les liens internes et externes des pages rendues.\nDescription:\n  Checks internal and external links of the rendered pages\n\nUsage:\n  doctor:links [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                           Use the given path as working directory\n\nOptions:\n  -c, --config=CONFIG            Set the path to an extra configuration file\n  -p, --page=PAGE                Check links of a single page relative to the pages directory\n      --internal                 Check internal links\n      --external                 Check external links\n      --exclude=EXCLUDE          Exclude links matching this regular expression (multiple values allowed)\n      --timeout=TIMEOUT          External links request timeout, in seconds\n      --concurrency=CONCURRENCY  Number of concurrent external links requests\n      --no-cache                 Do not use cached external links results\n      --format=FORMAT            Output format: text (default) or json [default: \"text\"]\n      --include-generated        Include generated pages (sections, taxonomies, pagination, etc.) in audit\n      --feedback                 Include findings with feedback level\n      --fail-on=FAIL-ON          Return a failure exit code when findings of this level or higher are found: bad (default), ok, feedback or never [default: \"bad\"]\n  -h, --help                     Display help for the given command. When no command is given display help for the list command\n      --silent                   Do not output any message\n  -q, --quiet                    Only errors are displayed. All other output is suppressed\n  -V, --version                  Display this application version\n      --ansi|--no-ansi           Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction           Do not ask any interactive question\n  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The doctor:links command builds the site in dry-run mode, then checks the links\n  found in the rendered HTML pages (links, images, scripts, stylesheets, media, inline\n  styles) and in the linked CSS files (url() and @import).\n\n    cecil.phar doctor:links\n    cecil.phar doctor:links path\/to\/the\/working\/directory\n\n  By default, only internal links are checked. To check external links too, run:\n\n    cecil.phar doctor:links --internal --external\n\n  To check external links only, run:\n\n    cecil.phar doctor:links --external\n\n  To check links of a single page, run:\n\n    cecil.phar doctor:links --page=blog\/post.md\n\n  To exclude links matching a regular expression, run:\n\n    cecil.phar doctor:links --external --exclude=\"linkedin\\.com\" --exclude=\"^https:\/\/localhost\"\n\n  To output results as JSON for CI integration:\n\n    cecil.phar doctor:links --format=json\n\n  By default, the command fails if findings with the bad level are found.\n  To change this behavior, use the --fail-on option:\n\n    cecil.phar doctor:links --fail-on=ok\n    cecil.phar doctor:links --fail-on=never\n\n  Configure default settings in your configuration:\n\n    doctor:\n      links:\n        internal: true\n        external: false\n        timeout: 10\n        concurrency: 10\n        cache_ttl: 86400\n        exclude: ['linkedin\\.com']\nLa commande construit le site en mode dry-run, puis contrôle les liens trouvés dans les pages HTML rendues : liens (&lt;a&gt;, &lt;area&gt;, &lt;link&gt;), images (src et srcset), scripts, iframes, médias et styles en ligne. Les fichiers CSS liés depuis les pages sont également analysés (url() et @import).\n\nLiens internes : ils doivent cibler une page du site, un fichier statique ou un asset. Les fragments (#ancre) doivent correspondre à l’ID d’un élément de la page cible. Les URL absolues commençant par baseurl sont considérées comme des liens internes.\nLiens externes : ils sont requêtés en HTTP (HEAD, puis GET si le serveur refuse HEAD), en parallèle. Les résultats réussis sont mis en cache (24 heures par défaut) : utilisez --no-cache pour les contrôler à nouveau.\n\nPar défaut, seuls les liens internes sont contrôlés :\nphp cecil.phar doctor:links                       # liens internes (par défaut)\nphp cecil.phar doctor:links --external            # liens externes uniquement\nphp cecil.phar doctor:links --internal --external # les deux\nNiveaux des constats :\n\n\n\nNiveau\nSignification\n\n\n\n\nbad\nLien cassé : cible introuvable, ancre manquante, erreur HTTP (4xx, 5xx), hôte introuvable, etc.\n\n\nok\nLien fonctionnel mais améliorable : redirection, slash final manquant\n\n\nfeedback\nLien invérifiable : accès refusé (401, 403, 429, 999), probablement par une protection anti-bot, ou délai dépassé\n\n\n\nLes liens utilisant d’autres schémas que HTTP(S) (par exemple mailto:, tel:, data:) sont ignorés. Utilisez --exclude (expression régulière, insensible à la casse) pour ignorer d’autres liens.\nLes options --page, --include-generated, --feedback, --format et --fail-on se comportent comme avec doctor:seo (voir ci-dessus).\nLe contrôle des liens externes nécessite l’extension PHP cURL.\nConfiguration\nPersonnalisez les réglages par défaut dans votre fichier de configuration :\ndoctor:\n  links:\n    internal: true    # contrôle des liens internes\n    external: false   # contrôle des liens externes\n    timeout: 10       # timeout des requêtes des liens externes, en secondes\n    concurrency: 10   # nombre de requêtes simultanées des liens externes\n    cache_ttl: 86400  # durée de mise en cache des résultats réussis des liens externes, en secondes\n    exclude: []       # liens à ignorer (liste d’expressions régulières), par exemple ['linkedin\\.com', '^https:\/\/localhost']\n    useragent: ~      # en-tête User-Agent des requêtes des liens externes (`assets.remote.useragent.default` par défaut)",
      "content_html": "<h1>doctor</h1>\n<p>Diagnostique le site courant et l’environnement Cecil.</p>\n<h2 id=\"utilisation\">Utilisation<a class=\"heading-anchor\" href=\"#utilisation\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">Description:\n  Diagnoses the site configuration\n\nUsage:\n  doctor [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                  Use the given path as working directory\n\nOptions:\n  -c, --config=CONFIG   Set the path to an extra configuration file\n  -h, --help            Display help for the given command. When no command is given display help for the list command\n      --silent          Do not output any message\n  -q, --quiet           Only errors are displayed. All other output is suppressed\n  -V, --version         Display this application version\n      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction  Do not ask any interactive question\n  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The doctor command diagnoses the current site and Cecil environment.\n\n    cecil.phar doctor\n    cecil.phar doctor path/to/the/working/directory\n\n  To inspect a site with an extra configuration file, run:\n\n    cecil.phar doctor --config=config.yml</code></pre>\n<h2 id=\"doctor-cache\">doctor:cache<a class=\"heading-anchor\" href=\"#doctor-cache\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Affiche les réglages du cache (caches activés, répertoire) et son utilisation (nombre de fichiers et taille de chaque type de cache).</p>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">Description:\n  Shows cache status\n\nUsage:\n  doctor:cache [&lt;path&gt;]\n\nArguments:\n  path                  Use the given path as working directory\n\nOptions:\n  -h, --help            Display help for the given command. When no command is given display help for the list command\n      --silent          Do not output any message\n  -q, --quiet           Only errors are displayed. All other output is suppressed\n  -V, --version         Display this application version\n      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction  Do not ask any interactive question\n  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The doctor:cache command shows cache settings and usage details.</code></pre>\n<h2 id=\"doctor-frontmatter\">doctor:frontmatter<a class=\"heading-anchor\" href=\"#doctor-frontmatter\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Valide la syntaxe du front matter des pages.</p>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">Description:\n  Validates pages front matter syntax\n\nUsage:\n  doctor:frontmatter [options] [--] [&lt;path&gt;]\n  doctor:fm\n\nArguments:\n  path                  Use the given path as working directory\n\nOptions:\n  -c, --config=CONFIG   Set the path to an extra configuration file\n  -p, --page=PAGE       Validate a single page relative to the pages directory\n  -h, --help            Display help for the given command. When no command is given display help for the list command\n      --silent          Do not output any message\n  -q, --quiet           Only errors are displayed. All other output is suppressed\n  -V, --version         Display this application version\n      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction  Do not ask any interactive question\n  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The doctor:frontmatter command validates front matter syntax for pages.\n\n    cecil.phar doctor:frontmatter\n    cecil.phar doctor:frontmatter path/to/the/working/directory\n\n  To validate a single page, run:\n\n    cecil.phar doctor:frontmatter --page=blog/post.md\n\n  To inspect a site with an extra configuration file, run:\n\n    cecil.phar doctor:frontmatter --config=config.yml</code></pre>\n<h2 id=\"doctor-seo\">doctor:seo<a class=\"heading-anchor\" href=\"#doctor-seo\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Audite les pages HTML rendues pour détecter les problèmes SEO courants.</p>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">Description:\n  Audits rendered HTML pages for common SEO issues\n\nUsage:\n  doctor:seo [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                     Use the given path as working directory\n\nOptions:\n  -c, --config=CONFIG      Set the path to an extra configuration file\n  -p, --page=PAGE          Audit a single page relative to the pages directory\n      --format=FORMAT      Output format: text (default) or json [default: \"text\"]\n      --include-generated  Include generated pages (sections, taxonomies, pagination, etc.) in audit\n      --feedback           Include findings with feedback level\n      --fail-on=FAIL-ON    Return a failure exit code when findings of this level or higher are found: bad (default), ok, feedback or never [default: \"bad\"]\n  -h, --help               Display help for the given command. When no command is given display help for the list command\n      --silent             Do not output any message\n  -q, --quiet              Only errors are displayed. All other output is suppressed\n  -V, --version            Display this application version\n      --ansi|--no-ansi     Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction     Do not ask any interactive question\n  -v|vv|vvv, --verbose     Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The doctor:seo command builds the site in dry-run mode, then audits\n  the rendered HTML output for a focused set of SEO checks.\n\n    cecil.phar doctor:seo\n    cecil.phar doctor:seo path/to/the/working/directory\n\n  To audit a single page, run:\n\n    cecil.phar doctor:seo --page=blog/post.md\n\n  To output results as JSON for CI integration:\n\n    cecil.phar doctor:seo --format=json\n\n  To include generated pages (sections, taxonomies, pagination, etc.):\n\n    cecil.phar doctor:seo --include-generated\n\n  To include findings with feedback level:\n\n    cecil.phar doctor:seo --feedback\n\n  By default, the command fails if findings with the bad level are found.\n  To change this behavior, use the --fail-on option:\n\n    cecil.phar doctor:seo --fail-on=ok\n    cecil.phar doctor:seo --fail-on=never\n\n  To inspect a site with an extra configuration file, run:\n\n    cecil.phar doctor:seo --config=config.yml\n\n  Configure audit thresholds and checks in your configuration:\n\n    doctor:\n      seo:\n        title: { min: 30, max: 60 }\n        description: { min: 120, max: 160 }\n        content: { min_words: 300 }\n        checks:\n          title: true\n          description: true\n          canonical: true\n          h1: true\n          og_tags: true\n          img_alt: true\n          content_length: true\n          lang_attribute: true</code></pre>\n<p>La commande construit le site en mode dry-run, puis audite le HTML rendu avec un jeu de contrôles ciblés : balise title, meta description, URL canonique, structure des titres, balises Open Graph, attributs alt des images, longueur estimée du contenu et attribut <code translate=\"no\">lang</code> de l’élément <code translate=\"no\">&lt;html&gt;</code>.</p>\n<p>Par défaut, les pages générées (pages sans fichier de contenu : sections, taxonomies, pagination, etc.) sont exclues de l’audit. Utilisez <code translate=\"no\">--include-generated</code> pour les inclure.</p>\n<p>Par défaut, les constats de niveau <code translate=\"no\">feedback</code> ne sont pas listés.</p>\n<p>Utilisez <code translate=\"no\">--feedback</code> pour inclure les constats de niveau <code translate=\"no\">feedback</code> en plus des autres constats.</p>\n<p>Exportez les résultats en JSON pour l’intégration continue avec <code translate=\"no\">--format=json</code>.</p>\n<p>Par défaut, la commande retourne un code de sortie d’échec (<code translate=\"no\">1</code>) lorsque des constats de niveau <code translate=\"no\">bad</code> sont trouvés. Utilisez <code translate=\"no\">--fail-on=ok</code> pour échouer également sur les constats <code translate=\"no\">ok</code>, <code translate=\"no\">--fail-on=feedback</code> pour échouer sur n’importe quel constat, ou <code translate=\"no\">--fail-on=never</code> pour toujours réussir.</p>\n<h3 id=\"configuration\">Configuration<a class=\"heading-anchor\" href=\"#configuration\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Personnalisez les seuils d’audit et les contrôles activés dans votre fichier de configuration :</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">doctor:</span>\n  <span class=\"hljs-attr\">seo:</span>\n    <span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">min:</span> <span class=\"hljs-number\">30</span><span class=\"hljs-string\">,</span> <span class=\"hljs-attr\">max:</span> <span class=\"hljs-number\">60</span> <span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">description:</span> <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">min:</span> <span class=\"hljs-number\">120</span><span class=\"hljs-string\">,</span> <span class=\"hljs-attr\">max:</span> <span class=\"hljs-number\">160</span> <span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">content:</span> <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">min_words:</span> <span class=\"hljs-number\">300</span> <span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">checks:</span>\n      <span class=\"hljs-attr\">title:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">description:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">canonical:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">h1:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">og_tags:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">img_alt:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">content_length:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">lang_attribute:</span> <span class=\"hljs-literal\">true</span></code></pre>\n<h2 id=\"doctor-links\">doctor:links<a class=\"heading-anchor\" href=\"#doctor-links\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Contrôle les liens internes et externes des pages rendues.</p>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">Description:\n  Checks internal and external links of the rendered pages\n\nUsage:\n  doctor:links [options] [--] [&lt;path&gt;]\n\nArguments:\n  path                           Use the given path as working directory\n\nOptions:\n  -c, --config=CONFIG            Set the path to an extra configuration file\n  -p, --page=PAGE                Check links of a single page relative to the pages directory\n      --internal                 Check internal links\n      --external                 Check external links\n      --exclude=EXCLUDE          Exclude links matching this regular expression (multiple values allowed)\n      --timeout=TIMEOUT          External links request timeout, in seconds\n      --concurrency=CONCURRENCY  Number of concurrent external links requests\n      --no-cache                 Do not use cached external links results\n      --format=FORMAT            Output format: text (default) or json [default: \"text\"]\n      --include-generated        Include generated pages (sections, taxonomies, pagination, etc.) in audit\n      --feedback                 Include findings with feedback level\n      --fail-on=FAIL-ON          Return a failure exit code when findings of this level or higher are found: bad (default), ok, feedback or never [default: \"bad\"]\n  -h, --help                     Display help for the given command. When no command is given display help for the list command\n      --silent                   Do not output any message\n  -q, --quiet                    Only errors are displayed. All other output is suppressed\n  -V, --version                  Display this application version\n      --ansi|--no-ansi           Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction           Do not ask any interactive question\n  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\nHelp:\n  The doctor:links command builds the site in dry-run mode, then checks the links\n  found in the rendered HTML pages (links, images, scripts, stylesheets, media, inline\n  styles) and in the linked CSS files (url() and @import).\n\n    cecil.phar doctor:links\n    cecil.phar doctor:links path/to/the/working/directory\n\n  By default, only internal links are checked. To check external links too, run:\n\n    cecil.phar doctor:links --internal --external\n\n  To check external links only, run:\n\n    cecil.phar doctor:links --external\n\n  To check links of a single page, run:\n\n    cecil.phar doctor:links --page=blog/post.md\n\n  To exclude links matching a regular expression, run:\n\n    cecil.phar doctor:links --external --exclude=\"linkedin\\.com\" --exclude=\"^https://localhost\"\n\n  To output results as JSON for CI integration:\n\n    cecil.phar doctor:links --format=json\n\n  By default, the command fails if findings with the bad level are found.\n  To change this behavior, use the --fail-on option:\n\n    cecil.phar doctor:links --fail-on=ok\n    cecil.phar doctor:links --fail-on=never\n\n  Configure default settings in your configuration:\n\n    doctor:\n      links:\n        internal: true\n        external: false\n        timeout: 10\n        concurrency: 10\n        cache_ttl: 86400\n        exclude: ['linkedin\\.com']</code></pre>\n<p>La commande construit le site en mode dry-run, puis contrôle les liens trouvés dans les pages HTML rendues : liens (<code translate=\"no\">&lt;a&gt;</code>, <code translate=\"no\">&lt;area&gt;</code>, <code translate=\"no\">&lt;link&gt;</code>), images (<code translate=\"no\">src</code> et <code translate=\"no\">srcset</code>), scripts, iframes, médias et styles en ligne. Les fichiers CSS liés depuis les pages sont également analysés (<code translate=\"no\">url()</code> et <code translate=\"no\">@import</code>).</p>\n<ul>\n<li><strong>Liens internes</strong> : ils doivent cibler une page du site, un fichier statique ou un asset. Les fragments (<code translate=\"no\">#ancre</code>) doivent correspondre à l’ID d’un élément de la page cible. Les URL absolues commençant par <code translate=\"no\">baseurl</code> sont considérées comme des liens internes.</li>\n<li><strong>Liens externes</strong> : ils sont requêtés en HTTP (<code translate=\"no\">HEAD</code>, puis <code translate=\"no\">GET</code> si le serveur refuse <code translate=\"no\">HEAD</code>), en parallèle. Les résultats réussis sont mis en cache (24 heures par défaut) : utilisez <code translate=\"no\">--no-cache</code> pour les contrôler à nouveau.</li>\n</ul>\n<p>Par défaut, seuls les liens internes sont contrôlés :</p>\n<pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">php cecil.phar doctor:links                       <span class=\"hljs-comment\"># liens internes (par défaut)</span>\nphp cecil.phar doctor:links --external            <span class=\"hljs-comment\"># liens externes uniquement</span>\nphp cecil.phar doctor:links --internal --external <span class=\"hljs-comment\"># les deux</span></code></pre>\n<p>Niveaux des constats :</p>\n<table>\n<thead>\n<tr>\n<th>Niveau</th>\n<th>Signification</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code translate=\"no\">bad</code></td>\n<td>Lien cassé : cible introuvable, ancre manquante, erreur HTTP (4xx, 5xx), hôte introuvable, etc.</td>\n</tr>\n<tr>\n<td><code translate=\"no\">ok</code></td>\n<td>Lien fonctionnel mais améliorable : redirection, slash final manquant</td>\n</tr>\n<tr>\n<td><code translate=\"no\">feedback</code></td>\n<td>Lien invérifiable : accès refusé (401, 403, 429, 999), probablement par une protection anti-bot, ou délai dépassé</td>\n</tr>\n</tbody>\n</table>\n<p>Les liens utilisant d’autres schémas que HTTP(S) (par exemple <code translate=\"no\">mailto:</code>, <code translate=\"no\">tel:</code>, <code translate=\"no\">data:</code>) sont ignorés. Utilisez <code translate=\"no\">--exclude</code> (expression régulière, insensible à la casse) pour ignorer d’autres liens.</p>\n<p>Les options <code translate=\"no\">--page</code>, <code translate=\"no\">--include-generated</code>, <code translate=\"no\">--feedback</code>, <code translate=\"no\">--format</code> et <code translate=\"no\">--fail-on</code> se comportent comme avec <code translate=\"no\">doctor:seo</code> (voir ci-dessus).</p>\n<aside class=\"note note-info\"><p>Le contrôle des liens externes nécessite l’extension PHP cURL.</p></aside>\n<h3 id=\"configuration-1\">Configuration<a class=\"heading-anchor\" href=\"#configuration-1\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Personnalisez les réglages par défaut dans votre fichier de configuration :</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">doctor:</span>\n  <span class=\"hljs-attr\">links:</span>\n    <span class=\"hljs-attr\">internal:</span> <span class=\"hljs-literal\">true</span>    <span class=\"hljs-comment\"># contrôle des liens internes</span>\n    <span class=\"hljs-attr\">external:</span> <span class=\"hljs-literal\">false</span>   <span class=\"hljs-comment\"># contrôle des liens externes</span>\n    <span class=\"hljs-attr\">timeout:</span> <span class=\"hljs-number\">10</span>       <span class=\"hljs-comment\"># timeout des requêtes des liens externes, en secondes</span>\n    <span class=\"hljs-attr\">concurrency:</span> <span class=\"hljs-number\">10</span>   <span class=\"hljs-comment\"># nombre de requêtes simultanées des liens externes</span>\n    <span class=\"hljs-attr\">cache_ttl:</span> <span class=\"hljs-number\">86400</span>  <span class=\"hljs-comment\"># durée de mise en cache des résultats réussis des liens externes, en secondes</span>\n    <span class=\"hljs-attr\">exclude:</span> <span class=\"hljs-string\">[]</span>       <span class=\"hljs-comment\"># liens à ignorer (liste d’expressions régulières), par exemple ['linkedin\\.com', '^https://localhost']</span>\n    <span class=\"hljs-attr\">useragent:</span> <span class=\"hljs-string\">~</span>      <span class=\"hljs-comment\"># en-tête User-Agent des requêtes des liens externes (`assets.remote.useragent.default` par défaut)</span></code></pre>",
      "language": "fr"
    }
  ]
}
