Enter application CLI

yarn cli or npm run cli

Opens a new instance of Bash with aliases for PHP, Composer and Magento used in Create Magento App project.

Usage example

First, run the script:
1
npm run cli # for NPM
2
yarn cli # for Yarn
Copied!
Now, in the opened terminal call desired commands:
1
php -v
2
> PHP 7.4.13 (cli) ...
3
4
composer --version
5
> Composer version 1.10.19
6
7
# Can be used with alias
8
c --version
9
> Composer version 1.10.19
10
11
magento setup:upgrade
12
> ... magento upgrade output
13
14
# Can be used with alias
15
m se:up
16
> ...magento upgrade output
Copied!
Last modified 11mo ago