code: private function generateCommand()
      {
          $java = $this->config->getJavaBinaryPath() ? : 'java';
          $command = sprintf(
              '%s -Djava.awt.headless=true -jar %s',
              $java,
              $this->config->getTikaBinaryPath()
          );
  
          if (!$this->config->getMetadataOnly()) {
              $command .= ' --'.$this->config->getOutputFormat();
          } else {
              $command .= ' --json';
          }
  
          $command .= sprintf(' --encoding=%s', $this->config->getOutputEncoding());
  
          return $command;
      }
docs: Generate Command
  
  @return string $command