====== Execution environment ======
===== About =====
''env'' is a [[docs:conf:attribute|attribute]] that sets the execution environment (ie in production or not).
===== Built-in =====
Tabulify knows the following environments:
^ Name ^ default ^ Description ^
| ''prod'' | | The production environment |
| ''dev'' | x | The dev environment |
[[:docs:op:op|operations]] may react differently depending on it.
To avoid sending emails in a dev environment, the [[docs:op:sendmail|send operation]] will send them all
to the ''to'' address of the smtp connection.
===== How to set the environment ? =====
You can set the environment :
* at the command line with the ''--env'' option of tabli.
tabli --env dev
* via a [[docs:conf:os|tabli os environment variable]]
export TABLI_ENV=dev
* In the [[docs:conf:vault|configuration vault]]
===== How to see the environment =====
With the ''env'' variable.
Example:
tabli variable list env