Magento is an open-source ecommerce platform, now maintained by Adobe, that lets you build and run an online store with full control over your product catalog, checkout, and site design. Getting started involves choosing the right edition, setting up a server environment, installing the software, and learning the admin tools you’ll use daily. Here’s how to work through each stage.
Choose Your Edition
Magento comes in two flavors. Magento Open Source is free to download from GitHub and gives you core ecommerce features: product management, checkout, customer accounts, and basic reporting. It’s a solid starting point for small to mid-sized stores, though you’re responsible for your own hosting and maintenance.
Adobe Commerce is the paid, enterprise-grade version. It adds cloud hosting, advanced analytics, B2B tools, and deeper integration with Adobe’s marketing suite. Adobe doesn’t publish pricing publicly; you’ll need to contact their sales team for a quote, and costs scale with your business size. If you’re just learning the platform or launching a smaller store, Open Source is the practical choice.
Set Up Your Server Environment
Magento runs on a Linux-based web server stack. Before you install anything, make sure your environment meets these requirements for the current release (version 2.4.8):
- PHP: Version 8.3 or 8.4
- Database: MySQL 8.4, MariaDB 11.4, or AWS Aurora (MySQL) 8.0
- Web server: Apache or Nginx
- Search engine: OpenSearch or Elasticsearch
- RAM: At least 2 GB, especially for upgrades and extensions. If your system has less, create a swap file or the installation may fail.
You’ll also need Composer, the PHP dependency manager, installed on your server. Most cloud hosting providers that support Magento will have this stack pre-configured or available through a control panel. If you’re setting up a local development environment, tools like Docker can simplify the process.
Install Magento via Command Line
Magento installs through Composer and its built-in CLI. Start by using Composer to download the project files into your web directory, then run the setup command with your specific configuration. The install command follows this format:
bin/magento setup:install --<option>=<value>
You’ll need to provide several required parameters. For your site and database:
- –base-url: The URL where your store will be accessible
- –db-host: Your database server address (often
localhost) - –db-name: The name of the database you created for the store
- –db-user and –db-password: Credentials for the database
For your admin account:
- –admin-firstname and –admin-lastname
- –admin-email
- –admin-user: The login username
- –admin-password: Must be at least 7 characters with at least one letter and one number
A full install command looks something like this:
bin/magento setup:install --base-url=http://127.0.0.1/magento2/ --db-host=localhost --db-name=magento --db-user=magento --db-password=magento --admin-firstname=Magento --admin-lastname=User --admin-email=user@example.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1 --search-engine=opensearch --opensearch-host=os-host.example.com --opensearch-port=9200
If you’re not sure what to enter for language, currency, or timezone codes, three helper commands will list every available option: bin/magento info:language:list, bin/magento info:currency:list, and bin/magento info:timezone:list.
Navigate the Admin Panel
Once installation finishes, you can log in to the admin panel at your base URL followed by /admin (or whatever custom path you configured). This is where you’ll manage nearly everything about your store. The left sidebar organizes your tools into sections: Catalog for products and categories, Sales for orders and invoices, Customers for accounts, and Content for pages and blocks.
Spend time clicking through each section before making changes. Magento’s admin is deep, and many settings are nested under Store > Configuration, where you’ll find controls for shipping methods, payment gateways, tax rules, and email templates. The learning curve is real, but the interface is consistent once you understand the navigation pattern.
Add Products to Your Catalog
For a handful of products, you can add them one at a time through Catalog > Products > Add Product in the admin panel. You’ll fill in the name, SKU, price, quantity, images, and description, then assign the product to a category.
For larger catalogs, bulk import via CSV is far more efficient. Here’s the process:
- Go to System > Data Transfer > Import in the admin sidebar.
- Set the Entity Type to “Products” and click Download Sample File. This gives you a CSV template with the exact column headings Magento expects.
- Fill in the template with your product data. Make sure column headings are spelled exactly as they appear in the sample. If you’re including product images, upload the image files to the
pub/media/importdirectory on your server first. - Back on the Import page, set Import Behavior to “Add/Update” (this creates new products and updates existing ones that share the same SKU). Choose whether to stop on errors or skip problematic rows.
- Upload your CSV file and click Check Data. Magento validates the file and flags any formatting issues. If everything passes, click Import.
The default maximum file size for imports is 2 MB. If your catalog file is larger, you’ll need to adjust the PHP upload limit in your server configuration.
Install Extensions
Extensions add features Magento doesn’t include out of the box, from advanced SEO tools to custom shipping calculators. The Commerce Marketplace is the official directory, and installing an extension involves both the Marketplace website and your server’s command line.
First, find and purchase (or download, if free) the extension on the Marketplace. Log in, go to My Profile > My Purchases, and note the component name and version number. Then, on your server, navigate to your Magento project directory and run:
composer require <component-name>:<version>
Composer will ask for authentication keys. Your Marketplace public key is the username, and your private key is the password. You can find both in your Marketplace account under Access Keys.
After Composer downloads the extension files, you need to activate it with a series of CLI commands:
- Verify it’s recognized:
bin/magento module:status VendorName_ComponentName - Enable the module:
bin/magento module:enable VendorName_ComponentName --clear-static-content - Run the upgrade script:
bin/magento setup:upgrade - Recompile dependencies:
bin/magento setup:di:compile - Clear the cache:
bin/magento cache:clean
After these steps, the extension should appear as enabled in System > Tools > Web Setup Wizard or in the module status output. Configuration options for the extension typically show up under Store > Configuration in the admin panel.
Essential CLI Commands to Know
Magento’s command line interface is something you’ll use regularly, not just during installation. A few commands come up constantly:
- bin/magento cache:clean clears the cache, which you’ll do after almost any configuration change.
- bin/magento cache:flush is a more aggressive version that empties the entire cache storage.
- bin/magento indexer:reindex rebuilds the search and catalog indexes. Run this after bulk product changes so your storefront reflects the latest data.
- bin/magento setup:upgrade applies database schema changes, which is necessary after installing or updating extensions.
- bin/magento deploy:mode:set production switches your store to production mode, which pre-compiles assets and disables error display for better performance and security on a live site.
During development, keeping your store in developer mode (bin/magento deploy:mode:set developer) shows detailed error messages and auto-generates static files, which saves time when you’re building and testing.
Configure Shipping and Payments
Before your store can accept orders, you need at least one shipping method and one payment method active. Both are configured under Store > Configuration in the admin panel.
For shipping, Magento includes built-in options like flat rate, free shipping, and table rates (where costs vary by destination or order weight). You can also connect carrier accounts from major providers. Each method has its own configuration panel where you set prices, conditions, and which countries you ship to.
For payments, Magento supports integrations with PayPal, Braintree, and other gateways. You’ll enter your merchant credentials in the payment method’s configuration section. Test each method in sandbox or test mode before going live to make sure transactions process correctly and order confirmation emails fire as expected.

