categories をエクスポートしようとして bundle exec script/discourse export_categories 21 を実行しましたが、bundler: failed to load command: script/discourse (script/discourse) LoadError: cannot load such file -- byebug というエラーが発生します。
bundle exec script/discourse の他のコマンドを試しましたが、結果は同じでした。
gem list には byebug (11.1.3) がインストールされています。