# $kirby->root('commands')

The directory where all your custom <a href="https://github.com/getkirby/cli">Kirby CLI</a> commands are stored.

****

****

## Example

```php
<?= $kirby->root('commands') ?>
```

## Custom setup

If you want to overwrite the root you can do this in your `index.php` by passing a custom roots setup to the Kirby constructor.

```php "/index.php"
<?php

include 'kirby/bootstrap.php';

$kirby = new Kirby([
    'roots' => [
        'commands' => '/absolute/path/to/custom/root',
    ],
]);

echo $kirby->render();

```