trellis-cli icon indicating copy to clipboard operation
trellis-cli copied to clipboard

What about forks or customized defaults for Trellis/Bedrock?

Open retlehs opened this issue 6 years ago • 4 comments

what if you're an agency that maintains your own fork of trellis that already has certain things in place that are used on all of your trellis sites? such as:

  • wp-cli packages
  • certain users/keys for servers
  • vault keys for licenses/services

how could you use this trellis cli to create new trellis projects with all of those defaults?

retlehs avatar Jan 17 '19 22:01 retlehs

(the same goes for bedrock)

retlehs avatar Jan 17 '19 22:01 retlehs

in https://github.com/roots/roots-cli/issues/1 we were going to allow for specifying other remotes

retlehs avatar Jan 17 '19 23:01 retlehs

In #20 we mention about allowing pluggable subcommands so people can extend with their own setups. Sounds challenging though. How about using a config file like ~/.trellis/config.yml that defines things like remotes?

codepuncher avatar Jan 30 '19 21:01 codepuncher

Right now the CLI downloads the latest release via GitHub. This wouldn't be too hard to support a customized version such as a Git repo. The complication comes from how the CLI is generating the configs right now since it requires the default configs which exist in Trellis. So if someone supplied a custom fork where wordpress_sites.yml was different enough, it might break things.

swalkinshaw avatar Jan 31 '19 00:01 swalkinshaw