---
title: Charmhub | Deploy WordPress using Charmhub - The Open Operator Collection
description: Deploy the latest version of WordPress as a Kubernetes Operator on any
  cloud.
url: https://charmhub.io/wordpress-k8s/docs/how-to-retrieve-initial-credentials
---

# WordPress

[Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

* [Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

Platform:

stable 15

```
juju deploy wordpress-k8s
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Contacts

##### Maintainers

+ [Launchpad Team](https://launchpad.net/~canonical-is-devops)

* [Submit a bug](https://github.com/canonical/wordpress-k8s-operator/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# How to retrieve initial credentials

Run the following command to get the initial admin password that can be used to login at
`http://<wordpress-unit-ip>/wp-login.php`.

```
juju run wordpress-k8s/0 get-initial-password
```

The output of the action should look something similar to the following:

```
unit-wordpress-k8s-0:
  UnitId: wordpress-k8s/0
  id: "10"
  results:
    password: <password>
  status: completed
```

The password should look something like: `XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`.

You can use the password to log in to the admin account in `http://<wordpress-unit-ip>/wp-admin.php`.

If the `admin_password` value was passed in the `initial_settings` configuration, the
password from this action is invalid.

---
