@10up/cypress-wp-utils
    Preparing search index...

    Function wpCli

    • Perform a WP CLI command

      Parameters

      • command: string

        WP CLI command. The 'wp ' prefix is optional

      • ignoreFailures: boolean = false

        Prevent command to fail if CLI command exits with error

      Returns void

      cy.wpCli('plugin list --field=name').then(response=>{
      const plugins = res.stdout.split('\n');
      // Do whatever with plugins list
      });