> For the complete documentation index, see [llms.txt](https://nginxle.onepub.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nginxle.onepub.dev/cli-commands/acquire.md).

# acquire

The acquire command allows you to acquire a certificate.

The acquire command is mainly used by the nginx-le team, you should normally configure nginx-le to auto acquire certificates.

Possible usages:

* you have had to revoke a certificate and need to force a new certificate to be acquired. In this case use the `nginx-le revoke` command followed by then `nginx-le acquire` command.
* an error occurred during auto acquisition and acquisitions have been blocked by nginx-le for 15 minutes. Running `nginx-le acquire` clears the block flag.

To acquire a certificate use `nginx-le acquire` command:

e.g.

`nginx-le acquire`

Note: The `acquire` command can take upto 5 minutes + to acquire a certificate due to delays in DNS propagation but is normally much quicker.

If you have rolled your own Docker or docker-compose configuration then you can still use the cli tools if you first run `nginx-le config`.

If you can't use the Nginx-LE cli tools then you can still use the 'in-container' tools.

To manually run the internal acquire command first attached to the Nginx-LE container and then run `acquire`.

```
nginx-le cli
acquire
```

Once you have run `acquire` Nginx-LE will automatically renew certificates.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://nginxle.onepub.dev/cli-commands/acquire.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
