accessor | The install’s accessor. The default NOOPAccessor holds the validated config at accessor.config (None without a config model). |
paths | The path operands, resolved against the working directory. |
texts | The text and number operands, in declaration order. |
ctx.argv | The words after the command name as typed, subcommands included. |
ctx.flags | Group and leaf flags keyed by option name, --dry-run as dry_run. |
ctx.spec | The leaf’s CommandSpec. |
ctx.stdin | Piped bytes, an async byte source, or None. |
ctx.cwd | The session’s working directory. |
ctx.env | A copy of the environment taken when the command starts. |
ctx.vfs, ctx.session | The session’s files and live session; None outside a workspace. |
ctx.shell | await ctx.shell(line) runs another line in the calling session and returns its IOResult. Calling it after the command returns raises an error. |
ctx.processes | The session’s processes, as ps and jobs see them. |
ctx.ids | The workspace’s source of generated names and random values, so a seeded workspace replays them. |
ctx.runtime, ctx.diff, ctx.find | Not set for a CLI; they serve interpreter commands, diff and find. Run code through ctx.shell instead. |