PHPackages                             jahvi/magento2-copy-theme-override - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jahvi/magento2-copy-theme-override

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

jahvi/magento2-copy-theme-override
==================================

Magento 2 command to automatically copy files into active theme

3.0.0(5y ago)124.5k2MITPHPPHP ^7.3CI failing

Since Apr 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jahvi/magento2-copy-theme-override)[ Packagist](https://packagist.org/packages/jahvi/magento2-copy-theme-override)[ RSS](/packages/jahvi-magento2-copy-theme-override/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (5)Versions (13)Used By (0)

Magento 2 Copy Theme Override Command
=====================================

[](#magento-2-copy-theme-override-command)

[![Build Status](https://camo.githubusercontent.com/05778e19940345facd2056854395bf27fc85cc1fdcec0bf381d7fc34e8ca08d0/68747470733a2f2f7472617669732d63692e6f72672f6a616876692f6d6167656e746f322d636f70792d7468656d652d6f766572726964652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jahvi/magento2-copy-theme-override)[![Coverage Status](https://camo.githubusercontent.com/cc318f6361cf915ec85787cadb10a6293acf1f3b811e71a972cb22f5a27fe4f1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6a616876692f6d6167656e746f322d636f70792d7468656d652d6f766572726964652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/jahvi/magento2-copy-theme-override?branch=master)

🎩 Magento 2 command to automatically copy files into active theme.

[![screen2](https://user-images.githubusercontent.com/661330/43463240-008b4706-94d0-11e8-8abe-9516c963ec13.gif)](https://user-images.githubusercontent.com/661330/43463240-008b4706-94d0-11e8-8abe-9516c963ec13.gif)

Installation
------------

[](#installation)

1. Install via composer `composer require jahvi/magento2-copy-theme-override --dev`
2. Run `php bin/magento setup:upgrade`

How it works?
-------------

[](#how-it-works)

After installing the extension you will have access to a new command:

```
php bin/magento dev:copy-theme-override $file_path
```

This takes a single `$file_path` argument which is the absolute path of the CSS, LESS, JS, PHTML or HTML file you want to override in your theme, so for example to override the `product/list.phtml` template you'd run:

```
php bin/magento dev:copy-theme-override /var/www/magento2/vendor/magento/module-catalog/view/frontend/templates/product/list.phtml
```

And it will copy the file into your theme as:

```
/var/www/magento2/vendor/magento/app/design/Sample/theme/Magento_Catalog/templates/product/list.phtml
```

Setting up your IDE
-------------------

[](#setting-up-your-ide)

By itself the command is not very useful but most IDEs or code editors provide a way to run custom commands using keyboard shortcuts that will help simplify this workflow, below are some examples of a few popular ones.

### VS Code

[](#vs-code)

1. Create a `.vscode/tasks.json` file in the project root with the following content:

```
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Copy Theme Override",
            "type": "shell",
            "command": "php bin/magento dev:copy-theme-override ${file}",
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}
```

2. Open the file to override.
3. Run build task shortcut, by default `Shift + Cmd + B` or `Ctrl + Shift + B` on Windows/Linux.

### Sublime Text

[](#sublime-text)

1. Create new build system `Tools > Build System > New Build System...` with the following content:

```
{
    "shell_cmd": "php bin/magento dev:copy-theme-override $file",
    "working_dir": "$folder"
}
```

2. Open the file to override.
3. Run Build task, by default `Cmd + B` or `Ctrl + B` on Windows/Linux.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~124 days

Recently: every ~180 days

Total

12

Last Release

2007d ago

Major Versions

1.1.10 → 2.0.02019-12-21

2.0.1 → 3.0.02020-12-31

PHP version history (5 changes)1.0.0PHP ~5.5.0|~5.6.0|~7.0.0

1.1.4PHP 7.0.2|7.0.4|~7.0.6|~7.1.0

1.1.10PHP 7.0.2|7.0.4|~7.0.6|~7.1.0|~7.2.0

2.0.0PHP ~7.1.3||~7.2.0||~7.3.0

3.0.0PHP ^7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/1132bce9c17196d7e3a3e4081f7730f9fc364f85a5b18a0886a7d8aca8398fd4?d=identicon)[jahvi](/maintainers/jahvi)

---

Top Contributors

[![jahvi](https://avatars.githubusercontent.com/u/661330?v=4)](https://github.com/jahvi "jahvi (31 commits)")

---

Tags

magento2magento2-extensionmagento2-module

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jahvi-magento2-copy-theme-override/health.svg)

```
[![Health](https://phpackages.com/badges/jahvi-magento2-copy-theme-override/health.svg)](https://phpackages.com/packages/jahvi-magento2-copy-theme-override)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M337](/packages/psalm-plugin-laravel)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[php-soap/wsdl

Deals with WSDLs

184.0M18](/packages/php-soap-wsdl)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

5155.1k17](/packages/phel-lang-phel-lang)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
