public function __construct($app, $name = null)
 {
     parent::__construct($app, $name);
     $this->setDescription('Get details about the specified zone');
     $this->setHelp('This command allows you to get a all details abount the requested domain.');
     $this->addArgument('domain', Console\Input\InputArgument::REQUIRED, 'The domain you want to get details');
     $this->labels['setting']['zone_id'] = 'Zone ID';
     $this->labels['setting']['user_id'] = 'User ID';
     $this->labels['setting']['zone_name'] = 'Zone name';
     $this->labels['setting']['display_name'] = 'Display name';
     $bool_values = array(0 => 'Off', 1 => 'On');
     $this->labels['dns_cname'] = $bool_values;
     $this->labels['dns_partner'] = $bool_values;
     $this->labels['dns_anon_partner'] = $bool_values;
     $this->labels['pro'] = $bool_values;
     $this->labels['expired_pro'] = $bool_values;
     $this->labels['pro_sub'] = $bool_values;
     $this->labels['ssl'] = $bool_values;
     $this->labels['expired_ssl'] = $bool_values;
     $this->labels['expired_rs_pro'] = $bool_values;
     $this->labels['reseller_pro'] = $bool_values;
     $this->labels['force_interal'] = $bool_values;
     $this->labels['ssl_needed'] = $bool_values;
     $this->labels['alexa_rank'] = $bool_values;
     $this->labels['zone_status_desc'] = function ($value) {
         return preg_replace('/\\(.*\\)/', '', $value);
     };
 }
 public function __construct($app, $name = null)
 {
     parent::__construct($app, $name);
     $this->setDescription('Toggle dev mode On or Off');
     $this->setHelp('This function allows you to toggle Development Mode on or off for a particular domain. When Development Mode is on the cache is bypassed. Development mode remains on for 3 hours or until when it is toggled back off.');
     $this->addArgument('domain', Console\Input\InputArgument::REQUIRED, 'The domain you want to change DevMode');
 }
예제 #3
0
 public function __construct($app, $name = null)
 {
     parent::__construct($app, $name);
     $this->setDescription('Get all Dns records for a specific domain');
     $this->setHelp('List al records created in a zone');
     $this->addArgument('domain', Console\Input\InputArgument::REQUIRED, 'The domain');
 }
 public function __construct($app, $name = null)
 {
     parent::__construct($app, $name);
     $this->setDescription('Create an issue on Github');
     $this->setHelp("Create an issue so that developer can find&remove bugs in this software. Please be descriptive in the body anche check if the issue is already present at https://github.com/lorello/cloudflare-cli/issues.\n\n");
     $this->addArgument('title', Console\Input\InputArgument::REQUIRED, 'A synthetic description of the bug you have found or the request you want to submit.');
     $this->addArgument('body', Console\Input\InputArgument::OPTIONAL, 'An extended description of the request: add output of the error you encountered.');
 }
 public function __construct($app, $name = null)
 {
     parent::__construct($app, $name);
     $this->setDescription('Purge cache of a specific domain');
     $this->setHelp('Purge cache of the specified domain');
     $this->addArgument('domain', Console\Input\InputArgument::REQUIRED, 'The domain to purge cache');
     $this->addArgument('url', Console\Input\InputArgument::OPTIONAL, 'Remove from cache this specific URL');
 }
예제 #6
0
 public function __construct($app, $name = null)
 {
     parent::__construct($app, $name);
     $this->setDescription('Lists all domains in a CloudFlare account along with other data.');
     $this->setHelp('This lists all domains in a CloudFlare account along with other data.');
     $this->labels['setting'][''] = '';
     $bool_values = array(0 => 'Off', 1 => 'On');
     $this->labels['zone-status']['V'] = 'Verified';
     $this->labels['zone-status']['P'] = 'Waiting DNS change';
     $this->labels['zone-status']['INI'] = 'Waiting Setup';
     $this->labels['pro'] = $bool_values;
     $this->labels['status-class'] = function ($value) {
         return preg_replace('/status-/', '', $value);
     };
 }
예제 #7
0
 public function __construct($app, $name = null)
 {
     parent::__construct($app, $name);
     $this->setDescription('Create a DNS record for the specified domain');
     $this->setHelp('Create a DNS record for the specified domain. More info on DNS record type may be found at http://en.wikipedia.org/wiki/List_of_DNS_record_types');
     $this->addArgument('domain', Console\Input\InputArgument::REQUIRED, 'The domain');
     $this->addArgument('type', Console\Input\InputArgument::REQUIRED, 'Record type, one of A/CNAME/MX/TXT/SPF/AAAA/NS/SRV/LOC');
     $this->addArgument('name', Console\Input\InputArgument::REQUIRED, 'Record name');
     $this->addArgument('content', Console\Input\InputArgument::REQUIRED, 'Record content');
     $this->addOption('ttl', 't', Console\Input\InputOption::VALUE_REQUIRED, 'Record Time-to-live (TTL)', 'auto');
     $this->addOption('priority', 'p', Console\Input\InputOption::VALUE_REQUIRED, 'The priority of the target host, lower value means more preferred (applies to MX/SRV record types)', 10);
     $this->addOption('service', 's', Console\Input\InputOption::VALUE_REQUIRED, 'Service for SRV record');
     $this->addOption('servicename', 'a', Console\Input\InputOption::VALUE_REQUIRED, 'Service name for SRV record', '@');
     $this->addOption('protocol', 'l', Console\Input\InputOption::VALUE_REQUIRED, 'Protocol for SRV record. Possible values are tcp, udp, tls', 'tcp');
     $this->addOption('weight', 'w', Console\Input\InputOption::VALUE_REQUIRED, 'Weight for SRV record: a relative weight for records with the same priority, higher value means more preferred');
     $this->addOption('port', 'o', Console\Input\InputOption::VALUE_REQUIRED, 'Port for SRV record');
     $this->addOption('target', 'g', Console\Input\InputOption::VALUE_REQUIRED, 'Target for SRV record: the canonical hostname of the machine providing the service');
 }
예제 #8
0
 public function __construct($app, $name = null)
 {
     parent::__construct($app, $name);
     $this->setDescription('Get current settings of the specified zone');
     $this->setHelp('This command allows you to get a full dump of all settings of the requested domain.');
     $this->addArgument('domain', Console\Input\InputArgument::REQUIRED, 'The domain you want to get settings');
     $this->labels['setting']['userSecuritySetting'] = 'User Security Setting';
     $this->labels['setting']['dev_mode'] = 'Development Mode';
     $this->labels['setting']['ob'] = 'Always online';
     $this->labels['setting']['chl_ttl'] = 'Challenge TTL (seconds)';
     $this->labels['setting']['exp_ttl'] = 'Expire TTL (for CloudFlare-cached items)';
     $this->labels['setting']['fpurge_ts'] = 'Cache Purge Time';
     $this->labels['setting']['hotlink'] = 'Hotlink protection';
     $this->labels['setting']['outlink'] = 'Outlink';
     $this->labels['setting']['sec_lvl'] = 'Basic Security Level';
     $this->labels['setting']['cache_lvl'] = 'Cache Level';
     $this->labels['setting']['cache_ttl'] = 'Cache TTL';
     $this->labels['setting']['outboundLinks'] = 'Outbound Links';
     $this->labels['setting']['async'] = 'Rocket Loader';
     $this->labels['setting']['minify'] = 'Minification';
     $this->labels['setting']['ipv46'] = 'IPV6';
     $this->labels['setting']['host_spf'] = 'Host SPF';
     $this->labels['setting']['bic'] = 'Browser Integrity Check';
     $this->labels['setting']['email_filter'] = 'Email obfuscation';
     $this->labels['setting']['sse'] = 'Server Side Exclude';
     $this->labels['setting']['geoloc'] = 'IP Geolocation';
     $this->labels['setting']['spdy'] = 'SPDY (>Pro)';
     $this->labels['setting']['ssl'] = 'SSL Status (>Pro)';
     $this->labels['setting']['lazy'] = 'Mirage: Lazy Load (>Pro)';
     $this->labels['setting']['img'] = 'Mirage: Auto-resize, Polish settings (>Pro)';
     $this->labels['setting']['preload'] = 'Cache preloader (>Pro)';
     $this->labels['setting']['waf_profile'] = 'Web Application Firewall (>Pro)';
     $this->labels['setting']['ddos'] = 'Advanced DDoS Protection (>Pro)';
     $bool_values = array(0 => 'Off', 1 => 'On');
     $this->labels['dev_mode'] = $bool_values;
     $this->labels['ob'] = $bool_values;
     $this->labels['waf_profile'] = $bool_values;
     $this->labels['host_spf'] = $bool_values;
     $this->labels['sec_lvl']['eoff'] = 'Essentially Off';
     $this->labels['sec_lvl']['low'] = 'Low';
     $this->labels['sec_lvl']['med'] = 'Medium';
     $this->labels['sec_lvl']['high'] = 'High';
     $this->labels['sec_lvl']['help'] = 'I\'m Under Attack!';
     $this->labels['cache_lvl']['agg'] = 'Aggressive';
     $this->labels['cache_lvl']['iqs'] = 'Simplified';
     $this->labels['async']['0'] = 'Off';
     $this->labels['async']['a'] = 'Automatic';
     $this->labels['async']['m'] = 'Manual';
     $this->labels['minify'][0] = 'Off';
     $this->labels['minify'][1] = 'JavaScript only';
     $this->labels['minify'][2] = 'CSS only';
     $this->labels['minify'][3] = 'Javascript and CSS';
     $this->labels['minify'][4] = 'HTML only';
     $this->labels['minify'][5] = 'JavaScript and HTML';
     $this->labels['minify'][6] = 'CSS and HTML';
     $this->labels['minify'][7] = 'CSS, Javascript and HTML';
     $this->labels['ipv46'][0] = 'Off';
     $this->labels['ipv46'][3] = 'Full';
     $this->labels['bic'] = $bool_values;
     $this->labels['email_filter'] = $bool_values;
     $this->labels['sse'] = $bool_values;
     $this->labels['hotlink'] = $bool_values;
     $this->labels['outlink'] = $bool_values;
     $this->labels['geoloc'] = $bool_values;
     $this->labels['spdy'] = $bool_values;
     $this->labels['ssl'][0] = 'Off';
     $this->labels['ssl'][1] = 'Flexible';
     $this->labels['ssl'][2] = 'Full';
     $this->labels['ssl'][3] = 'Full (Strict)';
     $this->labels['lazy'] = $bool_values;
     $this->labels['img'][0] = 'Off';
     $this->labels['img'][100] = 'Auto-resize on';
     $this->labels['img'][200] = 'Polish: Basic';
     $this->labels['img'][201] = 'Polish: Basic, Mirage: Auto-resize on';
     $this->labels['img'][170] = 'Polish: Basic + JPEG';
     $this->labels['img'][171] = 'Polish: Basic + JPEG, Mirage: Auto-resize on';
     $this->labels['preload'] = $bool_values;
     $this->labels['fpurge_ts'] = function ($value) {
         return date('r', $value);
     };
 }