Page cover

Adobe Commerce Marketplace (v.2.4) via the command line

Recommendations before starting the installation process

  • Make sure that you have full write permissions to all Magento files and folders.
  • Check whether your server configurations comply with the required values:
    - Max execution time = 600 seconds or more,
    - Memory limit = at least 1 GB.
  • Back up your database.
  • Enable maintenance mode:
bin/magento maintenance:enable

Download the extension from Adobe Commerce marketplace

Step 1. Log in to your Adobe Commerce Marketplace Customer Account.

Step 2. Find M2E TikTok Shop Connect in the Adobe Commerce Marketplace catalog and purchase the extension (it's free).

Step 3. Once your order is placed, click Install.

Step 4. Under Marketplace > Access Keys tab, click Create A New Access Key. The authentication keys will be generated automatically.

Installation

Step 1. Update the composer.json file in your Magento project with the name. For example:

composer require m2e/tiktok-shop-adobe-commerce

Step 2. Enter your Magento authentication keys. Your public key is your username; your private key is your password.

Step 3. Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors:

Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing m2e/tiktok-shop-adobe-commerce: Downloading (100%)
Writing lock file
Generating autoload files

Step 4. Enable the extension and clear static view files:

bin/magento module:enable M2E_TikTokShop --clear-static-content

You should see the following output:

The following modules have been enabled:
- M2E_TikTokShop

To make sure that the enabled modules are properly registered, run 'setup:upgrade'.
Cache cleared successfully.
Generated classes cleared successfully. Please run the 'setup:di:compile' command to generate classes.
Generated static view files cleared successfully.

Step 5. Register the extension:

bin/magento setup:upgrade

Step 6. Recompile your Magento project: In Production mode, you may receive a message to “Please rerun Magento compile command”. Magento does not prompt you to run the compile command in Developer mode.

bin/magento setup:di:compile
bin/magento setup:static-content:deploy

Step 7. Verify that the extension is enabled:

bin/magento module:status M2E_TikTokShop

You should see the output:

Module is enabled

Step 8. Clean the cache:

bin/magento cache:clean

That's it! M2E TikTok Shop Connect is installed. Now you should disable maintenance mode:

bin/magento maintenance:disable

Set up general configurations for your extension and enjoy smooth selling on TikTok Shop.

Upgrade

Step 1. Back up your database (not required, but recommended).

Step 2. Enable maintenance mode:

bin/magento maintenance:enable

Step 3. Run update per module name:

composer update m2e/tiktok-shop-adobe-commerce

Step 4. Run the following commands to upgrade, deploy, and clean the cache.

bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento cache:clean

That's it! M2E TikTok Shop Connect is upgraded to the latest version. Now you should disable maintenance mode:

bin/magento maintenance:disable