Commands
embr remove
Last updated November 2, 2026
embr remove <dependency>...
embr rm <dependency>...
Deletes dependencies from ember.toml. It does not install.
Behavior#
- Each name is an alias, a key under
[dependencies]or[dev-dependencies], or thescope/nameof an entry. Ascope/nameremoves each entry with that package, whatever its alias is. Case does not matter in ascope/name. - Every name must match before Ember changes the file. If a name matches
no entry, the error lists the aliases in
ember.toml, and the file stays as it was. - Edits keep the comments and the format of
ember.toml. An empty[dev-dependencies]table goes with its last entry.[dependencies]stays, becauseembr initwrites it. - Ember shows a warning when
[patches]or[overrides]still name a removed dependency. Install stops on a patch that cannot land and on an override that borrows a missing alias, so edit that entry before you install. A patch can still land when another dependency brings in the same package. - The last line reminds you to run
embr install. The install takes the package out of thepackagesfolders and out ofember.lock.
Examples#
embr remove signal # an alias
embr rm chief/core # a scope/name, under any alias
embr remove core lest # more than one at a time
Hooks#
A preremove script runs before ember.toml changes. A postremove
script runs after the file has been written. See
Lifecycle hooks.