<p><code>project-config/sync</code> has been renamed to <code>project-config/apply</code>.<br />
Thus you would have to run:</p>
<pre><code>./craft project-config/apply
</code></pre>

CC BY-SA 4.0
2021-05-11T07:42:40.677Z
2021-05-13T02:01:57.003Z
2021-05-13T02:01:57.003Z
Will Kim
<p>You can create a script to use the craft executable to sync your project config file</p>

<pre><code>./craft project-config/sync
</code></pre>

CC BY-SA 4.0
2019-01-30T13:42:46.373Z
At the end of my deploy script I now run this series of commands: `./craft migrate/all
./craft project-config/sync
./craft clear-caches/all`
John Morton
CC BY-SA 4.0
2019-01-30T17:23:12.933Z
Nice I didn't even consider there's be cli commands for this!
Daniel
CC BY-SA 4.0
2019-11-25T01:19:11.047Z
This requires the migrationassistant plugin
Henry
CC BY-SA 4.0
2019-01-30T12:28:37.857Z
2019-01-30T12:28:37.857Z
Sam
<p>Love the new new project config functionality, but if there are changes that need to be synchronised the site essentially goes down until the changes are applied manually.</p>

<p>I wondered if anyone had a simple way to programmatically apply the changes automatically when the site is deployed, via a webhook?</p>

<craft3><projectconfig>
Is there a way to apply project.yaml changes on deployment?
# Is there a way to apply project.yaml changes on deployment?

(Asked by: username_0 on 2019-01-30)

Love the new new project config functionality, but if there are changes that need to be synchronised the site essentially goes down until the changes are applied manually.

I wondered if anyone had a simple way to programmatically apply the changes automatically when the site is deployed, via a webhook?

**Tags:** craft3, projectconfig


---

## 2 answers

### Answer by username_2 on 2019-01-30. Score: 13 | Accepted answer

You can create a script to use the craft executable to sync your project config file
./craft project-config/sync

> **Comments:**
> **username_3**: At the end of my deploy script I now run this series of commands: `./craft migrate/all ./craft project-config/sync ./craft clear-caches/all`  
> **username_0**: Nice I didn't even consider there's be cli commands for this!  
> **username_4**: This requires the migrationassistant plugin  

---

### Answer by username_1 on 2021-05-11. Score: 3

project-config/sync has been renamed to project-config/apply.
Thus you would have to run:
./craft project-config/apply


---

