Deceive Ansible to template Trellis .env files to local system

Use https://github.com/roots/trellis-cli/pull/50 instead
Last updated 2 years ago by tangrufus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @itinerisltd/enveigle 
SYNC missed versions from official npm registry.

This project has been ported to roots/trellis-cli and been abandoned.

Use roots/trellis-cli instead and checkout similar tools by:

enveigle (Abandoned)

Deceive Ansible to template Trellis .env files to local Bedrock

oclif Version Downloads/week License Hire Itineris


Populate .env files to local Bedrock with ansible so that we can develop with valet instead of vagrant while keeping ansible vault, wordpress_env_defaults and all ansible goodies.


  • Trellis
  • Bedrock
  • Anisble v2 or later
  • NodeJS v10.13.0 or later


$ npx @itinerisltd/enveigle just work! No installation required.


$ cd /path/to/trellis

# For normal Trellis setup
$ npx @itinerisltd/enveigle

# For brave developers
$ npx @itinerisltd/enveigle --env=my-custom-dev-env --callback_dir=callback_dir=/path/to/my/callback/dir

# For the confused
$ npx @itinerisltd/enveigle --help
Deceive Ansible to template Trellis .env files to local Bedrock

  $ npx @itinerisltd/enveigle

  -c, --callback_dir=callback_dir  [default: lib/trellis/plugins/callback] ansible callback directory
  -e, --env=env                    [default: development] local environment name
  -h, --help                       show CLI help
  -v, --version                    show CLI version


Can I change default flag values?

Yes. You can change them via environment variables.

These 2 commands are equivalent:

$ ENVEIGLE_ENV=my-env ENVEIGLE_CALLBACK_DIR=/my/callback/dir npx @itinerisltd/enveigle
$ npx @itinerisltd/enveigle --env=my-env --callback_dir=callback_dir=/my/callback/dir

Can I install enveigle instead of using $ npx?

Yes. However, you are responsible for updating it.

# yarn or npm doesn't matter
$ yarn global add @itinerisltd/enveigle
$ cd /path/to/trellis
$ enveigle

Why not commit enveigle.yml under git?

Because we have too many sites to maintain, adding/updating enveigle.yml to all of our sites is tedious.

It looks awesome. Where can I find some more goodies like this?

This isn't on wp.org. Where can I give a ⭐️⭐️⭐️⭐️⭐️ review?

Thanks! Glad you like it. It's important to make my boss know somebody is using this project. Instead of giving reviews on wp.org, consider:


Please provide feedback! We want to make this library useful in as many projects as possible. Please submit an issue and point out what you do and don't like, or fork the project and make suggestions. No issue is too small.


If you discover any security related issues, please email hello@itineris.co.uk instead of using the issue tracker.

Change log

Please see CHANGELOG for more information on what has changed recently.


enveigle is a Itineris Limited project created by Tang Rufus.

Full list of contributors can be found here.


enveigle is released under the MIT License.

Current Tags

  • 0.5.2                                ...           latest (10 months ago)

12 Versions

  • 0.5.2 [deprecated]           ...           10 months ago
  • 0.5.1 [deprecated]           ...           10 months ago
  • 0.5.0 [deprecated]           ...           10 months ago
  • 0.4.2 [deprecated]           ...           a year ago
  • 0.4.1 [deprecated]           ...           a year ago
  • 0.4.0 [deprecated]           ...           a year ago
  • 0.3.2 [deprecated]           ...           2 years ago
  • 0.3.1 [deprecated]           ...           2 years ago
  • 0.3.0 [deprecated]           ...           2 years ago
  • 0.2.1 [deprecated]           ...           2 years ago
  • 0.2.0 [deprecated]           ...           2 years ago
  • 0.1.2 [deprecated]           ...           2 years ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 12
Last Month 13
Dev Dependencies (9)
Dependents (0)

Copyright 2014 - 2017 © taobao.org |