{"id":392750,"date":"2023-07-28T12:05:35","date_gmt":"2023-07-28T12:05:35","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=392750"},"modified":"2025-04-02T12:08:42","modified_gmt":"2025-04-02T12:08:42","slug":"recompiling-code-akeneo","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/","title":{"rendered":"How to Recompiling Code in Akeneo"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>Introduction<\/strong>: <\/h2>\n\n\n\n<p>Akeneo is a popular <a href=\"https:\/\/webkul.com\/product-information-manager\/\">Product Information Management<\/a> (PIM) system used to centralize and manage product data efficiently. <\/p>\n\n\n\n<p>To ensure optimal performance and apply code changes, it&#8217;s crucial to recompile the code in <a href=\"https:\/\/webkul.com\/akeneo\/\">Akeneo PIM<\/a> after making updates.<\/p>\n\n\n\n<p>In this blog, we will walk through the steps How to Recompiling Code in Akeneo using specific commands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Prerequisites<\/strong>: <\/h2>\n\n\n\n<p>Before you proceed with recompiling the code, ensure that you have the following prerequisites in place:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Akeneo installed and configured properly.<\/li>\n\n\n\n<li>Access to the command-line interface (CLI) of your server.<\/li>\n\n\n\n<li>Familiarity with basic Unix commands and the Akeneo directory structure.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Steps Recompiling Code in Akeneo:<\/h3>\n\n\n\n<p><strong>Step 1:<\/strong> Clear Cache <\/p>\n\n\n\n<p>The first step is to clear the cache to ensure that the latest changes are reflected in the application. Use the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/console cache:clear --env=prod;<\/pre>\n\n\n\n<p><strong>Step 2:<\/strong> Install Assets <\/p>\n\n\n\n<p>Next, install the required assets using the PIM installer with the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/console pim:installer:assets --symlink --clean --env=prod;<\/pre>\n\n\n\n<p>The <code>--symlink<\/code> flag creates symbolic links to assets, making it easier to manage them. The <code>--clean<\/code> flag ensures any previous assets are removed before installing the new ones.<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Update Database Schema <\/p>\n\n\n\n<p>If your code changes involve modifications to the database schema, you must update the database accordingly. Execute the Doctrine schema update command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/console doctrine:schema:update --force --env=prod;<\/pre>\n\n\n\n<p>The <code>--force<\/code> flag ensures that the schema update is executed without any confirmation prompts.<\/p>\n\n\n\n<p><strong>Step 4:<\/strong> Webpack Compilation <\/p>\n\n\n\n<p>If your code changes include frontend modifications (e.g., JavaScript, CSS), you need to compile the assets using Webpack. Run the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">yarn run webpack;<\/pre>\n\n\n\n<p>This command will bundle and optimize your assets for production use.<\/p>\n\n\n\n<p><strong>Step 5:<\/strong> Update Extensions <\/p>\n\n\n\n<p>If your project includes any custom extensions or modules, it&#8217;s essential to update them after code changes. Use the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">yarnpkg run update-extensions;<\/pre>\n\n\n\n<p><strong>Step 6:<\/strong> Recompile LESS <\/p>\n\n\n\n<p>If your project uses LESS for styling, compile the LESS files with the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">yarnpkg run less;<\/pre>\n\n\n\n<p>This command will process the LESS files and generate the corresponding CSS styles.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion: <\/strong><\/h2>\n\n\n\n<p>Recompiling Code in Akeneo is crucial to ensure that your application reflects the latest changes and improvements. <\/p>\n\n\n\n<p>By following the steps outlined in this blog, you can efficiently execute the necessary commands and keep your Akeneo instance up-to-date. <\/p>\n\n\n\n<p>Always remember to back up your database and other important files before performing any code-related operations. Happy coding!<\/p>\n\n\n\n<p>If you have any issue feel free to add a ticket and let us know your views to make the module better&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">webkul.uvdesk.com.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Akeneo is a popular Product Information Management (PIM) system used to centralize and manage product data efficiently. To ensure optimal performance and apply code changes, it&#8217;s crucial to recompile the code in Akeneo PIM after making updates. In this blog, we will walk through the steps How to Recompiling Code in Akeneo using specific <a href=\"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":465,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5709,1],"tags":[],"class_list":["post-392750","post","type-post","status-publish","format-standard","hentry","category-akeneo","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Recompiling Code || Akeneo PIM<\/title>\n<meta name=\"description\" content=\"In this blog you will learn how to Recompiling Code in Akeneo using specific commands. You can efficiently execute the necessary commands\" \/>\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\/recompiling-code-akeneo\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Recompiling Code || Akeneo PIM\" \/>\n<meta property=\"og:description\" content=\"In this blog you will learn how to Recompiling Code in Akeneo using specific commands. You can efficiently execute the necessary commands\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/\" \/>\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-07-28T12:05:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-02T12:08:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Deepak Kumar\" \/>\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=\"Deepak Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/\"},\"author\":{\"name\":\"Deepak Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/73b6377eefe0e14e3d7f54cb58252c6d\"},\"headline\":\"How to Recompiling Code in Akeneo\",\"datePublished\":\"2023-07-28T12:05:35+00:00\",\"dateModified\":\"2025-04-02T12:08:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/\"},\"wordCount\":390,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"articleSection\":[\"Akeneo\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/\",\"url\":\"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/\",\"name\":\"Recompiling Code || Akeneo PIM\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2023-07-28T12:05:35+00:00\",\"dateModified\":\"2025-04-02T12:08:42+00:00\",\"description\":\"In this blog you will learn how to Recompiling Code in Akeneo using specific commands. You can efficiently execute the necessary commands\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Recompiling Code in Akeneo\"}]},{\"@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\/73b6377eefe0e14e3d7f54cb58252c6d\",\"name\":\"Deepak Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9657c9dd65bd0c509887273100d65402c0c5a9598bbfef929caff2bb8e46512b?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\/9657c9dd65bd0c509887273100d65402c0c5a9598bbfef929caff2bb8e46512b?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Deepak Kumar\"},\"description\":\"Deepak Kumar is an experienced Quality Analyst specializing in the Akeneo platform. With expertise in software testing and analyzing requirements in product information management and product data, he ensures high-quality, reliable solutions that optimize data accuracy and enhance business performance.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/deepak-kumar751\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Recompiling Code || Akeneo PIM","description":"In this blog you will learn how to Recompiling Code in Akeneo using specific commands. You can efficiently execute the necessary commands","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\/recompiling-code-akeneo\/","og_locale":"en_US","og_type":"article","og_title":"Recompiling Code || Akeneo PIM","og_description":"In this blog you will learn how to Recompiling Code in Akeneo using specific commands. You can efficiently execute the necessary commands","og_url":"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-07-28T12:05:35+00:00","article_modified_time":"2025-04-02T12:08:42+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Deepak Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Deepak Kumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/"},"author":{"name":"Deepak Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/73b6377eefe0e14e3d7f54cb58252c6d"},"headline":"How to Recompiling Code in Akeneo","datePublished":"2023-07-28T12:05:35+00:00","dateModified":"2025-04-02T12:08:42+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/"},"wordCount":390,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"articleSection":["Akeneo"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/","url":"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/","name":"Recompiling Code || Akeneo PIM","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2023-07-28T12:05:35+00:00","dateModified":"2025-04-02T12:08:42+00:00","description":"In this blog you will learn how to Recompiling Code in Akeneo using specific commands. You can efficiently execute the necessary commands","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/recompiling-code-akeneo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Recompiling Code in Akeneo"}]},{"@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\/73b6377eefe0e14e3d7f54cb58252c6d","name":"Deepak Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9657c9dd65bd0c509887273100d65402c0c5a9598bbfef929caff2bb8e46512b?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\/9657c9dd65bd0c509887273100d65402c0c5a9598bbfef929caff2bb8e46512b?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Deepak Kumar"},"description":"Deepak Kumar is an experienced Quality Analyst specializing in the Akeneo platform. With expertise in software testing and analyzing requirements in product information management and product data, he ensures high-quality, reliable solutions that optimize data accuracy and enhance business performance.","url":"https:\/\/webkul.com\/blog\/author\/deepak-kumar751\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/392750","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\/465"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=392750"}],"version-history":[{"count":6,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/392750\/revisions"}],"predecessor-version":[{"id":487468,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/392750\/revisions\/487468"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=392750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=392750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=392750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}