Skip to main content
Version: 0.7.0

The command line

yoke is one command with two halves: lifecycle verbs, which act on declarations, and client verbs, which act on a running instance. They answer to different authorities and fail in different ways.

Lifecycle verbsClient verbs
subjecta package, a bundle, a record, a state directorya Core running now
interlocutorthe filesystem, the guardian, the init system, the container engineone of the instance's administrative projections
act when nothing runsyes — that is what they are forno
authoritywhat was written downwhat the instance grants whoever reaches its surface
  • The manager holds no privileged path inwards. A client verb reaches an instance as any client does, on a published projection whose address it computes from the instance's name.
  • Neither interlocutor is reached through the other. The guardian carries nothing about the inside of an instance, and no administrative operation stops an instance or changes its declaration.

The namespaces​

Lifecycle verbs are namespaced, and the namespace selects the regime. Client verbs are grouped by subject.

NamespaceRegimeActs on
yoke appuserpackages, bundles, the install root
yoke instanceuserinstance records and the state beside them
yoke servicesystemthe one deployment the init system activates
yoke log, plugin, unit, core, stream, shelleitherwhat is inside a running instance

yoke app​

VerbDoesGoes to
install <package>expands a package into a bundle and resolves what it references — Installingfilesystem, engine
listthe applications and versions installed, each with its install statefilesystem
show <id>one application: its versions, what each records, which any instance points atfilesystem
remove <id> [--version <v>]removes bundles; refused while any instance points at a version being removedfilesystem
prune [<id>]the one reclaiming verb — Updating and removalfilesystem, engine
run <id> [--version <v>], run --from <dir>creates an ephemeral record and follows the run — Instancesfilesystem, guardian

yoke instance​

VerbDoesGoes to
create <id> [--name <n>] [--version <v>] [--params <file>]writes a record, its values checked against the declarationsfilesystem
listthis account's instances, each with the state derived for itfilesystem, guardian
show <n>the record, and what the state occupiesfilesystem
start <n>, stop <n>, restart <n>writes the desired state, then asks for the record to be reconciledfilesystem, guardian
enable <n>, disable <n>writes autostart — a second field, not the desired statefilesystem
set-version <n> <v>re-points the record at an installed versionfilesystem
set-param <n> <group>.<key> <value>replaces one recorded value, checked as at creationfilesystem
set-secret <n> <secret>reads a value without echoing it into the instance's state — Secretsfilesystem, operator projection
copy <n> <path>, restore <path> <n>copies a stopped instance's state out, or back infilesystem
clear <n>removes the state; the instance stays declaredfilesystem
remove <n>removes the record and the state togetherfilesystem

list asks the guardian for the why behind an instance that is not running, and answers without one: which instances exist is a directory listing, and whether one is alive is its claim.

yoke service​

VerbDoesGoes to
start, stop, restartasks the init system, and starts nothing itselfinit system
statuswhat the init system reports, beside what the instance answersinit system, operator projection
checkruns the gate over the composition in forcefilesystem
set-secret <name>writes a secret into the deployment's own areafilesystem
execgates and then executes the Core, in one processfilesystem
  • The init system is asked through systemctl, about the unit yoke.service.
  • exec is the verb the unit names, not a verb for typing: it makes the party that executes the Core the party that gated it.
  • yoke service reads the description the service form already has — core.yaml, the Plugin directory and the composition. There is no manager configuration in this regime.

The client verbs​

There is one verb per operation of the administrative contract, named after it and taking the same subject — the operations are listed in the administrative surface.

yoke <subject> <operation> [--instance <name>] [options]
  • The instance is a selector and never a namespace. --instance chooses among an account's instances and may be omitted while there is one; in the service form there is nothing to select.
  • A stopped instance answers nothing. A client verb against one reports that it is not running.
The exchangeProjectionExamples
a bounded question, answered and done — including a subscription followed until interruptedoperatoryoke core status, yoke plugin list, yoke log follow
a person carried into a deployment and left thereshellyoke shell

Neither projection is the more capable: both carry the same operations with the same authority.

What it reports​

A refusal and a fault are different news. A refusal reports every failure found, not the first.

Exit statusMeans
0the verb did what it says
1a refusal: the answer will not change until something is changed
2a fault: the attempt failed, and the same attempt may succeed
  • An account's listing shows that account's instances and no others. Installed applications are visible to every account: the root is shared.
  • When the init system and the instance disagree, both are reported and neither is chosen — active according to the init system, not answering on its surface.