Microsoft Fabric: deploy Rayfin apps with one command
Microsoft Fabric

Microsoft Fabric: deploy Rayfin apps with one command

by HubSite 365 about Reza Rad (RADACAD) [MVP]

Founder | CEO @ RADACAD | Coach | Power BI Consultant | Author | Speaker | Regional Director | MVP

Developers can deploy or update a Rayfin app in Microsoft Fabric with `npx rayfin up`, subject to preview prerequisites.

Key insights

  • Run `npx rayfin up` from a Rayfin project directory to deploy or update the app.
  • The command can sync settings, apply the generated database schema, and deploy static content when configured.
  • Rayfin and Fabric Apps are described in the research notes as preview technologies.
  • The notes list Node.js 20 or later, a Fabric workspace, and tenant enablement of Fabric Apps as prerequisites.

Microsoft Fabric’s Rayfin CLI uses `npx rayfin up` to deploy or update an application, coordinating configuration, schema, and configured frontend publishing steps. This workflow matters to developers building TypeScript-based applications that use Fabric as their backend. Reza Rad (RADACAD) [MVP] is the source of the demonstration referenced here, although no transcript or step-by-step demonstration details were provided.

What it does

Rayfin is described in the research notes as an SDK and CLI for defining application components in code and deploying them to Fabric. The notes identify data models, APIs, authentication, access policies, and application logic as parts of the code-first approach. Fabric Apps, built on Rayfin, are described as preview technology.

The `up` command does more than upload source files. From a configured project, it can create or reuse a Fabric Apps item, synchronize runtime settings from `rayfin.yml`, apply the database schema generated from TypeScript models, and deploy static frontend content when static hosting is enabled. It can also be used for later updates.

Who it is for and what you need

This workflow is aimed at developers working on Rayfin applications for Microsoft Fabric. The research notes list access to a Fabric account and a workspace where the user has contributor or administrator permissions. They also list Node.js 20 or later and a project with the required Rayfin configuration files.

Fabric Apps must be enabled by a tenant administrator, according to the notes. They describe Rayfin and Fabric Apps as preview technologies, so capabilities and requirements may change. The supplied sources do not include an official Microsoft documentation link to verify the preview status, licensing, or availability details.

How it works

Start with a Rayfin project, define its models and application logic, and use the CLI to publish it. A typical command sequence in the research notes is:

  1. Create a project with `npm create @microsoft/rayfin@latest my-app`.
  2. Change into the project directory with `cd my-app`.
  3. Run `npx rayfin up` to deploy to Fabric.
  4. Use `npm run dev` to run the frontend locally during development, as described in the notes.

After changing the application, running `npx rayfin up` again can publish updates. The command’s exact behavior depends on project configuration; static content deployment, for example, is conditional on static hosting being enabled.

Limitations and open questions

The supplied material does not establish which licenses, regions, or tenants can use the preview, nor does it provide the exact tenant setting path for enabling Fabric Apps. Check current Microsoft documentation and tenant controls before planning a deployment. The available clip has no transcript, so this article relies on the accompanying research notes for the workflow and prerequisites.

Sources

Frequently asked questions

What command deploys a Rayfin app to Microsoft Fabric?

Run `npx rayfin up` from the configured project directory. The command can deploy a new app or update an existing deployment.

What do I need before using Rayfin with Fabric?

The research notes list a Fabric account, a workspace with contributor or administrator permissions, Node.js 20 or later, and required Rayfin configuration files. They also say a tenant administrator must enable Fabric Apps.

Is Rayfin generally available?

The research notes describe Rayfin and Fabric Apps as preview technologies. The supplied sources do not include an official Microsoft link confirming rollout or availability details.