use TencentCloud\Common\Credential; use TencentCloud\Cvm\V20170312\CvmClient; use TencentCloud\Cvm\V20170312\Models\DescribeInstancesRequest; use TencentCloud\Cvm\V20170312\Models\InternetAccessible; use TencentCloud\Cvm\V20170312\Models\Placement; use TencentCloud\Cvm\V20170312\Models\RunInstancesRequest; use think\console\Command; use think\console\Input; use think\console\input\Argument; use think\console\Output;
class Cvm extends Command { protected $cvmClient;
protected function configure() { $this ->setName('cvm') ->addArgument('bandwidth', Argument::OPTIONAL, 'band width') ->addArgument('internetType', Argument::OPTIONAL, 'tnternet charge type') ->addArgument('area', Argument::OPTIONAL, 'the area of the cvm') ->setDescription('to purchase a new cvm of qcloud'); }