How to use the @twilio/cli-core.TwilioClientCommand.accountSidFlag function in @twilio/cli-core

To help you get started, we’ve selected a few @twilio/cli-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github twilio / twilio-cli / src / commands / phone-numbers / update.js View on Github external
description:
      'A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by VoiceUrl.'
  }),
  'voice-fallback-method': flags.enum({
    options: ['GET', 'POST'],
    description: 'The HTTP method Twilio will use when requesting the VoiceFallbackUrl.'
  })
};

NumberUpdate.UrlFlags = ['smsUrl', 'smsFallbackUrl', 'voiceUrl', 'voiceFallbackUrl'];

NumberUpdate.flags = Object.assign(
  {},
  NumberUpdate.PropertyFlags,
  TwilioClientCommand.flags,
  TwilioClientCommand.accountSidFlag
);

NumberUpdate.args = [
  {
    name: 'phone-number',
    required: true,
    description: 'The SID or E.164 formatted phone number you wish to update.'
  }
];

module.exports = NumberUpdate;
github twilio / twilio-cli / src / commands / phone-numbers / list.js View on Github external
this.output(fullData, this.flags.properties);
  }
}

NumberList.description = 'show what Twilio phone numbers you have configured';

NumberList.flags = Object.assign(
  {
    properties: flags.string({
      default: 'sid, phoneNumber, friendlyName',
      description:
        'The incomingPhoneNumber object properties you would like to display (JSON output always shows all properties).'
    })
  },
  TwilioClientCommand.flags,
  TwilioClientCommand.accountSidFlag
);

module.exports = NumberList;