code: def create_ini(self, board, project_dir='', sayyes=False):
          
  
          project_dir = util.check_dir(project_dir)
  
          ini_path = util.safe_join(project_dir, PROJECT_FILENAME)
  
          # Check board
          boards = Resources().boards
          if board not in boards.keys():
              click.secho(
                  'Error: no such board \'{}\''.format(board),
                  fg='red')
              sys.exit(1)
  
          if isfile(ini_path):
              # -- If sayyes, skip the question
              if sayyes:
                  self._create_ini_file(board, ini_path, PROJECT_FILENAME)
              else:
                  click.secho(
                      'Warning: {} file already exists'.format(PROJECT_FILENAME),
                      fg='yellow')
                  if click.confirm('Do you want to replace it?'):
                      self._create_ini_file(board, ini_path, PROJECT_FILENAME)
                  else:
                      click.secho('Abort!', fg='red')
          else:
              self._create_ini_file(board, ini_path, PROJECT_FILENAME)
docs: Creates a new apio project file