# Installing, updating, and removing documents

To install a document on a website that you are building manually, change into the directory that contains the source for the document and run:

    $ publican build --embedtoc --formats=list_of_formats --langs=language_codes --publish
    $ publican install_book --site_config path_to_site_configuration_file.cfg --lang language_code

Note that you can run a single $ `publican build` command for all languages that you want to publish, but must run a separate `publican install_book` for each language. You must include `html` as one of the formats in the `publican build` command; optionally, include any or all of the following formats in a comma-separated list: `html-single`, `pdf`, and `epub`.

To update a document, change into the directory that contains the updated source for the document and run the same commands as if you were installing the document for the first time. Publican replaces the old version with the new version.

To remove a document, change into the directory that contains the source for the document and run:

    $ publican remove_book --site_config path_to_site_configuration_file.cfg --lang language_code

When you have installed the documents, the website is ready to upload to your webserver by whatever process you usually use, for example scp, rsync, or an FTP client.