Use ember generate to generate, say, a component?

In core, yes (TIL!). You need to switch to the directory of our ember app first:

❯ cd app/assets/javascripts/discourse
❯ yarn ember generate component my-component-name
yarn run v1.22.10
$ /Users/david/discourse/discourse/app/assets/javascripts/node_modules/.bin/ember generate component my-component-name
installing component
  create app/components/my-component-name.js
  create app/templates/components/my-component-name.hbs
installing component-test
  create tests/integration/components/my-component-name-test.js
✨  Done in 2.06s.

But I don’t think there’s an easy way to do that in a plugin directory.

That’s how I do it as well :scissors: :clipboard: