diff --git a/packages/plugin-assets/src/commands/assets/init.js b/packages/plugin-assets/src/commands/assets/init.js index 76da5ec3..1bca65fe 100644 --- a/packages/plugin-assets/src/commands/assets/init.js +++ b/packages/plugin-assets/src/commands/assets/init.js @@ -16,7 +16,8 @@ class InitCommand extends TwilioClientCommand { accountSid: this.currentProfile.accountSid, pluginConfig: pluginConfig, logger: this.logger, - serviceName: this.flags['service-name'], + serviceName: + this.flags['service-name'].trim() || generateProjectName().dashed, }); this.output(result, this.flags.properties); } catch (error) { @@ -29,7 +30,6 @@ InitCommand.flags = { 'service-name': flags.string({ description: 'A unique name for your asset service. May only contain alphanumeric characters and hyphens.', - default: () => generateProjectName().dashed, }), properties: flags.string({ default: 'service_sid, sid, domain_name',