<p>Craft can now do this via the CLI</p>
<p><a href="https://craftcms.com/docs/3.x/console-commands.html#resave-entries" rel="noreferrer">https://craftcms.com/docs/3.x/console-commands.html#resave-entries</a></p>

CC BY-SA 4.0
2022-03-01T16:07:46.867Z
Does this trigger events like `Entry::EVENT_BEFORE_SAVE`? I can get the command line `resave/entries` to work but Events don't seem to be firing.
Kirk Roberts
CC BY-SA 4.0
2021-01-20T17:03:43.877Z
2021-01-20T17:03:43.877Z
Chris Rowe
<p>If you re-save the section(s) that your entries are in, it should re-trigger a save of all of the entries.</p>

<p>Hope that helps!</p>

CC BY-SA 3.0
2017-01-10T00:02:12.197Z
This is the correct answer, I don't see why it was down voted. Go to "Settings > Sections" and then the section containing your entries and hit save. This will trigger a bulk re-save of all of the entries.
Fyrebase
CC BY-SA 3.0
2017-01-10T00:38:56.343Z
¯\_(ツ)_/¯ - got my upvote.
Brad Bell
CC BY-SA 3.0
2017-01-10T14:32:47.270Z
This did in fact resave all entries (there was a task that ran in my sidebar confirming as much: https://cl.ly/221m2V0p2i41). Didn't seem to trigger the onSaveEntry event though; my field's values have gone unchanged. Is this intentional or am I missing something?
Rob Erskine
CC BY-SA 3.0
2017-09-01T10:02:01.047Z
I have this exact problem with 2000+ entries, how did you eventually manage to do this? Re saving the section doesn't work
Branko
CC BY-SA 4.0
2018-07-26T18:25:06.263Z
This is a good solution, except it does not seem to resave the localized versions of each entry. Or am I missing something?
Alex Kendrick
CC BY-SA 4.0
2019-01-14T10:46:36.550Z
Two-year-ago Jake, you beauty. Thanks! Works great in Craft 3.
Jay
CC BY-SA 4.0
2019-08-15T11:56:15.183Z
on craft 3.2.10 saving the section has no effect on the search-index only the "craft resave/entries" command worked for me but there is no documentation for that
toy
CC BY-SA 3.0
2017-01-09T22:26:21.650Z
2017-01-09T22:26:21.650Z
Jake Dohm
<p>I have a site with a hundred+ or so entries. I've added a new field to my entry template, but it won't take effect until it's been activated by a <a href="https://craftcms.com/docs/plugins/hooks-and-events#listening-for-events" rel="noreferrer">onSaveEntry</a> event. </p>

<p>I've gone through maybe 15 entries or so now and resaved them manually, but it's proving to be a long and painstaking process.</p>

<p>Is there a way for me to batch resave all enabled entries in order to trigger this <code>onSaveEntry</code> event? </p>

<events><updates><onsaveentry>
Bulk resave entries to trigger onSaveEntry event
# Bulk resave entries to trigger onSaveEntry event

(Asked by: username_0 on 2017-01-09)

I have a site with a hundred+ or so entries. I've added a new field to my entry template, but it won't take effect until it's been activated by a [onSaveEntry](https://craftcms.com/docs/plugins/hooks-and-events#listening-for-events) event.

I've gone through maybe 15 entries or so now and resaved them manually, but it's proving to be a long and painstaking process.

Is there a way for me to batch resave all enabled entries in order to trigger this `onSaveEntry` event?

**Tags:** events, updates, onsaveentry

---

## 2 answers

### Answer by username_3 on 2017-01-09. Score: 13 | Accepted answer

If you re-save the section(s) that your entries are in, it should re-trigger a save of all of the entries.

Hope that helps!

> **Comments:**
> **username_4**: This is the correct answer, I don't see why it was down voted. Go to "Settings > Sections" and then the section containing your entries and hit save. This will trigger a bulk re-save of all of the entries.  
> **username_5**: ¯\_(ツ)_/¯ - got my upvote.  
> **username_0**: This did in fact resave all entries (there was a task that ran in my sidebar confirming as much: https://cl.ly/221m2V0p2i41). Didn't seem to trigger the onSaveEntry event though; my field's values have gone unchanged. Is this intentional or am I missing something?  
> **username_6**: I have this exact problem with 2000+ entries, how did you eventually manage to do this? Re saving the section doesn't work  
> **username_7**: This is a good solution, except it does not seem to resave the localized versions of each entry. Or am I missing something?  
> **username_8**: Two-year-ago Jake, you beauty. Thanks! Works great in Craft 3.  
> **username_9**: on craft 3.2.10 saving the section has no effect on the search-index only the "craft resave/entries" command worked for me but there is no documentation for that  

---

### Answer by username_1 on 2021-01-20. Score: 5

Craft can now do this via the CLI

<https://craftcms.com/docs/3.x/console-commands.html#resave-entries>

> **Comments:**
> **username_2**: Does this trigger events like `Entry::EVENT_BEFORE_SAVE`? I can get the command line `resave/entries` to work but Events don't seem to be firing.  

---

