head
verbreadWrite the first lines (or bytes) of a file.
Program anyfs-reader. Origin anyfs.
Governance: the action
What the verb is and may do, as governance says it. Each annotation is expressed by the surfaces or says why it is not.
| Property | Value |
|---|---|
kind | report |
effect | read |
idempotent | true |
audience | both |
tier | reader |
dryRun | false |
check | false |
reachChannels | local, ssh, mcp, rest |
reachReadOnly | true |
reachNeedsTty | false |
reachRunsAs | caller |
reachConfirmation | none |
Operands
| Operand | Meaning |
|---|---|
LOCATION | A file of a store. |
Options
| Option | Meaning | Properties |
|---|---|---|
--lines | The first N lines (10 by default). | type=value, short=n, required=false, standard=false, humanOnly=false, valueName=N, default=10 |
--bytes | The first N bytes instead of lines. | type=value, short=c, required=false, standard=false, humanOnly=false, valueName=N |
--explain | Say how the store would carry the operation out (native, emulated or refused), and do nothing else. | type=flag, required=false, standard=false, humanOnly=false, negatable=false, default=false |
--strict | Stop where the store carries an operation out by a means that can lose or change what you meant. | type=flag, required=false, standard=false, humanOnly=false, negatable=false, default=false |
--json | Write one JSON document and nothing else for a person. | type=flag, required=false, standard=true, humanOnly=false, negatable=false, default=false |
--sarif | Write the findings as SARIF 2.1.0 and nothing else. | type=flag, required=false, standard=true, humanOnly=false, negatable=false, default=false |
--quiet | Show only how it ended. | type=flag, short=q, required=false, standard=true, humanOnly=false, negatable=false, default=false |
--verbose | Show every step as it happens. | type=flag, short=v, required=false, standard=true, humanOnly=false, negatable=false, default=false |
--color | Use colour where the terminal shows it (--no-color turns it off). | type=flag, required=false, standard=true, humanOnly=false, negatable=true, default=true |
--non-interactive | Never ask a question: where one is needed, fail and say so. | type=flag, required=false, standard=true, humanOnly=false, negatable=false, default=false |
--on | Run it on these targets instead of here: ids joined by commas, `class:<class>` or `all`. | type=value, required=false, standard=true, humanOnly=false, valueName=VALUE |
Examples
anyfs head -n 5 fleet:/machines/alpha.json # The first five lines.Physical: what it is drawn as
anyfs head
cli-command. Write the first lines (or bytes) of a file.
| Property | Value |
|---|---|
usage | anyfs head |
words | head |
tier | reader |
anyfs_head
mcp-tool. Write the first lines (or bytes) of a file. (report, effect read, safe to repeat.)
| Property | Value |
|---|---|
title | anyfs head |
toolName | anyfs_head |
readOnlyHint | true |
destructiveHint | false |
idempotentHint | true |
inputs | lines, bytes, explain, strict, LOCATION |
required | LOCATION |
tier | reader |
GET /v1/head
rest-route. Write the first lines (or bytes) of a file.
| Property | Value |
|---|---|
method | GET |
path | /v1/head |
operationId | anyfs_head |
effect | read |
tier | reader |
idempotent | true |