---
title: apikey
description: Canonical makes open source secure, reliable and easy to use, providing
  support for Ubuntu and a portfolio of enterprise-grade technologies. Founded in
  2004, Canonical operates globally with team members in over 80 countries.
url: https://canonical-com-2934.demos.haus/maas/docs/apikey?format=md
---

*Submit*

# apikey

Manage a user’s API keys. Shows existing keys unless --generate or --delete is passed.

```
maas apikey [-h] [--username USERNAME] [--generate] [--delete DELETE] [--update UPDATE] [--name API_KEY_NAME] [--with-names]
```

#### Command-line options

| Option | Effect |
| --- | --- |
| -h, --help | show this help message and exit |
| –username USERNAME | Specifies the username for the admin. |
| –generate | Generate a new api key. |
| –delete DELETE | Delete the supplied api key. |
| –update UPDATE | Update the supplied api key name. |
| –name API\_KEY\_NAME | Name of the token. This argument should be passed to |
|  | –update or --generate options |
| –with-names | Display tokens with their names. |

---

[Previous

account](https://canonical-com-2934.demos.haus/maas/docs/account)
[Next

bcache](https://canonical-com-2934.demos.haus/maas/docs/bcache)

Last updated 1 year, 5 months ago. [Help improve this document in the forum](https://discourse.maas.io/t/apikey/11400).
