Skip to content

Add env var license instructions to readme #4649

Closed

Description

@carlin-q-scott

The instructions here provide a better way to set the license than the example in the readme:

### Auto-Discovery via Environment Variables
If no license key is set in code, AutoMapper looks for one in environment variables. This is convenient for containerized and cloud environments, and for enterprises that share a single key across many services without code changes:
- `AUTOMAPPER_LICENSE_KEY` – the AutoMapper-specific license key.
- `LUCKYPENNY_LICENSE_KEY` – a shared key usable across Lucky Penny products (for example, [MediatR](https://github.com/LuckyPennySoftware/MediatR) reads the same variable). Because it is shared, the key must be for a license that includes AutoMapper (a `Bundle` or AutoMapper edition); a MediatR-only license will not validate here.

Activity

  1. carlin-q-scott commented on Aug 25, 2026

    @carlin-q-scott
    Author

    Your documentation site is also missing this better path for licensing.
    https://docs.automapper.io/en/latest/License-configuration.html

  2. jbogard commented on Sep 4, 2026

    @jbogard
    Contributor

    Not sure why the downvotes here lol. But there's something janky on the docs site, it's not picking up the latest version correctly. The docs are there on the "Stable" version.

  3. jbogard commented on Sep 4, 2026

    @jbogard
    Contributor

    OK this is fixed, just a misconfigured in the docs site configuration.

  4. carlin-q-scott commented on Sep 8, 2026

    @carlin-q-scott
    Author

    @jbogard Could you also consider adding it to the readme? I think a lot of people will see that first.

  5. jbogard commented on Sep 9, 2026

    @jbogard
    Contributor

    Yeah, the readme would work too! I'll create a new issue for that.

  6. jbogard commented on Sep 9, 2026

    @jbogard
    Contributor

    Actually, I'll just reopen this one since that was the original title.

  7. reopened this on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions