cli_init
Usage
add_action( 'cli_init', 'wp_kama_cli_init_action' ); /** * Function for `cli_init` action-hook. * * @return void */ function wp_kama_cli_init_action(){ // action... }
Where the hook is called
cli_init
wp-cli/php/WP_CLI/Runner.php 1694
do_action( 'cli_init' );