# apigenie license

Source: https://apigenie.pl/docs/reference/cli/license
Part of the reference of [apigenie](https://apigenie.pl/docs/reference/cli.md).
Its other pages: [bundle](https://apigenie.pl/docs/reference/cli/bundle.md), [changelog](https://apigenie.pl/docs/reference/cli/changelog.md), [config](https://apigenie.pl/docs/reference/cli/config.md), [convert](https://apigenie.pl/docs/reference/cli/convert.md), [credits](https://apigenie.pl/docs/reference/cli/credits.md), [diff](https://apigenie.pl/docs/reference/cli/diff.md), [evolve](https://apigenie.pl/docs/reference/cli/evolve.md), [format](https://apigenie.pl/docs/reference/cli/format.md), [i18n](https://apigenie.pl/docs/reference/cli/i18n.md), [init](https://apigenie.pl/docs/reference/cli/init.md), [lint](https://apigenie.pl/docs/reference/cli/lint.md), [overlay](https://apigenie.pl/docs/reference/cli/overlay.md), [test](https://apigenie.pl/docs/reference/cli/test.md).

Prints the license of API Genie, the names of the open-source libraries it is built with, or the
license text of one of them.

## Usage

```sh
apigenie license
apigenie license --list
apigenie license --library NAME
```

Without options, the command prints the terms under which the command-line tools are released as
freeware.

## Options

### --list

Prints the names of the libraries, separated by commas in lines of at most 80 characters, under
the line `API Genie uses the following open-source libraries:`. With `--library` as well, `--list`
wins.

### --library NAME

Prints the license text of one library. `NAME` is a name as `--list` prints it, quoted when it has
spaces:

```sh
apigenie license --library LibBF
apigenie license --library "Mbed TLS"
```

A name that is not in the list is reported (`No library with name NAME found.`).

## Exit status

| Status | When                                     |
| ------ | ---------------------------------------- |
| 0      | The text was printed.                    |
| 2      | `--library` names an unknown library.    |

## See also

- [credits](/docs/reference/cli/credits): What each library does, with its project page.
