YouBothAgent▾
You — Business rules and flows you own. Read these yourself.
Both — Know the idea; your agent follows the details.
Agent — Conventions and references your agent follows. Look up as needed.
CLI Reference▾
AkanJS Reference▾
UI Reference▾

Pipeline CLI

akan pipeline turns the pipeline declared in your akan.config.ts files into the plan Akan Cloud would run, and runs none of it. Check a change with it before you push.
Words Used on This Page
plan
The phases, stages and steps one build runs, as JSON that Akan Cloud executes.
phase
Stages that run together; the next phase starts when every stage of this one ends.
envelope
{ ok, plan, diagnostics }, the result plan prints or writes to --out.
diagnostic
An error or warning about a definition, with a code such as pipeline.action.dockerWithoutBuild.
Three Actions
actionPrintsUse it for
dry-runThe plan as a table, phase by phase.Seeing what a build would run.
validateA one-line verdict and the diagnostics.Checking a definition before you push.
planThe envelope as JSON.Handing the plan to a program.
Exit Codes
CodeMeansenvelope
0A plan was made.Written, ok: true.
1The definition has errors.Written, ok: false, with the diagnostics.
2Anything else: not a workspace root, a refused flag, a failed write.Not written.
Related Pages

pipeline

Plan the build pipeline declared in the workspace and app akan.config.ts files, without running it. Each flag is a fact about the build: a flag you give is copied into the plan as is, and a missing one comes from git and the workspace.
Signature
Arguments
actionStringdefault dry-runplan | validate | dry-run
dry-run shows the plan, validate checks it, plan prints the envelope.
Options
--branchStringdefault current git branch
Branch the build is for; every when.branch is decided against it.
--envStringdefault the branch
AKAN_PUBLIC_ENV the build is for.
--appsStringdefault every app
Apps the build covers, comma-separated; an unknown or repeated app is an error.
--triggerStringdefault manualpush | redeploy | initial | rebuild | manual
What started the build; every when.trigger is decided against it.
--build-numNumberdefault 0-n
The build's number, a whole number of 0 or more.
--commitStringdefault HEAD
Commit the build is for.
--outString
Also write the envelope to this file, whole or not at all.
--formatStringdefault texttext | json
json prints the envelope instead of text, for any action.
Notes
nothing runs
No stage runs and nothing is uploaded; Akan Cloud runs the same planner when it builds.
function form
validate runs a function-form pipeline for one sample context and warns that others may differ.
exit code
0 a plan, 1 errors with the envelope written, 2 anything else with no envelope.
Examples

Released under the MIT License

Connect your AI to these docs

MCPhttps://akanjs.com/mcp
Copyright © 2026 Akan.js All rights reserved.System managed bybassman