# How to call IC method install\_code by javascript.Is it possible to upgrade canister by frontend?

**URL:** <https://forum.dfinity.org/t/how-to-call-ic-method-install-code-by-javascript-is-it-possible-to-upgrade-canister-by-frontend/26154>\
**Category:** Developers\
**Created:** [January 3, 2024, 12:30pm UTC](https://forum.dfinity.org/t/how-to-call-ic-method-install-code-by-javascript-is-it-possible-to-upgrade-canister-by-frontend/26154 "2024-01-03T12:30:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![honopu](https://avatars.discourse-cdn.com/v4/letter/h/ecccb3/32.png) [@honopu](https://forum.dfinity.org/u/honopu)\
**Post date:** [January 3, 2024, 12:30pm UTC](https://forum.dfinity.org/t/how-to-call-ic-method-install-code-by-javascript-is-it-possible-to-upgrade-canister-by-frontend/26154/1 "2024-01-03T12:30:32Z")

</div>

The IC method [`install_code`](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-install_code)

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [January 3, 2024, 12:41pm UTC](https://forum.dfinity.org/t/how-to-call-ic-method-install-code-by-javascript-is-it-possible-to-upgrade-canister-by-frontend/26154/2 "2024-01-03T12:41:30Z")

</div>

The JS library `@dfinity/ic-management` exposes a wrapper to install code.

Note: the caller must be a controller of the canister.

> <https://github.com/dfinity/ic-js/tree/main/packages/ic-management>
>
> //github.com/dfinity/ic-js/tree/main/packages/ic-management
