Create Magento App
Create ScandiPWA AppScandiPWA DocsGitHub
v1
v1
  • Create Magento App
  • Getting started
    • Getting Started
    • Prerequisites
      • Linux requirements
      • MacOS requirements
        • Apple Silicon
      • Windows requirements
    • Available commands
      • Start the application
      • Stop the application
      • Check application status
      • Enter application CLI
      • Explore application logs
      • Execute commands in Docker containers
      • Link a theme
      • Import database dump
      • ⚠️ Uninstall a project
    • Folder structure
    • Updating to New Releases
      • Testing Alpha Releases
    • Configuration File
    • Supported Magento versions
    • How does it work?
    • Limitations
  • Usage guide
    • Using console commands
    • Accessing Docker containers
    • Linking a Scandi Theme
    • Enabling XDebug
    • Enabling SSL
    • Configuring PHP
    • Use custom domain
    • Access on the local network
    • Importing database
      • Importing remote database
    • Using Enterprise Edition
    • Converting legacy Docker setup to CMA
    • Improve Performance
  • Scripts Extensions
    • PHP Extensions
      • ionCube Extension
  • Troubleshooting
    • Common Issues
    • CMA Debugging
    • Uninstall CMA
Powered by GitBook
On this page
  • Working with CLI
  • Common Usage
  1. Usage guide

Using console commands

Working with CLI

We have our PHP compiled, Composer installed, Magento 2 installed. But how access them? Everything is scattered across the file system.

That is where CLI comes in handy. It provides aliases for PHP, Composer and Magento in your project. We can open it by running a command:

npm run cli # for NPM
yarn cli # for Yarn

Now we have access to PHP, Composer and Magento, we can install PHP dependencies, upgrade Magento and so on.

php -v
> PHP 7.4.13 (cli) ...

composer --version
> Composer version 1.10.19

# Can be used with alias
c --version
> Composer version 1.10.19

magento setup:upgrade
> Magento upgrade output ...

# Can be used with alias
m se:up
> Magento upgrade output ...

Common Usage

Flushing Magento cache

magento cache:flush

# or with aliases and shortcuts
m c:f

Magento upgrade

magento setup:upgrade

# or with aliases and shortcuts
m se:up

Upgrading Composer dependencies

composer upgrade

# or with alias
c upgrade

PreviousLimitationsNextAccessing Docker containers

Last updated 2 years ago