Atkins command-line flags select the pipeline file, the jobs to run, and the output format.
Usage
atkins [flags] [job-names...] [-- job-args...]
Running jobs is the default: atkins build
and atkins run build
are the same command.
Flag Reference
Choosing what runs
| Flag | Short | Description |
|---|---|---|
--file |
-f |
Pipeline file to use; skips discovery |
--working-directory |
-w |
Change to this directory before running |
--jail |
Load skills from the project only, ignoring parent folders and $HOME/.atkins |
|
--list |
-l |
List the jobs and dependencies and exit |
--all |
With --list
, include the skills whose when:
block doesn't match; with --stats
, list every recorded command |
|
--lint |
Check the pipeline for errors and exit |
Output
| Flag | Short | Description |
|---|---|---|
--json |
-j |
Emit the run, or the listing, as JSON |
--yaml |
-y |
Emit the run, or the listing, as YAML |
--final |
Print the tree once at the end, without redrawing | |
--log |
Write an execution log to this file | |
--debug |
Print interpolation, evaluation and timing detail | |
--version |
-v |
Print the version and build information |
--help |
-h |
Print the reference document and exit |
Statistics
| Flag | Description |
|---|---|
--stats |
Report the recorded commands by the time they have taken, and run nothing |
--all |
With --stats
, list every recorded command of the window, oldest first |
--limit |
With --stats --all
, list only the newest N commands; 0, the default, lists them all |
--local |
Run without recording anything in the event database |
--prune |
Remove the runs and commands older than --older-than
from the database --db
names, release the space, and run nothing |
--db |
With --prune
, the database file to prune |
--older-than |
With --prune
, the age past which a run goes: days, such as 31d
, or a duration, such as 720h
; 31d
unless set |
--dry-run |
With --prune
, count what would go and change nothing |
Project setup
| Flag | Description |
|---|---|
--config |
Open the configuration menu over .atkins/config.yml |
--vendor |
Report the skills this repository uses from $HOME/.atkins/skills |
--write |
With --vendor
, write them into .atkins/skills |
File Discovery
By default, Atkins auto-discovers pipeline files in this order:
.atkins.yml.atkins.yamlatkins.ymlatkins.yaml
Name another file with -f
:
# Use a specific file
atkins -f ci/build.yml
# Use a Taskfile
atkins -f Taskfile.yml
Running Jobs
# Run default job
atkins
# Run specific job
atkins build
# Run multiple jobs in sequence
atkins lint test build
# Run namespaced job
atkins go:test
# Pass arguments to a job with args: true
atkins compose:custom -- ps -a
Everything after a bare --
is an argument for the job, never a job name or a pipeline file. The job must be the only one named and must set args: true
; its exec:
steps get the arguments appended as literal argv, and no shell parses them. See Skills
.
Listing Jobs
# List all jobs (interactive display)
atkins -l
# List as YAML (for scripting/LLMs)
atkins -l -y
# List as JSON
atkins -l -j
# List as JSON, inactive skills included
atkins -l -j --all
The JSON and YAML listings name each section's kind, file, run folder and when:
match, and each job's name
, interactive
and args
. --all
adds the skills whose when:
block doesn't match, with active: false
. See Skills
for the fields.
Example output with -l
:
My Project
* default: Run all checks (depends_on: lint, test)
* build: Build the application
* test: Run tests
* lint: Run linters
Aliases
* b: (invokes: build)
Linting
Check pipeline syntax without running:
atkins --lint
Checks for:
- Missing job dependencies
- Invalid task references
- Ambiguous step definitions
contains:expressions in awhen:block that don't compile
-l
runs the same checks first. With --json
or --yaml
, a failure prints the findings in that format and exits with status 1:
{
"error": "pipeline 'Broken' has errors",
"lint": [
{
"pipeline": "Broken",
"path": "/home/user/proj/atkins.yml",
"job": "default",
"issue": "missing task reference",
"detail": "step references task 'missing', but job \"missing\" not found"
}
]
}
Output Modes
Interactive Tree (Default)
Shows live progress with colors and status indicators:
atkins
Final Only
Renders tree only after completion (useful for CI logs):
atkins --final
JSON/YAML Output
For automation and tooling integration:
# Execution output as JSON
atkins --json
# Execution output as YAML
atkins --yaml
# List jobs as JSON (for LLM tool integration)
atkins -l -j
--json
and --yaml
are mutually exclusive.
Logging
Log command execution details to a file:
atkins --log execution.log
The log includes:
- Command start/end times
- Exit codes
- Output captured
- Timing information
Working Directory
Change to a directory before running:
atkins -w ./subproject
Same as:
cd ./subproject && atkins
Debug Mode
Enable verbose debug output:
atkins --debug
Shows:
- Variable interpolation
- Command evaluation
- Timing details
Jail Mode
Restrict skill loading to project scope only:
atkins --jail
Without --jail
:
- Loads skills from
.atkins/skills/ - Also loads from
.atkins/skills/in the parent folders - Also loads from
$HOME/.atkins/skills/
With --jail
:
- Only loads from the project's
.atkins/skills/ - Ignores parent folders and global skills
Vendoring Skills
Report the skills this repository uses from $HOME/.atkins/skills
, and what copying them into .atkins/skills
next to .git
would change:
atkins --vendor
Found 7 local skills.
Found usage for 3 skills.
+ docker +45 -0 (new)
✓ go (up to date)
~ mdox +4 -1 (changed)
Would install: docker, mdox.
Run atkins --vendor --write to write them.
The command writes nothing until --write
, which creates the missing skills and overwrites a vendored copy that has drifted:
atkins --vendor --write
--debug
adds the reason behind each skill selection and the diff behind the line counts. The copies are ordinary repository content. A clone or a CI agent gets the same jobs from the repository alone. --vendor
and --jail
are exclusive: jail mode excludes the directory vendoring reads from. See Skills
for the selection rules.
Configuration
atkins --config
Opens a menu over .atkins/config.yml
, creating it from the built-in defaults if it doesn't exist. The document says where a run records and what it keeps; ATKINS_*
variables overlay individual fields on top of it.
Statistics
Every run records a row per job and per command in the event database. A query shows the time a repository spends on its own tooling.
atkins --stats # the commands by the time they have taken
atkins --stats --all # and every recorded command, one by one
atkins --local build # run this one without recording it
atkins --prune --db ~/.atkins/atkins.db --older-than 90d --dry-run # what a prune of one database would drop
See Statistics
for the database, the normalised command, the retention window and --prune
.
Combining Flags
Flags combine:
# List jobs from specific file as YAML
atkins -f ci/pipeline.yml -l -y
# Run with debug and logging
atkins --debug --log debug.log
# Lint a specific file
atkins -f Taskfile.yml --lint
Shebang Execution
On Unix systems, pipeline files can be directly executable:
#!/usr/bin/env atkins
name: My Script
tasks:
default:
steps:
- run: echo "Hello!"
chmod +x script.yml
./script.yml
Stdin Input
Atkins also reads a pipeline from stdin:
cat pipeline.yml | atkins
# Or with here-doc
atkins <<EOF
tasks:
default:
steps:
- run: echo "From stdin"
EOF
See Also
- Job Targeting - Running specific jobs
- Script Mode - Executable pipelines
- Automation - JSON/YAML output details
- Statistics
- the event database and
--stats