> For the complete documentation index, see [llms.txt](https://web-token.spomky-labs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://web-token.spomky-labs.com/2.x/console-command/phar-application.md).

# 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
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://web-token.spomky-labs.com/2.x/console-command/phar-application.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.
