# PHAR Application

## Installation

To install the application, you just have to download it and download the associated public key (the application is digitally signed):

```bash
curl -OL https://github.com/web-token/jwt-app/raw/gh-pages/jose.phar
curl -OL https://github.com/web-token/jwt-app/raw/gh-pages/jose.phar.pubkey
```

If everything is fine, you should have two files:

* `jose.phar`
* `jose.phar.pubkey`

You can move these files wherever you want (e.g. `/usr/local/bin`).

To use it, just execute the following line:

```bash
./jose.phar
```

## Update

The application can be updated easily:

```bash
./jose.phar selfupdate
```

If a new version exists, it will be downloaded automatically. If there is something wrong with the new version, you can reinstall the previous revision:

```bash
./jose.phar rollback
```


---

# Agent Instructions: 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:

```
GET https://web-token.spomky-labs.com/2.x/console-command/phar-application.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
