---
updatedAt: 2026-06-08T08:33:08.000Z
agentTools:
  projectIndex: https://developer.ixon.cloud/llms.txt
---

# How to register, deploy and publish a Cloud Function

How to take your Cloud Function to production in your company.

After developing your Cloud Function, the last steps will consist of registering the Cloud Function to the IXON Cloud, then deploying it and publishing it.

> 📘 The information regarding deployment and publishing are also available in the <Anchor label="**Deployment to IXON Cloud**" target="_blank" href="https://github.com/ixoncloud/backend-component-workspace#deployment-to-ixon-cloud">**Deployment to IXON Cloud**</Anchor> section of the IXON Cloud Functions SDK.

# Registering the function in IXON Cloud

Before you can deploy, you need to register the function in IXON Cloud.

1. Open **<Anchor label="Studio > Cloud Functions" target="_blank" href="https://portal.ixon.cloud/studio/cloud-functions">Studio > Cloud Functions</Anchor>**.
2. Click **Add new Cloud Function**.
3. Enter the name of your Cloud Function, then click **Add**. We recommend using a name that end-users will recognize.
4. **Copy the Public ID** that's displayed — you'll need it for deploying and publishing the function.

# Deploy and publish

To deploy and publish your local code as a new version of the registered function, the workspace needs two files.

## The `.env` file

Found in the workspace root. the `.env` file should contain two fields:

* **`IXON_API_COMPANY_ID`** — your company's Public ID. You can find it in the URL of the IXON Portal when your company is open.
* **`IXON_API_TEMPLATE_ID`** — the Public ID of the Cloud Function you just registered.

An example of `.env` file:

```env .env
IXON_API_COMPANY_ID=your-company-public-id
IXON_API_TEMPLATE_ID=your-function-public-id
```

## The `.accesstoken` file

The `.accesstoken` file should also exists in the workspace root. In this scenario, you can obtain an access token by using F12 and looking for the **Authorization header** of an API call with the network inspector while browsing the IXON Portal. After that, copy it in the `.accesstoken` file.

Then deploy following the steps in the workspace's <Anchor label="deployment section" target="_blank" href="https://github.com/ixoncloud/backend-component-workspace#deployment-to-ixon-cloud">deployment section</Anchor> of the IXON SDK workspace.

> 👍 Notes
>
> * `.env` and `.accesstoken` **should not be checked into version control**. The `.gitignore` file in the workspace already includes these files and more, but it is always worth double-checking it before deploying.
> * The user account used for deploying must have the **Develop apps permission**.
> * The **bearer token** can also be automatically generated when logging in from a UI Component's workspace: You can do that and copy the bearer token in the `.accesstoken` file and then paste it in the `backend-component-workspace` root folder.

Finally, **deploy and publish** your function with the following command:

```python Deploy and publish
make deploy
```

Once published, the function becomes **available** under <Anchor label="Admin > Apps" target="_blank" href="https://portal.ixon.cloud/admin/apps">Admin > Apps</Anchor> for anyone in your company to enable.

# How to upload a new Cloud Function's version

If your function has been updated and you want to publish a new version, running `make deploy` will automatically **deploy and publish a new version**. The newly **published** version will be visible from **Studio > Cloud Functions > \[Cloud Function Name] > Versions**.

*Note: It may take a minute or two for the "Last published" flag and the date under "Published on" to appear next to the new version.*

![](https://files.readme.io/4909223b537cf4114816ea4190e0eca396b73d61ec56fda74773193ba96e2ca8-image.png)

<br />