{"id":406417,"date":"2023-10-20T12:14:57","date_gmt":"2023-10-20T12:14:57","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=406417"},"modified":"2023-10-20T12:19:11","modified_gmt":"2023-10-20T12:19:11","slug":"cloc-tools-using-odoo-cli","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/","title":{"rendered":"CLOC tools using ODOO CLI"},"content":{"rendered":"\n<p>This article gives an overview of how we can work with the CLOC tool in Odoo as a developer.<\/p>\n\n\n\n<p>Before starting this tutorial, you should have a basic idea of CLI in Odoo. If you don\u2019t have basic knowledge of Odoo CLI, read a beginner guide to&nbsp;<a href=\"https:\/\/webkul.com\/blog\/beginner-guide-odoo-clicommand-line-interface\/\" target=\"_blank\" rel=\"noreferrer noopener\">Odoo CLI<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Why do we need CLOC Tool in Odoo CLI?<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CLOC Tool in Odoo helps to count the number of relevant lines written in Python, Javascript, CSS, SCSS, or XML.<\/li>\n\n\n\n<li>Counting lines of code can help you estimate the effort required for maintenance, debugging, and further development of your Odoo customization.<\/li>\n\n\n\n<li>It helps in understanding the size and complexity of a codebase.<\/li>\n<\/ul>\n\n\n\n<p>Before moving ahead, check out our&nbsp;<a href=\"https:\/\/webkul.com\/odoo-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">Odoo development<\/a>&nbsp;services &amp; an extensive range of quality&nbsp;<a href=\"https:\/\/store.webkul.com\/Odoo.html\" target=\"_blank\" rel=\"noreferrer noopener\">Odoo Apps<\/a><em>.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to use the CLOC Tool in Odoo CLI?<\/strong><\/h2>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>1.) Counting the lines of code with addons path<\/strong><\/h4>\n\n\n\n<p>It will count the lines of code for all the modules or directories that are present in the add-ons path.<\/p>\n\n\n\n<p><strong>Syntax<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">odoo-bin cloc --addons-path=addons -d my_database<\/pre>\n\n\n\n<p>Here is the command for counting the lines of code with addons path. <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">.\/opt\/odoo\/odoo-bin cloc --addons-path=\/opt\/odoo-custom-addons -d extra-fee-check --db_host=localhost --db_user=odoo --db_password=odoo<\/pre>\n\n\n\n<p>Where, <strong>&#8220;.&#8221;<\/strong> denotes the current directory.  <strong>&#8220;-d&#8221;<\/strong> or <strong>&#8220;&#8211;database&#8221;<\/strong> denotes the database name, and also if we use <strong>&#8220;-d&#8221; or <strong>&#8220;&#8211;database&#8221;<\/strong><\/strong> then it will count the lines of code only for installed modules.<\/p>\n\n\n\n<p><strong>Note<\/strong>:- If we use an add-ons path for counting the lines of code. Then, we need to use db_user, db_password, db_host, etc.. if available in your Odoo config file.<\/p>\n\n\n\n<p><strong>Output for upper command<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1121\" height=\"142\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png\" alt=\"counting-line-of-code-in-cloc-tool-in-odoo-1\" class=\"wp-image-406487\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png 1121w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181-300x38.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181-250x32.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181-768x97.png 768w\" sizes=\"(max-width: 1121px) 100vw, 1121px\" loading=\"lazy\" \/><\/a><\/figure>\n\n\n\n<p>Here is the command for counting the lines of code with addons path and <strong>-v<\/strong> or <strong>&#8211;verbose<\/strong>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">.\/opt\/odoo\/odoo-bin cloc --addons-path=\/opt\/odoo-custom-addons -d extra-fee-check --db_host=localhost --db_user=odoo --db_password=odoo -v\n\nor\n\n.\/opt\/odoo\/odoo-bin cloc --addons-path=\/opt\/odoo-custom-addons -d extra-fee-check --db_host=localhost --db_user=odoo --db_password=odoo --verbose<\/pre>\n\n\n\n<p>Where, <strong>&#8220;-v&#8221; or &#8220;&#8211;verbose&#8221;<\/strong> is used to show the details of lines counted for each file.<\/p>\n\n\n\n<p><strong>Output<\/strong> just like this<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-182.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1087\" height=\"587\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-182.png\" alt=\"counting-line-of-code-in-cloc-tool-in-odoo-2\" class=\"wp-image-406500\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-182.png 1087w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-182-300x162.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-182-250x135.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-182-768x415.png 768w\" sizes=\"(max-width: 1087px) 100vw, 1087px\" loading=\"lazy\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>2.) Counting the lines of code with<\/strong> <strong>the<\/strong> <strong>config file<\/strong><\/h4>\n\n\n\n<p>It will count the lines of code for all the modules or directories that are present in the add-ons path.<\/p>\n\n\n\n<p>Learn how to perform database operations using <a href=\"https:\/\/webkul.com\/blog\/database-operations-using-odoo-cli\/\" target=\"_blank\" rel=\"noreferrer noopener\">Odoo CLI<\/a>.<\/p>\n\n\n\n<p><strong>Syntax<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">odoo-bin cloc -c config.conf -d my_database<\/pre>\n\n\n\n<p>Here is the command for counting the lines of code with the <strong>config file<\/strong>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">.\/opt\/odoo\/odoo-bin cloc -c \/etc\/odoo\/odoo-server.conf -d extra-fee-check<\/pre>\n\n\n\n<p>Here we have passed our custom config file path using&nbsp;<strong>&#8220;-c&#8221;<\/strong>.<\/p>\n\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-183.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1080\" height=\"139\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-183.png\" alt=\"counting-line-of-code-in-cloc-tool-in-odoo-usinf-config-files\" class=\"wp-image-406513\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-183.png 1080w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-183-300x39.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-183-250x32.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-183-768x99.png 768w\" sizes=\"(max-width: 1080px) 100vw, 1080px\" loading=\"lazy\" \/><\/a><\/figure>\n\n\n\n<p><strong>Note:-<\/strong> We can also use the <strong>&#8220;-v&#8221;<\/strong> or <strong>&#8220;&#8211;verbose&#8221;<\/strong> in the upper commands.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>3.) Counting the lines of code with<\/strong> <strong>the<\/strong> <strong>path of the module or directory<\/strong><\/h4>\n\n\n\n<p>It will count the lines of code for particular modules or directories that are present in the add-ons path.<\/p>\n\n\n\n<p><strong>Syntax<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">odoo-bin cloc -p addons\/account<\/pre>\n\n\n\n<p>Here is the command for counting the lines of code for a <strong>single<\/strong> <strong>module<\/strong>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">.\/opt\/odoo\/odoo-bin cloc -p \/opt\/odoo-custom-addons\/variant_price_extra<\/pre>\n\n\n\n<p>Where, <strong>&#8220;-p&#8221;<\/strong> or <strong>&#8220;&#8211;path&#8221;<\/strong> denotes the add-ons path.<\/p>\n\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"939\" height=\"99\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-185.png\" alt=\"counting-line-of-code-for-partiular-directory\" class=\"wp-image-406524\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-185.png 939w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-185-300x32.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-185-250x26.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-185-768x81.png 768w\" sizes=\"(max-width: 939px) 100vw, 939px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Here is another command for counting the lines of code for <strong>multiple modules<\/strong>.<\/p>\n\n\n\n<p><strong>Syntax<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">odoo-bin cloc -p addons\/account -p addons\/sale<\/pre>\n\n\n\n<p>Here is the code<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">.\/opt\/odoo\/odoo-bin cloc -p \/opt\/odoo-custom-addons\/variant_price_extra -p \/opt\/odoo-custom-addons\/odoo_magento_connect<\/pre>\n\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-187.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1037\" height=\"117\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-187.png\" alt=\"counting-line-of-code-in-for-multiple-directories\" class=\"wp-image-406527\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-187.png 1037w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-187-300x34.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-187-250x28.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-187-768x87.png 768w\" sizes=\"(max-width: 1037px) 100vw, 1037px\" loading=\"lazy\" \/><\/a><\/figure>\n\n\n\n<p><strong>Note:-<\/strong> We can also use the <strong>&#8220;-v&#8221;<\/strong> or <strong>&#8220;&#8211;verbose&#8221;<\/strong> in the upper commands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Some files are excluded from the count by default:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The manifest (<code><strong>__manifest__.py<\/strong><\/code>&nbsp;or&nbsp;<code><strong>__openerp__.py<\/strong><\/code>).<\/li>\n\n\n\n<li>The contents of the folder&nbsp;<code><strong>static\/lib<\/strong><\/code>.<\/li>\n\n\n\n<li>The tests defined in the folder&nbsp;<code><strong>tests<\/strong><\/code>&nbsp;and&nbsp;<code><strong>static\/tests<\/strong><\/code>.<\/li>\n\n\n\n<li>The migration scripts defined in the folder&nbsp;<code><strong>migrations<\/strong><\/code>&nbsp;and&nbsp;<code><strong>upgrades<\/strong><\/code>.<\/li>\n\n\n\n<li>The XML files declared in the&nbsp;<code><strong>demo<\/strong><\/code>&nbsp;or&nbsp;<code><strong>demo_xml<\/strong><\/code>&nbsp;sections of the manifest.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to exclude the custom files and directories(modules) from the count:<\/h2>\n\n\n\n<p>This can be done by the&nbsp;<code><strong>cloc_exclude<\/strong><\/code>&nbsp;<strong>entry in the manifest file<\/strong>.<\/p>\n\n\n\n<p>Here is the <strong>syntax of cloc_exclude<\/strong>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&quot;cloc_exclude&quot;: &#091;\n    &quot;lib\/common.py&quot;, # exclude a single file\n    &quot;data\/*.xml&quot;,    # exclude all XML files in a specific folder\n    &quot;example\/**\/*&quot;,  # exclude all files in a folder hierarchy recursively\n    &quot;**\/*.scss&quot;,     # exclude all scss file from the module\n]<\/pre>\n\n\n\n<p>The pattern&nbsp;<code><strong>\"**\/*<\/strong><\/code>&#8221;&nbsp;can be used to ignore an entire module. This can be useful to exclude a module from maintenance service costs. Like as,<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&quot;cloc_exclude&quot;: &#091;\n    &quot;**\/*&quot;,     # exclude a module\n]<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>NEED HELP?<\/strong><\/h2>\n\n\n\n<p>Hope you find the guide helpful! Please feel free to share your feedback in the comments below.<\/p>\n\n\n\n<p>If you still have any issues\/queries regarding the same, please raise a ticket at the&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\">UV Desk<\/a>.<\/p>\n\n\n\n<p>For any doubt, contact us at our&nbsp;<a href=\"mailto:support@webkul.com\" target=\"_blank\" rel=\"noreferrer noopener\">support mail<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article gives an overview of how we can work with the CLOC tool in Odoo as a developer. Before starting this tutorial, you should have a basic idea of CLI in Odoo. If you don\u2019t have basic knowledge of Odoo CLI, read a beginner guide to&nbsp;Odoo CLI. Why do we need CLOC Tool in <a href=\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":571,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2007],"tags":[14967,14966,1267,3651,14964,13218],"class_list":["post-406417","post","type-post","status-publish","format-standard","hentry","category-odoo","tag-cloc-in-cli","tag-count-lines-of-code-in-odoo","tag-odoo","tag-odoo-cli","tag-odoo-cloc","tag-odoo-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CLOC tools using ODOO CLI - Webkul Blog<\/title>\n<meta name=\"description\" content=\"CLOC tool in Odoo is a tool to count the number of relevant lines written in Python, Javascript, CSS, SCSS, or XML.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CLOC tools using ODOO CLI - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"CLOC tool in Odoo is a tool to count the number of relevant lines written in Python, Javascript, CSS, SCSS, or XML.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-20T12:14:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-20T12:19:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png\" \/>\n<meta name=\"author\" content=\"Ajay Sharma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ajay Sharma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/\"},\"author\":{\"name\":\"Ajay Sharma\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/6f8c936c26bc417bc3eef13d89a9d0fe\"},\"headline\":\"CLOC tools using ODOO CLI\",\"datePublished\":\"2023-10-20T12:14:57+00:00\",\"dateModified\":\"2023-10-20T12:19:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/\"},\"wordCount\":625,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png\",\"keywords\":[\"CLOC in CLI\",\"Count Lines of Code in Odoo\",\"odoo\",\"odoo cli\",\"Odoo CLOC\",\"odoo development\"],\"articleSection\":[\"Odoo\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/\",\"url\":\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/\",\"name\":\"CLOC tools using ODOO CLI - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png\",\"datePublished\":\"2023-10-20T12:14:57+00:00\",\"dateModified\":\"2023-10-20T12:19:11+00:00\",\"description\":\"CLOC tool in Odoo is a tool to count the number of relevant lines written in Python, Javascript, CSS, SCSS, or XML.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png\",\"width\":1121,\"height\":142,\"caption\":\"image-181\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CLOC tools using ODOO CLI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/6f8c936c26bc417bc3eef13d89a9d0fe\",\"name\":\"Ajay Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/639fc64556ac3e0561763e33fa0aded6fde156355952e0f5c5cce8c709c26bde?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/639fc64556ac3e0561763e33fa0aded6fde156355952e0f5c5cce8c709c26bde?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Ajay Sharma\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/ajaysharma-odoo253\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CLOC tools using ODOO CLI - Webkul Blog","description":"CLOC tool in Odoo is a tool to count the number of relevant lines written in Python, Javascript, CSS, SCSS, or XML.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/","og_locale":"en_US","og_type":"article","og_title":"CLOC tools using ODOO CLI - Webkul Blog","og_description":"CLOC tool in Odoo is a tool to count the number of relevant lines written in Python, Javascript, CSS, SCSS, or XML.","og_url":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-10-20T12:14:57+00:00","article_modified_time":"2023-10-20T12:19:11+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png","type":"","width":"","height":""}],"author":"Ajay Sharma","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Ajay Sharma","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/"},"author":{"name":"Ajay Sharma","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/6f8c936c26bc417bc3eef13d89a9d0fe"},"headline":"CLOC tools using ODOO CLI","datePublished":"2023-10-20T12:14:57+00:00","dateModified":"2023-10-20T12:19:11+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/"},"wordCount":625,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png","keywords":["CLOC in CLI","Count Lines of Code in Odoo","odoo","odoo cli","Odoo CLOC","odoo development"],"articleSection":["Odoo"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/","url":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/","name":"CLOC tools using ODOO CLI - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png","datePublished":"2023-10-20T12:14:57+00:00","dateModified":"2023-10-20T12:19:11+00:00","description":"CLOC tool in Odoo is a tool to count the number of relevant lines written in Python, Javascript, CSS, SCSS, or XML.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/image-181.png","width":1121,"height":142,"caption":"image-181"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/cloc-tools-using-odoo-cli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"CLOC tools using ODOO CLI"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/6f8c936c26bc417bc3eef13d89a9d0fe","name":"Ajay Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/639fc64556ac3e0561763e33fa0aded6fde156355952e0f5c5cce8c709c26bde?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/639fc64556ac3e0561763e33fa0aded6fde156355952e0f5c5cce8c709c26bde?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Ajay Sharma"},"url":"https:\/\/webkul.com\/blog\/author\/ajaysharma-odoo253\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/406417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/571"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=406417"}],"version-history":[{"count":33,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/406417\/revisions"}],"predecessor-version":[{"id":407043,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/406417\/revisions\/407043"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=406417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=406417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=406417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}