Composer return codes

Composer return codes

Composer return codes management

When you run a composer command, the command line can show an outcome return code. To find the return code, perform the following action:
On Windows Operating systems:
echo %ERRORLEVEL%
On UNIX Operating systems:
echo $?
The composer command line has the following return codes:
0
Command completed successfully.
4
Command completed with a warning.
8
Command completed with an error.
16
Command fails.
32
Command has a syntax error.