# Most efficient way to install ACF Pro in Bedrock without committing license key to repo?

**URL:** <https://discourse.roots.io/t/most-efficient-way-to-install-acf-pro-in-bedrock-without-committing-license-key-to-repo/22494>\
**Category:** bedrock\
**Tags:** composer, plugins, acf\
**Created:** [March 8, 2022, 3:06pm UTC](https://discourse.roots.io/t/most-efficient-way-to-install-acf-pro-in-bedrock-without-committing-license-key-to-repo/22494 "2022-03-08T15:06:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomHayes](https://discourse.roots.io/user_avatar/discourse.roots.io/tomhayes/32/9983_2.png) [@TomHayes](https://discourse.roots.io/u/TomHayes)\
**Post date:** [March 8, 2022, 3:06pm UTC](https://discourse.roots.io/t/most-efficient-way-to-install-acf-pro-in-bedrock-without-committing-license-key-to-repo/22494/1 "2022-03-08T15:06:51Z")

</div>

Hi guys,

I’ve had a look around and a a lot of the solutions I can find for this seem very old(i.e. pre-Sage 10).

What’s the best way to install ACF Pro (and my license key without storing it in plain text in the repo) using Sage 10/Bedrock/composer?

Thanks!

---

<div class="post-metadata">

**Author:** ![ben](https://discourse.roots.io/user_avatar/discourse.roots.io/ben/32/11377_2.png) [@ben](https://discourse.roots.io/u/ben)\
**Post date:** [March 8, 2022, 3:16pm UTC](https://discourse.roots.io/t/most-efficient-way-to-install-acf-pro-in-bedrock-without-committing-license-key-to-repo/22494/2 "2022-03-08T15:16:33Z")

</div>

If you want to store secrets in your repo then we recommend using Trellis.

> **[Trellis: Vault | Roots Documentation](https://docs.roots.io/trellis/master/vault/)**
>
> Steps to enable and use Ansible Vault with a Trellis project. Trellis uses a vault.yml file for variables with sensitive data such as passwords.

---

<div class="post-metadata">

**Author:** ![TomHayes](https://discourse.roots.io/user_avatar/discourse.roots.io/tomhayes/32/9983_2.png) [@TomHayes](https://discourse.roots.io/u/TomHayes)\
**Post date:** [March 8, 2022, 3:31pm UTC](https://discourse.roots.io/t/most-efficient-way-to-install-acf-pro-in-bedrock-without-committing-license-key-to-repo/22494/3 "2022-03-08T15:31:51Z")

</div>

Thanks, I’m not really looking to use Trellis though - I quite enjoy using valet for my WP sites and wouldn’t really want to replace that. Is there another option without having to change my toolset?

---

<div class="post-metadata">

**Author:** ![ben](https://discourse.roots.io/user_avatar/discourse.roots.io/ben/32/11377_2.png) [@ben](https://discourse.roots.io/u/ben)\
**Post date:** [March 8, 2022, 3:41pm UTC](https://discourse.roots.io/t/most-efficient-way-to-install-acf-pro-in-bedrock-without-committing-license-key-to-repo/22494/4 "2022-03-08T15:41:16Z")

</div>

Well, Valet has no possible way of helping you with secrets in a git repo. Trellis can via Ansible Vault. 😅

You can also use Trellis with Valet locally:

- [GitHub - danielroe/trellis-valet-driver: A driver for Laravel Valet that supports the default Trellis install.](https://github.com/danielroe/trellis-valet-driver)

---

<div class="post-metadata">

**Author:** ![TomHayes](https://discourse.roots.io/user_avatar/discourse.roots.io/tomhayes/32/9983_2.png) [@TomHayes](https://discourse.roots.io/u/TomHayes)\
**Post date:** [March 8, 2022, 3:47pm UTC](https://discourse.roots.io/t/most-efficient-way-to-install-acf-pro-in-bedrock-without-committing-license-key-to-repo/22494/5 "2022-03-08T15:47:27Z")

</div>

Thanks, maybe I wasn’t clear with my reply, I wasn’t expecting Valet to solve the problem, just that my understanding of Trellis was that it was something that would replace Valet too, which wasn’t what I was looking for. I don’t really want to be messing around with Vagrant boxes to be honest. Only ever had trouble from them!

Thanks for the link to the Valet driver, maybe this is what I need!

---

<div class="post-metadata">

**Author:** ![ben](https://discourse.roots.io/user_avatar/discourse.roots.io/ben/32/11377_2.png) [@ben](https://discourse.roots.io/u/ben)\
**Post date:** [March 8, 2022, 4:13pm UTC](https://discourse.roots.io/t/most-efficient-way-to-install-acf-pro-in-bedrock-without-committing-license-key-to-repo/22494/6 "2022-03-08T16:13:11Z")

</div>

We’ve done an awful job at making it clear as to how you can use Trellis, but there are many folks that don’t use Trellis for local dev.

People using Trellis for deployments alone make up a decent amount of the userbase

---

<div class="post-metadata">

**Author:** ![LinxSage](https://discourse.roots.io/user_avatar/discourse.roots.io/linxsage/32/10341_2.png) [@LinxSage](https://discourse.roots.io/u/LinxSage)\
**Post date:** [March 8, 2022, 10:12pm UTC](https://discourse.roots.io/t/most-efficient-way-to-install-acf-pro-in-bedrock-without-committing-license-key-to-repo/22494/7 "2022-03-08T22:12:24Z")

</div>

Try [ACF Pro as a Composer Dependency with Encrypted License Key | Roots](https://roots.io/guides/acf-pro-as-a-composer-dependency-with-encrypted-license-key/)  
We add our key via `.env` file or yml
