Skip to content

Running WP-CLI when WordPress is not yet installed #1481

@sebastiaandegeus

Description

@sebastiaandegeus

I have the following setup:

  • WP core has been downloaded and wp-config is setup correctly.
  • No database has been created and no install has been done.

I want to implement a command to run migrations so I would like to interact with the DB through Laravel's database classes. (Eloquent ORM, Capsule)

But now even commands that have @when before_wp_load give this error: Error: The site you have requested is not installed.

This seems odd as I specifically say the command has to be run before WP. Is there support for something like when before_wp_installed ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions