Skip to content

Generated CLI capabilities ​

This page describes BC Atlas 0.7.0. Run npm run docs after a capability changes.

Commands by feature area ​

Get started ​

Set up a project; in VS Code, the BC Atlas extension shows everything in the editor.

CommandInvocationPurpose
setupbca setup [app-root]Set up BC Atlas for a project step by step: .bca.json, features, Git hooks, pipelines, schedules, and sync.
setup.planbca setup plan [app-root]Detect the project and list setup questions with recommended answers.
setup.applybca setup apply [app-root]Write .bca.json, Git hooks, and a pipeline from setup answers.
setup.agentbca setup agent [app-root]Add a /bca-setup command for your AI agent that runs the guided setup through the CLI.

Analyze ​

Gate CI on architecture health and keep a target architecture in place.

CommandInvocationPurpose
checkbca check [app-root]Score architecture health and fail CI on cycles, policy violations, or diagnostics.
architecturebca architecture [app-root]Find a target architecture (components, layers, allowed dependencies), list every dependency that points the wrong way with how to resolve it, and enforce it with a baseline.
refactor.movebca refactor move [app-root]Move an AL object to another component: its file goes to the component's folder (cut out of a shared file), its namespace becomes the component's, and referencing files get the using they need.
refactor.surfacebca refactor surface [app-root]Lock the public surface of components: objects no other component uses get Access = Internal, and .bca.json lists what others use in exposes.

Export ​

Write what the app shows as files, and user guides from AL UI tests.

CommandInvocationPurpose
exportbca export [app-root]Write files: the BC Atlas pages as one offline HTML file, the Markdown report, the 3D explorer, the object catalog, or one diagram view.
docs.listbca docs list <test-root>List documented UI-test scenarios.
docs.showbca docs show <test-root>Show one scenario, its prerequisites, and its diagnostics.
docs.validatebca docs validate <test-root>Validate IDs, tags, links, and prerequisite cycles.
docs.generatebca docs generate <test-root>Generate user guides or test cases with flow diagrams as Markdown, HTML, DITA, Azure DevOps CSV, or BPMN.
docs.setbca docs set <test-root>Add or replace documentation metadata in AL source.
docs.unsetbca docs unset <test-root>Remove documentation metadata from AL source.
docs.automationbca docs automation <test-root>Print a CI pipeline that keeps generated guides in sync.
docs.glossarybca docs glossaryList supported documentation tags and prerequisite types.

Integrate ​

Connect BC Atlas to Git hooks, pipelines, schedules, and AI agents.

CommandInvocationPurpose
runbca run [app-root]Run the features configured for a trigger (Git hook, pipeline, schedule) and sync their output.
updatebca update [app-root]Check for a new BC Atlas version, show what changed, and update it together with the generated setup files.
mcpbca mcpStart the Model Context Protocol server on stdio for AI agents.

What bca export writes ​

--viewWrites
appThe BC Atlas pages as one offline HTML file to share: every page, the diagrams, the 3D explorer, and the docs
reportMarkdown report (README.md) with health, diagrams, and an optional object catalog
explorerInteractive 3D dependency explorer (HTML), replayable over Git history, or its graph as JSON
catalogOne linked Markdown page per AL object

Diagram views ​

ViewShows
projectAL objects grouped into role lanes (Data, UI, Services, ...)
moduleAggregated namespace or folder dependencies
objectOne object with incoming and outgoing neighbors
dataTables with reads, writes, relations, and extensions
callProcedure and trigger call graph
boundaryDependencies crossing a namespace, folder, app, or object
contractsInterfaces and their direct or enum implementations
eventsEvent publishers and subscribers
uiPages, source tables, parts, actions, and navigation
workflowCalls, events, and data mutations traced from entry points

Export formats ​

  • html
  • d2
  • json
  • svg
  • png
  • pdf

Exit codes ​

  • Success: 0
  • Operation failure or failed check: 1
  • Usage error: 2

For all options and examples, read the CLI reference.

Released under the MIT License.