Wordpress wp-env core connection strings for gitlab host

I’m trying to import a repo for wordpress wp-env docker instant container. I have a .wp-env.json file example that shows how to download a repo for github. But it doesn’t seem to work for gitlab.

So far my file looks something like this …

"core": "dbee01/https://gitlab.com/hachiweb/myrepo.git",
"plugins": [
"themes": [
"port": 8888,
"config": {
    "WP_DEBUG_DISPLAY": true,


Does anyone know how to pull in a private gitlab report with .wp-env ?


I assume you’re referring to https://make.wordpress.org/core/2020/03/03/wp-env-simple-local-environments-for-wordpress/ and alike.

It seems that the CLI command expects a full zip archive as input, or local directories. That being said, if you are able to clone the repository locally, you should be able to include it into the container environment.

Also, core seems to specifically expect a wordpress release zip file. What’s your idea of using a git repo instead?


Thanks dnsmichi.

I was under the impression that it was a .git file. My bad. Thanks, I’ll use the .zip file in the URL instead from now on.

I read somewhere that the format of the core string is username/gitlab.com/repo…

I guess this isn’t true from your link. What about a private repo though ? Surely you have to provide a username and password in the connection string ? What format do they take ?

Also, i’d be interested to know exactly what your wordpress workflow is ? If anyone would care to share ? Specifically how do they work on local wordpress with git and how they update the db on local and server automatically ?

My shared server host doesn’t support git natively. Any advice would be greatfully accepted …


I haven’t used this workflow myself, I only did a quick search on Google back then. I’m not sure whether the plugin supports private repositories - it could work with passing the user/pass into the URL, but that is generally advised against.

I would probably lean into creating my own environment with Docker and shared directories to access the code “live” then. Like, the Wordpress PHP instance runs shared in an Nginx container, and the database is running in a separate MySQL container. But that’s just thoughts, I never developed something specific with Wordpress myself.


1 Like