diff --git a/src/commands/generate/fromTemplate.ts b/src/commands/generate/fromTemplate.ts index e53ea665cb2..41b69bc7955 100644 --- a/src/commands/generate/fromTemplate.ts +++ b/src/commands/generate/fromTemplate.ts @@ -216,7 +216,7 @@ export default class Template extends Command { CliUx.ux.action.start('Generation in progress. Keep calm and wait a bit'); try { - await generator.generateFromString(specification.text(), genOption); + await generator.generateFromString(specification.text(), {...genOption, path: asyncapi}); CliUx.ux.action.stop(); } catch (err: any) { CliUx.ux.action.stop('done\n');