# Packaging and publishing

> Package a function as a .nupkg, publish it to an Orchestrator feed, and deploy it as a process in a folder.

Functions are packaged as standard UiPath `.nupkg` packages and published to an Orchestrator feed. From there, a package is deployed as a process in an Orchestrator folder before it can be invoked. The flow is the same in both languages; only the command prefix and the version source differ.

| | JavaScript / TypeScript | Python |
|---|---|---|
| Package | `uip function pack` | `uipath pack` |
| Publish | `uip function publish` | `uipath publish` |
| Version comes from | `package.json` | `pyproject.toml` |

## Package

```bash
uip function pack
```

This produces a versioned `.nupkg` (for example, `my-function.1.0.0.nupkg`). Bump the version in your project file before packing a new release.

## Publish

```bash
uip function publish
```

You are prompted to select a package feed (for example, the Orchestrator Tenant Processes Feed); pass `--feed-id` to select one non-interactively in CI. Publishing uploads the `.nupkg` to that feed — at this point it is a package on the feed, not yet a runnable process.

## Deploy

Before a function can be invoked, the published package must be deployed as a process in an Orchestrator folder — either manually in Orchestrator or through solution deployment. A function joins a solution the same way an RPA or API project does:

```bash
uip solution project import "./my-functions"
uip solution resources refresh
```

Once the process exists, the function becomes available to:

- A [Maestro Service Task](invoking-functions.md)
- The Orchestrator API and job triggers (scheduled, event-based)
- Its [HTTP trigger](javascript-http-triggers.md), for a JavaScript HTTP function

## Versioning

- The package version comes from the project file — `package.json` for JavaScript, `pyproject.toml` for Python.
- Publishing a new version adds it to the feed; update the process or Maestro Service Task binding to pick it up.
- The `.nupkg` is the same package format used by RPA — the same feed, upload, and version-management mechanics apply.

## Next steps

- [Invoke functions](invoking-functions.md) — wire the published function into a process.
