Upload the Extension by Using the Magento Connect

Install, manage, and upgrade extensions

You lot can extend your Adobe Commerce awarding capabilities past calculation an extension from the Commerce Market place. For instance, you tin can add a theme to modify the wait and feel of your storefront, or you can add a language package to localize your storefront and Admin panel.

We highly recommend that you lot have your Adobe Commerce application fully deployed to an Integration or Staging surroundings before attempting to add a module. Always work in a evolution co-operative when adding a module to your implementation. If you do not have a co-operative, see Get started creating branches.

Composer name of an extension

Although this section discusses how to get the Composer proper noun and version of an extension or module from Commerce Marketplace, you lot can observe the name and version of any module (whether or non you lot purchased it on Market) in the Composer file of the module. Open up the composer.json file in a text editor and notation the "proper noun" and "version" values.

To get the Composer name of a module from the Commerce Market:

  1. Log in to Commerce Marketplace with the username and password you used to buy the component.

  2. In the upper right corner, click Username > My Account.

    Access your Marketplace account

  3. On the My Account page, click My Purchases.

    Marketplace purchase history

  4. On the My Purchases folio, click Technical Details for the module yous purchased.

    Technical details shows the module's Composer name

  5. Click Re-create to copy the component name to the clipboard.

  6. Open a text editor and paste the module proper name.

  7. Append a colon character (:) to the component proper name.

  8. In Technical Details on the My Purchases folio, click Copy to copy the version to the clipboard.

  9. Append the version number to the component name later the colon.

    A sample follows:

Install an extension

We recommend working in a evolution branch when calculation an extension to your implementation. If yous exercise not have a branch, see the Get started creating branches topic. When installing an extension, the extension name (<VendorName>_<ComponentName>) is automatically inserted in the app/etc/config.php file. There is no need to edit the file directly.

To install an extension:

  1. On your local workstation, alter to the Cloud project root directory.

  2. Create or checkout a development branch. See branching.

  3. Using the Composer proper noun and version, add together the extension to the require section of the composer.json file.

                                          
    i                            
    composer require <extension-proper name>:<version>                              --no-update                            

    For example:

                                          
    1                            
    composer require pixlee/magento2:one.0.1                              --no-update                            
  4. Update the project dependencies.

  5. Add, commit, and button code changes.

                                          
    1                            
    git commit                              -m                              "Install <extension-proper noun>"                            
                                          
    1                            
    git push button origin <co-operative-name>                            

    When installing an extension, you must include the composer.lock file when you push code changes to the remote environment. The composer install command reads the composer.lock file to enable the defined dependencies in the remote surroundings.

  6. Later the build and deploy finishes, employ a SSH to log in to the remote environment and verify the extension installed.

                                          
    1                            
    bin/magento module:status <extension-proper noun>                            

    An extension name uses the format: <VendorName>_<ComponentName>.

    Sample response:

    If you encounter deployment errors, meet extension deployment failure.

Manage extensions

When yous add an extension using Composer, the deployment process automatically enables the extension. If y'all already accept the extension installed, you can enable or disable the extension using the CLI. When managing extensions, use the format: <VendorName>_<ComponentName>. Never enable or disable an extension while logged in to the remote environments.

To enable or disable an extension:

  1. On your local workstation, change to the Cloud project root directory.

  2. Enable or disable a module. The module command updates the config.php file with the requested status of the module.

    Enable a module.

                                              
    1                              
    bin/magento module:enable <module-name>                              

    Disable a module.

                                              
    ane                              
    bin/magento module:disable <module-name>                              
  3. If y'all enabled a module, use ece-tools to refresh the configuration.

                                          
    one                            
    ./vendor/bin/ece-tools module:refresh                            
  4. Verify the status of a module.

                                          
    1                            
    bin/magento module:condition <module-proper noun>                            
  5. Add, commit, and button code changes.

                                          
    ane                            
    git commit                              -grand                              "Disable <extension-proper name>"                            
                                          
    ane                            
    git push origin <branch-names>                            

Upgrade an extension

Before y'all continue, you need the Composer name and version for the extension. Also, confirm that the extension is compatible with your project and Adobe Commerce on cloud infrastructure version. In detail, check the required PHP version before you begin.

To update an extension:

  1. On your local workstation, alter to the Deject projection root directory.

  2. Create or checkout a development branch. See branching.

  3. Open up the composer.json file in a text editor.

  4. Locate your extension and update the version.

  5. Salve your changes and go out the text editor.

  6. Update the project dependencies.

  7. Add, commit, and push your code changes.

                                          
    1                            
    git commit                              -m                              "Update <extension-name>"                            
                                          
    i                            
    git push origin <branch-names>                            

If yous encounter errors, meet [extension deployment failure][problem].

nalleyunflithen.blogspot.com

Source: https://devdocs.magento.com/cloud/howtos/install-components.html

0 Response to "Upload the Extension by Using the Magento Connect"

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel