Commandline Interface (CLI)
The Forge CLI is the unifying command-line interface for the Candescent developer experience. It accompanies you through every phase of the developer journey — learn, build, integrate & test, operate, and scale — without leaving the terminal.
Forge is Candescent's umbrella brand for the developer experience. The CLI is one of the products under Forge, alongside the developer documentation portal, the Developer Console, and the SDKs. Throughout this guide, "the CLI" refers specifically to the Forge CLI.
What the CLI Does
The CLI is organized around the developer journey:
Learn
- AI-powered docs search —
forge askruns a streaming AI search across Candescent developer documentation. Use one-shot mode, an interactive session with follow-up menus, or--jsonfor scripts. Reuses a stored docs chat session across calls (--session,--new-session). Requiresforge login. - API discovery —
forge api listandforge api describebrowse the full Candescent Digital Insight API operation registry from the terminal, including parameter details and examples. - Template browsing —
forge widget templatesandforge aspect templatesshow every starter template, grouped by category, with previews of the generated code.
Build
- Widget scaffolding —
forge widget creategenerates a new web (Module Federation) or mobile (React Native) widget via Nx, with optional template overlays for common patterns (data charts, agent chat, promotional). - Aspect scaffolding —
forge aspect preview --template <id>(and optional--preset <id>) generates ready-to-edit Aspect code: classic UI patterns (banner, toast, modal, countdown), session-aware flows, vendor loaders and GTM-style snippets, mobile JSBridge chat shells, and related patterns. Output can be saved under./aspects/for local iteration. - Application & credential management —
forge appselects Developer Console apps;forge env switchchanges console environment;forge env load/set/show/clearstore SDK credential variables.
Integrate & Test
- Environment diagnostics —
forge doctorchecks Node, auth, git, Docker, and the extensibility monorepo; add--networkto probe BFF reachability and token exchange after login (forge app selectis required for token exchange). - API contracts —
forge widget api-contractandforge aspect api-contractdocument mock and production endpoint shapes for data-backed widgets and vendor presets. - Local previews —
forge widget previewandforge aspect previewlaunch a local OLB Docker playground (web). Widget mobile preview uses the Expo sandbox. Aspect mobile preview saves HTML and opens it in a browser. - Live API calls —
forge api call <tag>.<operation>executes any DI API operation from the terminal so you can validate integrations as you build them. - Mobile preview —
forge widget preview --platform mobileopens the Expo sandbox on an iOS Simulator or Android Emulator by default. Physical-device Expo Go is a fallback.forge aspect preview --platform mobilewrites an HTML file and opens it in a browser.
Operate
- Submission workflow —
forge widget submitandforge aspect submitopen a structured pull request for review, with built-in lint checks (ESLint + TypeScript + markdownlint) and platform validation. - Submission tracking —
forge submission list,forge submission status, andforge submission dashboardgive you cross-cutting visibility into every submission and its review state. - Publish & deploy —
forge submission publishmerges the approved PR and triggers the CI deploy pipeline.forge submission deploypromotes a published component to production. - PR management —
forge widget submitandforge aspect submitcreate review PRs; useforge repo pr listandforge repo pr statusto inspect them from the terminal.
Scale
- Repository setup —
forge repo initprovisions your FI repository for extension development. - Collaborator management —
forge collaborator add / list / removemanages who on your team can submit and manage components. - Multi-environment workflows —
forge loginauthenticates to the Production Developer Console (public builds).forge env switchmoves between Sandbox, Staging, and Production console environments without re-login.forge env load/set/show/clearmanage SDK credential variables separately.
Who Should Use the CLI
The Forge CLI is designed for two audiences:
Financial Institution Developers
FI developers who build custom widgets and Aspects to extend the Candescent Digital Banking platform for their customers. The CLI handles the full lifecycle: scaffold a project, preview it in a local playground, validate it against live APIs, and submit it through the GitHub-based review process.
Marketplace Partners (Fintechs)
Partners building integrations that multiple financial institutions can adopt. The CLI provides the same development workflow as FI developers.
Architecture
The CLI integrates with several Candescent services and development tools:
| Service | Used By |
|---|---|
Developer Console (console.candescent.com; console environments via forge env switch) | login, env switch, app, aspect submit, submission, collaborator, repo, widget submit |
@cdx-forge/di-typescript-sdk | api list, api describe, api call (operation registry + live API calls) |
| GitHub REST API | repo pr, submission publish (requires gh auth or GITHUB_TOKEN) |
| Developer documentation search service | ask (streaming AI search across developer docs) |
Nx + cdx-extensibility-apps | widget create, widget preview, widget build (local scaffolding and builds) |
| OLB Docker Playground | aspect preview, widget preview (local banking shell with widget slots and Aspect injection) |
cdx-mock-data-apis (port 4010) | Chart-widget templates, forge widget preview for data-driven widgets |
cdx-mock-partners (port 4011) | Partner-vendor scenarios, Aspect previews that load remote vendor scripts (including iframe-sso handoff via mock partners) |
| Expo + Metro Bundler | widget preview --platform mobile (iOS Simulator or Android Emulator; Expo Go is a physical-device fallback) |
Related Packages & Resources
Public packages, container images, and source repositories you may use alongside the Forge CLI:
CLI distributions
- npm —
@cdx-forge/cli(install withnpm i -g @cdx-forge/cliorpnpm add -g @cdx-forge/cli) - Homebrew tap —
candescent-dev/homebrew-forge(install withbrew install candescent-dev/forge/forge-cli)
SDKs and code references
- TypeScript Server SDK —
@cdx-forge/di-typescript-sdkon npm (used internally byforge api call; you can also depend on it directly from your own server-side code) - OpenAPI specs —
candescent-dev/openapi(canonical OpenAPI documents the SDKs and CLI registry are generated from)
Sample apps and playgrounds
cdx-extensibility-apps— github.com/candescent-dev/cdx-extensibility-apps — sample web and mobile widgets/Aspects, plus theplayground/webandplayground/mobile-sandboxworkspaces thatforge widget previewandforge aspect previewuse under the hood. The CLI auto-clones this repo to~/.forge/cdx-extensibility-appson first use.
Local mock servers and dev infrastructure
- OLB Docker Playground (web preview shell) — base image:
ghcr.io/candescent-dev/olb-playground. The local compose file incdx-extensibility-apps/playground/webis configured so widget HTTP calls can reach the host on ports 4010 / 4011. cdx-mock-data-apis— github.com/candescent-dev/cdx-mock-data-apis — mock REST data server (port 4010). Used by the chart-widget templates (forge widget create --template data-chart) and any widget that calls alocalhost:4010/...URL via the SDK.cdx-mock-partners— github.com/candescent-dev/cdx-mock-partners — mock partner/vendor server (port 4011). Used by Aspect templates and presets that load remote vendor scripts (for exampleengagement-script-loader,iframe-sso).
Mobile preview prerequisites
- Expo Go — expo.dev/go (physical-device fallback for widget mobile preview). Aspect mobile preview is HTML in a browser, not Expo.
- Xcode + iOS Simulator — developer.apple.com/xcode (macOS only)
- Android Studio + Android Emulator — developer.android.com/studio
Platform Support
The CLI supports both web and mobile development for widgets and Aspects:
| Extension Type | Web | Mobile |
|---|---|---|
| Widgets | Nx + Module Federation + OLB playground | Nx + React Native + Expo sandbox |
| Aspects | JavaScript IIFE injected into host page | HTML document loaded in a WebView |
The --platform flag (available on create, preview, and submit commands) ensures you build and submit for the correct target. Platform is recorded at create/preview time and validated at submit time.
Distribution
The CLI ships through two public channels, both updated automatically on every release:
- npm —
@cdx-forge/clifornpm/pnpmusers (any platform) - Homebrew —
candescent-dev/forgetap providing theforge-cliformula for macOS and Linux
Next Steps
- Installation — Install the CLI via Homebrew or npm/pnpm
- Quick Start — Authenticate, preview your first Aspect, and scaffold a widget in minutes
- Widget Development — Full guide to creating, previewing, and submitting widgets
- Aspect Development — Templates, preview modes, and the submission workflow
- Command Reference — Complete list of all commands and flags
- Troubleshooting — Doctor, checkout, npm/Nx, Windows, and preview failures