Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-11T07:42:40.677Z
Answers.LastActivityDate: 2021-05-13T02:01:57.003Z
Answers.LastEditDate: 2021-05-13T02:01:57.003Z
Answers.UserDisplayName: Will Kim
Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-30T13:42:46.373Z
Answers.Text: 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`
Answers.UserDisplayName: John Morton
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-30T17:23:12.933Z
Answers.Text: Nice I didn't even consider there's be cli commands for this!
Answers.UserDisplayName: Daniel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-25T01:19:11.047Z
Answers.Text: This requires the migrationassistant plugin
Answers.UserDisplayName: Henry
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-30T12:28:37.857Z
Answers.LastActivityDate: 2019-01-30T12:28:37.857Z
Answers.UserDisplayName: Sam
Body: <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>
  
Tags: <craft3><projectconfig>
Title: Is there a way to apply project.yaml changes on deployment?
ThreadText: # 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
  
  ```
  
  
  ---
  
  