How to pass --env-file to okteto cli?

we use .env in separate folder, like that

docker-compose --env-file ./docker/.env up -d example

how to pass the same --env-file to okteto cli ?

If you’re using a docker-compose file, you can define it in the env-file section of the manifest. Docker Compose Reference | Okteto Documentation has more information on it.