#### This Page

# `add_publisher` (`scheme,` `publisher`)

- Method of Environment
- New in Lektor Version 2.0

This method can be used to register a new publisher for a given URL scheme with Lektor. This allows plugins to provide custom deployment methods. For more information on implementing these see Publisher.

## Example

    from lektor.publisher import Publisher

    class MyPublisher(Publisher):
        pass

    env.add_publisher('my', MyPublisher)

## Comments