Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

  • wpCli(command: string, ignoreFailures?: boolean): void
  • Perform a WP CLI command

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

    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

Generated using TypeDoc