# Symfony Console

To enable the commands on a Symfony application, you have to install and add the associated bundle into your kernel:

```bash
composer require web-token/jwt-console
composer require web-token/jwt-bundle
```

If you use Symfony Flex, you have nothing to do. Otherwise you have to enable to bundle.

```php
// app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            ...
            new Jose\Bundle\JwtFramework\JwtFrameworkBundle(),
        ];

        return $bundles;
    }
    ...
}
```

Then execute your Symfony Console command to use the command provided by this component:

```bash
./bin/console
```


---

# 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/symfony-console.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.
