Rayfin

CLI

Overview of the rayfin CLI — root options, the Fabric development workflow, and links to every visible command in Rayfin 1.36.2.

Use @microsoft/rayfin-cli from a Rayfin project root to scaffold projects, run the local Fabric-backed development session, deploy to Microsoft Fabric, and query version-locked Rayfin documentation. The binary is rayfin; scaffolded projects call it through npx rayfin or package scripts.

Typical workflow

npm create @microsoft/rayfin@latest my-app
cd my-app
npx rayfin login
npm run dev
npx rayfin up

npm run dev in the bundled templates runs rayfin dev, which prepares the Fabric backend and starts the local frontend. Use rayfin up when you want to deploy static content and Functions to Fabric.

Root options

These options are declared on the root rayfin program.

OptionDefaultDescription
-V, --version—Output the version number.
-y, --yesfalseAuto-accept all confirmation prompts.
--output <mode>—Output format for the invoked subcommand. Choices: interactive, plain, json.
--verbosefalseEnable verbose output for the invoked subcommand.
--jsonfalseEmit machine-readable JSON output from the invoked subcommand.
-h, --help—Display help for rayfin or a subcommand.

Many subcommands redeclare --json, --verbose, or -y, --yes so they also work after the subcommand name.

Visible commands

CommandPurpose
initCreate a new Rayfin project, add Rayfin to an existing directory, list templates, or manage agent files.
devStart a local development session against a Fabric Rayfin backend.
upDeploy the application to Fabric as a Rayfin item.
secretManage secrets for deployed Rayfin items. Changed in 1.36
functionsManage Rayfin Functions. Changed in 1.36
connectorManage external data connectors. Changed in 1.36
envEmit framework-specific .env.local values from rayfin/.env.
loginSign in to the Rayfin platform.
logoutSign out and clear cached credentials; see Login.
docsQuery Rayfin docs from installed packages, or discover packages not yet installed.

Reference pages

PageWhat it covers
CLI installationInstall and update @microsoft/rayfin-cli.
Initrayfin init, npm create @microsoft/rayfin, templates, services, and generated files.
rayfin devFabric-backed local development and dev functions apply.
UpFull deploy, dry runs, service exclusions, status, switch, and deploy-only subcommands.
EnvFramework .env.local generation.
DocsCLI documentation search and symbol lookup.
Ai-filesAGENTS.md, .mcp.json, and Rayfin skills management.
TemplatesBuilt-in, local, git, and registered template sources.
TelemetryCLI telemetry and opt-out variables.

Configuration reference

The CLI reads and writes rayfin/rayfin.yml, rayfin/.env, and rayfin/.deployments.json. See Configuration.

PromptExplain the current rayfin CLI
Run `npx rayfin --help` in my Rayfin project, then summarize every visible top-level command and tell me which command starts local development against the Fabric backend.
Something wrong on this page?Report an issueEdit this page

On this page