TheStoryCoder
TheStoryCoder

Reputation: 3640

Yii2 console: How to disable color output in command via command line?

I like to have colors in output of my Yii2 console commands but in a special scenario I'm using it in a terminal that doesn't support colors and it looks all weird. Isn't there a command line option I can disable colors with?

Upvotes: 1

Views: 481

Answers (1)

rob006
rob006

Reputation: 22174

You can use --color switch:

./yii my-command --color=0

Upvotes: 2

Related Questions