text: #!/usr/bin/env node
  
  /**
   * Copyright (c) 2016-present Alibaba Group Holding Limited
   * @author Houfeng <admin@xhou.net>
   */
  
  const pkg = require('../package.json');
  const semver = require('semver');
  const debug = require('debug')('cli');
  const resolveFrom = require('resolve-from');
  
  const { name, bin } = pkg;
  const localCLI = resolveFrom.silent(process.cwd(), `${name}/${bin['dawn']}`);
  
  if (!process.env.USE_GLOBAL_DAWN && localCLI && localCLI !== __filename) {
    debug('Using local install of dawn');
    require(localCLI);
  } else {
    debug('cli', __filename);
    debug('process.version', process.version);
    debug('pkg.engines.node', pkg.engines.node);
    if (!semver.satisfies(process.version, pkg.engines.node)) {
      let console = require('console3');
      return console.error([`The Node version requirement is ${pkg.engines.node}`,
      `but the current version is ${process.version}`].join(', '));
    }
  
    debug('process.argv', process.argv);
    require('./cli-core').ready();
  }
  