hourctl attend: Time and Attendance
Hour Advantage Time and Attendance, on an instance that runs it: read people’s ledgers and the facts they are worked out from, record corrections and other facts, see who waits to be worked out again, and change the setup, policy layers and policy packages. hourctl attend test runs a policy package’s scenarios on this machine, offline, laid out as the cookbook’s recipes are.
Every hourctl command also takes the connection options.
Hour Advantage Time and Attendance: its tenants; and per tenant, ledgers, facts, who waits to be worked out, setup, policy layers and packages; and policy packages’ scenarios, on this machine.
Every command but tenants and test is for the tenant —tenant names (an employer, whose time is kept apart from every other’s); sinks and sink are for the install’s own sinks with —install. An instance that does not run Time and Attendance (HOURADVANTAGE_ATTEND=on) refuses. test runs on this machine, offline, against a package folder: it reaches no server. A JSON argument is the JSON itself, @FILE to read it from a file, or - to read it from stdin.
hourctl attend [OPTIONS] <COMMAND>Commands:
ledger: Show a person’s ledger of the pay period a day is in, as last worked out.person: Show a person’s employment on a day: whether employed, since when, on leave, for how many days, and the attributes in force.facts: List the facts a person’s ledgers are worked out from.record: Record facts about a person: all of them, or none.exceptions: List the exceptions to follow up, by time: by default those someone still has to deal with (open or acknowledged).note: Note one of a person’s exceptions: acknowledge it (seen, being dealt with), excuse it (accepted as it is: it no longer keeps approval back), or reopen it.pending: List who waits to have their ledgers worked out again, and why a try failed, by person, a page at a time.recalculate: Work people out again keeping nothing: from their facts alone, from their first day, reusing none of what is kept (a ledger kept wrong in a way its digests do not show, by a build with a fault, is put right).people: List the people, by id: everyone the tenant knows, or those under an organization on a day.timecards: List a pay period’s timecards, by person: paid hours, approved, closed, and the exceptions still to deal with; everyone’s, or those under an organization (by default on the period’s last day).hierarchies: List, make and rename the tenant’s hierarchies of organizations.orgs: List, show, make, change and move the organizations of a hierarchy.locations: List, show, make and change the tenant’s work locations.clocks: List, show, make, change and remove the tenant’s clock records, and re-stamp a clock’s punches with its record.unlinked: List the unlinked people (whom punches arrived for under the sender’s ids only), show one, and link one to the person they are.unreadable: List the punches that were delivered but could not be read (no time, no device or no user to place them on), each as it came and why, or forget one once it is put right.employers: List, show, make and change the tenant’s employers: the legal entities its people are employees of.employee: Show or set a person’s employee record (their employer, for good, and their worker); list a worker’s records.setup: Show, set and remove setup items: the tenant’s, or a person’s own.layer: List and add policy layers.pkg: Publish, list and show policy packages (the install’s shared ones, with —shared, or the tenant’s own), and adopt, pin and drop them for the tenant.leave: List a person’s leave, ask for leave, decide on it, take it back.export: Export a pay period with an exporter, list exports, and show one with whose time changed since.sinks: List the sinks Time and Attendance’s events are sent to, and what is waiting for each: the tenant’s (sent its events, and those posted into it by the sources each names), or with —install the install’s (sent every tenant’s events).sink: Add, change, move or remove one of Time and Attendance’s sinks: a webhook its events are posted to, as Connect’s sinks are, in order and until it answers 2xx.events: Read the tenant’s events in Time and Attendance’s log, oldest first: the engine’s own, and those other systems posted into the tenant.event: Post events into the tenant’s log in Time and Attendance, as another system does.delivery-keys: Issue, list and revoke the tenant’s delivery keys: what a Connect sink (of this install or another) or any other system delivers punches into the tenant with.tenants: Create, list, show, change, suspend, resume and delete tenants; write a tenant out, load one in.test: Run the scenarios of a policy package, as a cookbook recipe is laid out, on this machine, offline.
hourctl attend ledger
Show a person’s ledger of the pay period a day is in, as last worked out.
Prints the pay period, a warning while the person waits to be worked out again (the ledger is about to change), each day’s lines (category, decimal hours, labor context), the day’s paid hours, and the exceptions. With —json it prints the API’s answer, the whole ledger included.
hourctl attend ledger [OPTIONS] <PERSON>Arguments:
<PERSON>: The person’s id.
Options:
--day <DAY>: A workday of the pay period, YYYY-MM-DD; the person’s today (in their zone, by their policy) without it.--side <SIDE>: pay (the default) or bill.
Example:
hourctl attend ledger 104552 --day 2026-10-07hourctl attend person
Show a person’s employment on a day: whether employed, since when, on leave, for how many days, and the attributes in force.
hourctl attend person [OPTIONS] <PERSON>Arguments:
<PERSON>: The person’s id.
Options:
--day <DAY>: The workday, YYYY-MM-DD; the person’s today (in their zone, by their policy) without it.
Example:
hourctl attend person 104552 --day 2026-10-07hourctl attend facts
List the facts a person’s ledgers are worked out from.
Prints each fact’s kind, id, when it was recorded, and what it says.
hourctl attend facts [OPTIONS] <PERSON>Arguments:
<PERSON>: The person’s id.
Example:
hourctl attend facts 104552hourctl attend record
Record facts about a person: all of them, or none.
The facts are a JSON list (or {"facts": [...]}), each as {"<kind>": {...}} as hourctl attend facts --json shows them: corrections, labor entries, approvals, closes, accrual adjustments, schedule overrides, employment changes, exception notes, leave requests, break attestations, punches. A fact recorded again changes nothing; the same id with other content is refused. Prints new or already for each.
hourctl attend record [OPTIONS] <PERSON> <FACTS>Arguments:
<PERSON>: The person’s id.<FACTS>: The facts: JSON, @FILE, or - for stdin.
Example:
hourctl attend record 104552 @fix.jsonhourctl attend exceptions
List the exceptions to follow up, by time: by default those someone still has to deal with (open or acknowledged). Prints the —after to read on when there are more.
hourctl attend exceptions [OPTIONS]Options:
--state <STATE>: Only those in these states, comma separated: open, acknowledged, excused.--person <PERSON>: Only this person’s.--exception <EXCEPTION>: Only exceptions of this kind (missing_out, late…).--from <FROM>: Only those at or after this instant (RFC 3339).--to <TO>: Only those before this instant (RFC 3339).--unlinked <UNLINKED>: Only unlinked people’s (true), or only the others’ (false). One of:true,false.--under <HIERARCHY:ORG>: Only those in this organization, or one under it: HIERARCHY:ORG.--on <ON>: The day —under is asked of, YYYY-MM-DD.--after <AFTER>: Carry on after the previous page.--limit <LIMIT>: At most this many (100 unless given).
Example:
hourctl attend exceptions --state open --from 2026-10-05T00:00:00Zhourctl attend note
Note one of a person’s exceptions: acknowledge it (seen, being dealt with), excuse it (accepted as it is: it no longer keeps approval back), or reopen it.
hourctl attend note [OPTIONS] <PERSON> <EXCEPTION> <ACTION>Arguments:
<PERSON>: The person’s id.<EXCEPTION>: The exception’s id.<ACTION>: acknowledge, excuse or reopen.
Options:
--comment <COMMENT>: Why, in words.--id <ID>: The note’s id, to send it again safely.
Example:
hourctl attend note 104552 3f9a0c21d4e8b765 excuse --comment "agreed"hourctl attend pending
List who waits to have their ledgers worked out again, and why a try failed, by person, a page at a time.
hourctl attend pending [OPTIONS]Options:
--unlinked <UNLINKED>: Only unlinked people (true), or only the others (false). One of:true,false.--under <HIERARCHY:ORG>: Only those in this organization, or one under it: HIERARCHY:ORG.--on <ON>: The day —under is asked of, YYYY-MM-DD.--after <AFTER>: Carry on after the previous page.--limit <LIMIT>: At most this many (100 unless given).
Example:
hourctl attend pending --under management:ops-westhourctl attend recalculate
Work people out again keeping nothing: from their facts alone, from their first day, reusing none of what is kept (a ledger kept wrong in a way its digests do not show, by a build with a fault, is put right). What it changes is told as events. Closed pay periods stay closed. Name the people, or none for everyone of the tenant.
hourctl attend recalculate [OPTIONS] [PEOPLE]...Arguments:
[PEOPLE]...: The people’s ids; everyone of the tenant when none.
Options:
--reason <REASON>: Why, for the audit trail.
Example:
hourctl attend recalculate 104552 104553 --reason "overtime rule fixed in 2.4.1"hourctl attend people
List the people, by id: everyone the tenant knows, or those under an organization on a day.
hourctl attend people [OPTIONS]Options:
--under <HIERARCHY:ORG>: Only those in this organization, or one under it: HIERARCHY:ORG.--on <ON>: The day —under is asked of, YYYY-MM-DD.--after <AFTER>: Carry on after the previous page.--limit <LIMIT>: At most this many (100 unless given).
Example:
hourctl attend people --under management:ops-west --on 2026-10-07hourctl attend timecards
List a pay period’s timecards, by person: paid hours, approved, closed, and the exceptions still to deal with; everyone’s, or those under an organization (by default on the period’s last day).
hourctl attend timecards [OPTIONS] <PERIOD>Arguments:
<PERIOD>: The pay period’s first day, YYYY-MM-DD.
Options:
--side <SIDE>: pay (the default) or a bill side.--under <HIERARCHY:ORG>: Only those in this organization, or one under it: HIERARCHY:ORG.--on <ON>: The day —under is asked of, YYYY-MM-DD.--after <AFTER>: Carry on after the previous page.--limit <LIMIT>: At most this many (100 unless given).
Example:
hourctl attend timecards 2026-10-05 --under management:ops-westhourctl attend hierarchies
List, make and rename the tenant’s hierarchies of organizations.
hourctl attend hierarchies [OPTIONS] <COMMAND>Commands:
hourctl attend hierarchies list
List the hierarchies.
hourctl attend hierarchies list [OPTIONS]Example:
hourctl attend hierarchies listhourctl attend hierarchies create
Make a hierarchy.
hourctl attend hierarchies create [OPTIONS] --name <NAME> <ID>Arguments:
<ID>: Its id: 1 to 64 letters, digits, ’-’ or ’_’.
Options:
--name <NAME>
Example:
hourctl attend hierarchies create management --name Managementhourctl attend hierarchies rename
Rename a hierarchy.
hourctl attend hierarchies rename [OPTIONS] --name <NAME> <ID>Arguments:
<ID>: The hierarchy’s id.
Options:
--name <NAME>
Example:
hourctl attend hierarchies rename management --name "Line management"hourctl attend orgs
List, show, make, change and move the organizations of a hierarchy.
hourctl attend orgs [OPTIONS] <HIERARCHY> <COMMAND>Arguments:
<HIERARCHY>: The hierarchy’s id.
Commands:
list: List the hierarchy’s organizations, by id, each with its parents.show: Show an organization.create: Make an organization, under a parent (from the beginning) or a root.update: Change an organization’s name, external ids, labels or metadata.move: Move an organization under another (or make it a root) from a day, its subtree with it.
hourctl attend orgs list
List the hierarchy’s organizations, by id, each with its parents.
hourctl attend orgs <HIERARCHY> list [OPTIONS]Options:
--after <AFTER>: Carry on after the previous page.--limit <LIMIT>: At most this many (100 unless given).
Example:
hourctl attend orgs management listhourctl attend orgs show
Show an organization.
hourctl attend orgs <HIERARCHY> show [OPTIONS] <ID>Arguments:
<ID>: The organization’s id.
Example:
hourctl attend orgs management show ops-westhourctl attend orgs create
Make an organization, under a parent (from the beginning) or a root.
hourctl attend orgs <HIERARCHY> create [OPTIONS] <ID>Arguments:
<ID>: Its id: 1 to 64 letters, digits, ’-’ or ’_’.
Options:
--parent <PARENT>: Its parent; absent: a root.--name <NAME>--external-id <SYSTEM=ID>...: Its id in another system, SYSTEM=ID; repeat for each. Given, they replace all it had.--label <KEY=VALUE>...: A label, KEY=VALUE; repeat for each. Given, they replace all it had.--metadata <METADATA>: Its metadata, a JSON object: JSON, @FILE, or - for stdin. Given, it replaces all it had.
Example:
hourctl attend orgs management create ops-west --name "Operations West" --parent ops --label level=teamhourctl attend orgs update
Change an organization’s name, external ids, labels or metadata.
hourctl attend orgs <HIERARCHY> update [OPTIONS] <ID>Arguments:
<ID>: The organization’s id.
Options:
--name <NAME>--external-id <SYSTEM=ID>...: Its id in another system, SYSTEM=ID; repeat for each. Given, they replace all it had.--label <KEY=VALUE>...: A label, KEY=VALUE; repeat for each. Given, they replace all it had.--metadata <METADATA>: Its metadata, a JSON object: JSON, @FILE, or - for stdin. Given, it replaces all it had.
Example:
hourctl attend orgs management update ops-west --label level=departmenthourctl attend orgs move
Move an organization under another (or make it a root) from a day, its subtree with it.
hourctl attend orgs <HIERARCHY> move [OPTIONS] --from <FROM> <ID>Arguments:
<ID>: The organization’s id.
Options:
--parent <PARENT>: The new parent; absent: a root.--from <FROM>: The day it moves, YYYY-MM-DD.
Example:
hourctl attend orgs management move ops-west --parent west --from 2026-10-12hourctl attend locations
List, show, make and change the tenant’s work locations.
hourctl attend locations [OPTIONS] <COMMAND>Commands:
list: List the work locations.show: Show a work location.create: Make a work location.update: Change a work location (its people are worked out again from now).
hourctl attend locations list
List the work locations.
hourctl attend locations list [OPTIONS]Example:
hourctl attend locations listhourctl attend locations show
Show a work location.
hourctl attend locations show [OPTIONS] <ID>Arguments:
<ID>: The location’s id.
Example:
hourctl attend locations show fresnohourctl attend locations create
Make a work location.
hourctl attend locations create [OPTIONS] <ID>Arguments:
<ID>: Its id: 1 to 64 letters, digits, ’-’ or ’_’.
Options:
--name <NAME>--zone <ZONE>: The time zone days there are worked out in (America/Los_Angeles).--jurisdiction <JURISDICTION>: The jurisdiction, as you name it (us-ca).--value <DIMENSION=VALUE>...: A labor context value work there takes, DIMENSION=VALUE (country=fr); repeat for each. Given, they replace all it had.--external-id <SYSTEM=ID>...: Its id in another system, SYSTEM=ID; repeat for each. Given, they replace all it had.--label <KEY=VALUE>...: A label, KEY=VALUE; repeat for each. Given, they replace all it had.--metadata <METADATA>: Its metadata, a JSON object: JSON, @FILE, or - for stdin. Given, it replaces all it had.
Example:
hourctl attend locations create fresno --name "Fresno DC" --zone America/Los_Angeles --jurisdiction us-cahourctl attend locations update
Change a work location (its people are worked out again from now).
hourctl attend locations update [OPTIONS] <ID>Arguments:
<ID>: The location’s id.
Options:
--name <NAME>--zone <ZONE>: The time zone days there are worked out in (America/Los_Angeles).--jurisdiction <JURISDICTION>: The jurisdiction, as you name it (us-ca).--value <DIMENSION=VALUE>...: A labor context value work there takes, DIMENSION=VALUE (country=fr); repeat for each. Given, they replace all it had.--external-id <SYSTEM=ID>...: Its id in another system, SYSTEM=ID; repeat for each. Given, they replace all it had.--label <KEY=VALUE>...: A label, KEY=VALUE; repeat for each. Given, they replace all it had.--metadata <METADATA>: Its metadata, a JSON object: JSON, @FILE, or - for stdin. Given, it replaces all it had.
Example:
hourctl attend locations update fresno --jurisdiction us-ca-fresnohourctl attend clocks
List, show, make, change and remove the tenant’s clock records, and re-stamp a clock’s punches with its record.
hourctl attend clocks [OPTIONS] <COMMAND>Commands:
list: List the clock records.show: Show a clock record.create: Make a clock record.update: Change a clock record (later punches take it; nobody is worked out again).delete: Remove a clock record (the punches stamped keep their stamps).restamp: Give the clock’s punches from an instant the clock’s record as it is now, by corrections that say who and why; the persons are worked out again from the punches’ workdays.shift: Move the clock’s punches made from an instant up to another by a number of seconds, for a clock whose time was wrong for a stretch (one that kept standard time through daylight saving is an hour behind), by corrections that say who and why; the persons are worked out again from the punches’ workdays.
hourctl attend clocks list
List the clock records.
hourctl attend clocks list [OPTIONS]Example:
hourctl attend clocks listhourctl attend clocks show
Show a clock record.
hourctl attend clocks show [OPTIONS] <ID>Arguments:
<ID>: The clock’s device id.
Example:
hourctl attend clocks show Z34ACMEN00118hourctl attend clocks create
Make a clock record. The punches that arrive from the device take it from then on; the punches stored keep what they have.
hourctl attend clocks create [OPTIONS] <ID>Arguments:
<ID>: The device id its punches carry.
Options:
--name <NAME>--location <LOCATION>: The id of the work location it hangs at; "" takes it away.--value <DIMENSION=VALUE>...: A labor context value a punch made here takes where the person keyed none, DIMENSION=VALUE (site=dock); repeat for each. Given, they replace all it had.--external-id <SYSTEM=ID>...: Its id in another system, SYSTEM=ID; repeat for each. Given, they replace all it had.--label <KEY=VALUE>...: A label, KEY=VALUE (lunch_keys=no); repeat for each. Given, they replace all it had.--metadata <METADATA>: Its metadata, a JSON object: JSON, @FILE, or - for stdin. Given, it replaces all it had.
Example:
hourctl attend clocks create Z34ACMEN00118 --name "Dock door" --location fresno --label lunch_keys=nohourctl attend clocks update
Change a clock record (later punches take it; nobody is worked out again).
hourctl attend clocks update [OPTIONS] <ID>Arguments:
<ID>: The clock’s device id.
Options:
--name <NAME>--location <LOCATION>: The id of the work location it hangs at; "" takes it away.--value <DIMENSION=VALUE>...: A labor context value a punch made here takes where the person keyed none, DIMENSION=VALUE (site=dock); repeat for each. Given, they replace all it had.--external-id <SYSTEM=ID>...: Its id in another system, SYSTEM=ID; repeat for each. Given, they replace all it had.--label <KEY=VALUE>...: A label, KEY=VALUE (lunch_keys=no); repeat for each. Given, they replace all it had.--metadata <METADATA>: Its metadata, a JSON object: JSON, @FILE, or - for stdin. Given, it replaces all it had.
Example:
hourctl attend clocks update Z34ACMEN00118 --label lunch_keys=yeshourctl attend clocks delete
Remove a clock record (the punches stamped keep their stamps).
hourctl attend clocks delete [OPTIONS] <ID>Arguments:
<ID>: The clock’s device id.
Example:
hourctl attend clocks delete Z34ACMEN00118hourctl attend clocks restamp
Give the clock’s punches from an instant the clock’s record as it is now, by corrections that say who and why; the persons are worked out again from the punches’ workdays. A run does at most 20000 punches; this goes on, a run at a time, until all are done. With --preview, only say what it would do, for the whole range.
hourctl attend clocks restamp [OPTIONS] --from <FROM> <ID>Arguments:
<ID>: The clock’s device id.
Options:
--from <FROM>: The first instant: a date (the start of that day in the zone of the clock’s location; a clock with no location needs a time) or a time (2026-10-05T13:00:00Z).--preview: Say what it would do; change nothing.--reason <REASON>: Why, for the audit trail and each correction.
Example:
hourctl attend clocks restamp Z34ACMEN00118 --from 2026-10-05 --previewhourctl attend clocks shift
Move the clock’s punches made from an instant up to another by a number of seconds, for a clock whose time was wrong for a stretch (one that kept standard time through daylight saving is an hour behind), by corrections that say who and why; the persons are worked out again from the punches’ workdays. A punch another correction has moved is left alone. A run does at most 20000 punches; this goes on, a run at a time, until all are done. --undo ID takes back the shift of that request. With --preview, only say what it would do.
hourctl attend clocks shift [OPTIONS] --from <FROM> --to <TO> <ID>Arguments:
<ID>: The clock’s device id.
Options:
--from <FROM>: The first instant: a date (the start of that day in the zone of the clock’s location; a clock with no location needs a time) or a time (2026-03-09T13:00:00Z).--to <TO>: The end of the range, not included: a date or a time.--by-seconds <BY_SECONDS>: How far to move each punch, in seconds: later if positive, earlier if negative.--undo <UNDO>: The id of a shift to take back.--preview: Say what it would do; change nothing.--reason <REASON>: Why, for the audit trail and each correction.
Example:
hourctl attend clocks shift Z34ACMEN00118 --from 2026-03-09 --to 2026-03-14 --by-seconds 3600 --previewhourctl attend unlinked
List the unlinked people (whom punches arrived for under the sender’s ids only), show one, and link one to the person they are.
hourctl attend unlinked [OPTIONS] <COMMAND>Commands:
list: List the unlinked people, by id: the sender’s ids, the device they last punched at, when last seen, and whom they are linked to.show: Show an unlinked person, and their links.link: Link an unlinked person to the person they are: their punches, and those that arrive under their ids after, are that person’s from now on; a closed period of theirs takes them as a late change.unlink: Unlink an unlinked person: their punches are their own again from now on.
hourctl attend unlinked list
List the unlinked people, by id: the sender’s ids, the device they last punched at, when last seen, and whom they are linked to.
hourctl attend unlinked list [OPTIONS]Options:
--linked <LINKED>: Only those linked to someone now (true), or to no one (false). One of:true,false.--under <HIERARCHY:ORG>: Only those in this organization, or one under it: HIERARCHY:ORG.--on <ON>: The day —under is asked of, YYYY-MM-DD.--after <AFTER>: Carry on after the previous page.--limit <LIMIT>: At most this many (100 unless given).
Example:
hourctl attend unlinked list --linked falsehourctl attend unlinked show
Show an unlinked person, and their links.
hourctl attend unlinked show [OPTIONS] <ID>Arguments:
<ID>: The unlinked person’s id.
Example:
hourctl attend unlinked show hq~0c6f2a1ehourctl attend unlinked link
Link an unlinked person to the person they are: their punches, and those that arrive under their ids after, are that person’s from now on; a closed period of theirs takes them as a late change.
hourctl attend unlinked link [OPTIONS] <ID> <PERSON>Arguments:
<ID>: The unlinked person’s id.<PERSON>: The person they are: an id the tenant knows them by.
Example:
hourctl attend unlinked link hq~0c6f2a1e 4471hourctl attend unlinked unlink
Unlink an unlinked person: their punches are their own again from now on.
hourctl attend unlinked unlink [OPTIONS] <ID>Arguments:
<ID>: The unlinked person’s id.
Example:
hourctl attend unlinked unlink hq~0c6f2a1ehourctl attend unreadable
List the punches that were delivered but could not be read (no time, no device or no user to place them on), each as it came and why, or forget one once it is put right.
hourctl attend unreadable [OPTIONS] <COMMAND>Commands:
list: List the punches that could not be read, oldest first: the event’s id, why it could not be read and when it was kept.forget: Forget a punch that was put right: it no longer shows.
hourctl attend unreadable list
List the punches that could not be read, oldest first: the event’s id, why it could not be read and when it was kept. A delivered punch is not “waiting” at its sink, so this is where it shows (hourctl sinks counts them).
Put one right by recording the punch it should have been (hourctl attend record), then forget it.
hourctl attend unreadable list [OPTIONS]Options:
--after <AFTER>: Carry on after the previous page.--limit <LIMIT>: At most this many (100 unless given).
Example:
hourctl attend unreadable listhourctl attend unreadable forget
Forget a punch that was put right: it no longer shows.
hourctl attend unreadable forget [OPTIONS] <ID>Arguments:
<ID>: The event’s id.
Example:
hourctl attend unreadable forget 4be1d2a0c3f94e7b8a6d5c2e1f0a9b87hourctl attend employers
List, show, make and change the tenant’s employers: the legal entities its people are employees of.
hourctl attend employers [OPTIONS] <COMMAND>Commands:
list: List the employers, the first made first.show: Show an employer.create: Make an employer.update: Change an employer’s name or external ids (each in place of what it was).
hourctl attend employers list
List the employers, the first made first.
hourctl attend employers list [OPTIONS]Example:
hourctl attend employers listhourctl attend employers show
Show an employer.
hourctl attend employers show [OPTIONS] <ID>Arguments:
<ID>: The employer’s id.
Example:
hourctl attend employers show acme-cahourctl attend employers create
Make an employer.
hourctl attend employers create [OPTIONS] --name <NAME> <ID>Arguments:
<ID>: Its id: 1 to 64 letters, digits, ’-’ or ’_’.
Options:
--name <NAME>--external-id <EXTERNAL_IDS>...: Its id in another system, SYSTEM=ID; repeat for each.
Example:
hourctl attend employers create acme-uk --name "Acme Staffing UK" --external-id paye=123/AB456hourctl attend employers update
Change an employer’s name or external ids (each in place of what it was).
hourctl attend employers update [OPTIONS] <ID>Arguments:
<ID>: The employer’s id.
Options:
--name <NAME>--external-id <EXTERNAL_IDS>...: Its id in another system, SYSTEM=ID; repeat for each. Given, they replace all it had.
Example:
hourctl attend employers update acme --external-id ein=12-3456789hourctl attend employee
Show or set a person’s employee record (their employer, for good, and their worker); list a worker’s records.
hourctl attend employee [OPTIONS] <COMMAND>Commands:
show: Show a person’s record: their employer and worker.set: Make a person’s record of an employer (it never changes after), or change their worker.worker: List a worker’s records, across the tenant’s employers.place: Place a person from a day: in an organization of a hierarchy, at a work location, or out of either.
hourctl attend employee show
Show a person’s record: their employer and worker.
hourctl attend employee show [OPTIONS] <PERSON>Arguments:
<PERSON>: The person’s id.
Example:
hourctl attend employee show 4471hourctl attend employee set
Make a person’s record of an employer (it never changes after), or change their worker.
hourctl attend employee set [OPTIONS] <PERSON>Arguments:
<PERSON>: The person’s id.
Options:
--employer <EMPLOYER>: The employer whose employee they are.--worker <WORKER>: The worker whose records this is one of.--no-worker: Take their worker away.
Example:
hourctl attend employee set 4471 --employer acme-ca --worker w-17hourctl attend employee worker
List a worker’s records, across the tenant’s employers.
hourctl attend employee worker [OPTIONS] <WORKER>Arguments:
<WORKER>: The worker’s id.
Example:
hourctl attend employee worker w-17hourctl attend employee place
Place a person from a day: in an organization of a hierarchy, at a work location, or out of either. Records an employment change.
hourctl attend employee place [OPTIONS] --from <FROM> <PERSON>Arguments:
<PERSON>: The person’s id.
Options:
--from <FROM>: The day it takes effect, YYYY-MM-DD.--org <HIERARCHY=ORG>...: HIERARCHY=ORG (HIERARCHY= for none of that hierarchy); repeat for each.--location <LOCATION>: The work location from that day.--no-location: At no work location from that day.--id <ID>: The change’s id, to send it again safely; one is made without it.
Example:
hourctl attend employee place 4471 --from 2026-10-12 --org management=ops-west --location renohourctl attend setup
Show, set and remove setup items: the tenant’s, or a person’s own.
hourctl attend setup [OPTIONS] <COMMAND>Commands:
show: Show the setup items in force: the tenant’s, and with —person the person’s own.set: Set a setup item, as a new revision.remove: Remove a setup item (a new revision that holds nothing).
hourctl attend setup show
Show the setup items in force: the tenant’s, and with —person the person’s own.
hourctl attend setup show [OPTIONS]Options:
--person <PERSON>: The person whose own items to show too.
Example:
hourctl attend setup show --person 104552hourctl attend setup set
Set a setup item, as a new revision.
The value is the item: for a zone, the zone’s name as a JSON string; for an assignment, its fields.
hourctl attend setup set [OPTIONS] <KIND> <ID> <VALUE>Arguments:
<KIND>: dimension, assignment, implication, shift, shift_definition, holiday, category, measure, rate, approval_rule, accrual_category, defaults or zone.<ID>: The item’s id among its kind.<VALUE>: The item: JSON, @FILE, or - for stdin.
Options:
--person <PERSON>: The person whose own item it is; without it, the tenant’s.
Example:
hourctl attend setup set zone zone '"America/Chicago"'hourctl attend setup remove
Remove a setup item (a new revision that holds nothing).
hourctl attend setup remove [OPTIONS] <KIND> <ID>Arguments:
<KIND>: The item’s kind.<ID>: The item’s id among its kind.
Options:
--person <PERSON>: The person whose own item it is; without it, the tenant’s.
Example:
hourctl attend setup remove assignment A12 --person 104552hourctl attend layer
List and add policy layers.
hourctl attend layer [OPTIONS] <COMMAND>Commands:
list: List the policy layers: id, revision, the order it applies in, its eligibility rule (whom it applies to; “everyone” for none), the days each is in force, and the steps it adds or changes.add: Add a revision of a policy layer: its id, revision, order, the rule saying whom it applies to (applies_to, a selector over the person on each day:jurisdiction = us-ca,under unions:local-42), and what it sets.
hourctl attend layer list
List the policy layers: id, revision, the order it applies in, its eligibility rule (whom it applies to; “everyone” for none), the days each is in force, and the steps it adds or changes.
hourctl attend layer list [OPTIONS]Example:
hourctl attend layer listhourctl attend layer add
Add a revision of a policy layer: its id, revision, order, the rule saying whom it applies to (applies_to, a selector over the person on each day: jurisdiction = us-ca, under unions:local-42), and what it sets. A revision kept never changes.
hourctl attend layer add [OPTIONS] <LAYER>Arguments:
<LAYER>: The layer: JSON, @FILE, or - for stdin.
Example:
hourctl attend layer add @layer.jsonhourctl attend pkg
Publish, list and show policy packages (the install’s shared ones, with —shared, or the tenant’s own), and adopt, pin and drop them for the tenant.
hourctl attend pkg [OPTIONS] <COMMAND>Commands:
list: List the publications of the tenant’s own policy packages, or with —shared the install’s: name, version, revision, state (active, or failed its scenarios) and the day each is in force from.show: Print the Lua of a package’s newest active version (or —version), the tenant’s own or with —shared the install’s.publish: Publish a package’s version from its folder: package.toml (name, version, description, effective day, layers), main.lua where it has one, and scenarios/*.toml, which run on the server first.adopted: List the packages the tenant adopts: each followed (a major) or pinned (a version), and the versions in force by it, each from a day.adopt: Adopt a package following a major version: every compatible version, as each is published.pin: Adopt a package pinning one version.drop: Stop adopting a package.
hourctl attend pkg list
List the publications of the tenant’s own policy packages, or with —shared the install’s: name, version, revision, state (active, or failed its scenarios) and the day each is in force from.
hourctl attend pkg list [OPTIONS]Options:
--shared: The install’s shared packages, not the tenant’s own.
Examples:
hourctl -t acme attend pkg listhourctl attend pkg list --sharedhourctl attend pkg show
Print the Lua of a package’s newest active version (or —version), the tenant’s own or with —shared the install’s. With —json, every publication of it.
hourctl attend pkg show [OPTIONS] <NAME>Arguments:
<NAME>: The package’s name.
Options:
--version <VERSION>: The version to print, x.y.z.--shared: The install’s shared package, not the tenant’s own.
Example:
hourctl attend pkg show franchise --sharedhourctl attend pkg publish
Publish a package’s version from its folder: package.toml (name, version, description, effective day, layers), main.lua where it has one, and scenarios/*.toml, which run on the server first. Prints the tenants it updated; exits 1 when its scenarios fail (it is kept as failed). With —shared, for the install; otherwise the tenant’s own.
hourctl attend pkg publish [OPTIONS] <FOLDER>Arguments:
<FOLDER>: The package’s folder.
Options:
--effective <EFFECTIVE>: The workday it is in force from, YYYY-MM-DD, over package.toml’s.--shared: Publish it for the install, not the tenant.
Examples:
hourctl attend pkg publish hour-advantage-examples/attendance/franchise_pay_rules --sharedhourctl -t acme attend pkg publish acme-rules --effective 2026-11-02hourctl attend pkg adopted
List the packages the tenant adopts: each followed (a major) or pinned (a version), and the versions in force by it, each from a day.
hourctl attend pkg adopted [OPTIONS]Example:
hourctl -t acme attend pkg adoptedhourctl attend pkg adopt
Adopt a package following a major version: every compatible version, as each is published.
hourctl attend pkg adopt [OPTIONS] <PACKAGE>Arguments:
<PACKAGE>: name@major.
Example:
hourctl -t acme attend pkg adopt franchise@1hourctl attend pkg pin
Adopt a package pinning one version.
hourctl attend pkg pin [OPTIONS] <PACKAGE>Arguments:
<PACKAGE>: [email protected].
Example:
hourctl attend pkg drop
Stop adopting a package.
hourctl attend pkg drop [OPTIONS] <NAME>Arguments:
<NAME>: The package’s name.
Example:
hourctl -t acme attend pkg drop franchisehourctl attend leave
List a person’s leave, ask for leave, decide on it, take it back.
hourctl attend leave [OPTIONS] <COMMAND>Commands:
list: List a person’s leave requests as they stand, with where each is: pending at a stage, approved, or rejected.request: Ask for leave for a person: a pay category and the time on each day.decide: Decide on a leave request at a stage of the approval rule for leave: approve, reject or dispute.cancel: Take a leave request back.
hourctl attend leave list
List a person’s leave requests as they stand, with where each is: pending at a stage, approved, or rejected.
hourctl attend leave list [OPTIONS] <PERSON>Arguments:
<PERSON>: The person’s id.
Example:
hourctl attend leave list 104552hourctl attend leave request
Ask for leave for a person: a pay category and the time on each day.
hourctl attend leave request [OPTIONS] --category <CATEGORY> --day <DAYS> <PERSON>Arguments:
<PERSON>: The person’s id.
Options:
--category <CATEGORY>: The pay category its time is in.--day <DAYS>...: A day and its time, DATE=TIME (2026-10-12=8h); once per day.--comment <COMMENT>: What to say with it.--replaces <REPLACES>: The request this one replaces.--id <ID>: The request’s id, to send it again safely.--value <VALUES>...: A value the policy reads of the request, NAME=VALUE (relationship=spouse); once per value.
Example:
hourctl attend leave request 104552 --category vacation --day 2026-10-12=8h --day 2026-10-13=4hhourctl attend leave decide
Decide on a leave request at a stage of the approval rule for leave: approve, reject or dispute.
hourctl attend leave decide [OPTIONS] --stage <STAGE> <PERSON> <ID> <DECISION>Arguments:
<PERSON>: The person’s id.<ID>: The request’s id.<DECISION>: approve, reject or dispute.
Options:
--stage <STAGE>: The stage decided at.--comment <COMMENT>: Why, in words.
Example:
hourctl attend leave decide 104552 v1 approve --stage supervisorhourctl attend leave cancel
Take a leave request back.
hourctl attend leave cancel [OPTIONS] <PERSON> <ID>Arguments:
<PERSON>: The person’s id.<ID>: The request’s id.
Example:
hourctl attend leave cancel 104552 v1hourctl attend export
Export a pay period with an exporter, list exports, and show one with whose time changed since.
hourctl attend export [OPTIONS] <COMMAND>Commands:
run: Write a pay period’s ledgers with an exporter, to a file or stdout.list: List the exports made, newest first.show: Show an export, with the people whose time changed since.
hourctl attend export run
Write a pay period’s ledgers with an exporter, to a file or stdout. Refused while anyone of the tenant waits to be worked out from a day on or before the period’s last; with no ledger of the period yet, while anyone waits at all.
hourctl attend export run [OPTIONS] <EXPORTER> <PERIOD>Arguments:
<EXPORTER>: The exporter: <package>/<name>.<PERIOD>: The pay period’s first day.
Options:
--only <ONLY>: Whose ledgers: all (default), closed or approved.--side <SIDE>: The side: pay (default), or a bill side.--param <PARAMS>...: A parameter of the exporter, NAME=VALUE; once per parameter.--employer <EMPLOYER>: Whose people: an employer’s id, or ’*’ for every employer’s; without it, the tenant’s employer, where it has one only.-o, --output <OUTPUT>: The file to write; stdout without it.
Example:
hourctl attend export run standard/csv 2026-10-05 --only approved --param id_attribute=payroll_id -o week.csvhourctl attend export list
List the exports made, newest first.
hourctl attend export list [OPTIONS]Options:
--limit <LIMIT>: At most this many.
Example:
hourctl attend export listhourctl attend export show
Show an export, with the people whose time changed since.
hourctl attend export show [OPTIONS] <ID>Arguments:
<ID>: The export’s id.
Example:
hourctl attend export show 6f1c2e0a-5b7d-4c3e-9a8f-0d1e2f3a4b5chourctl attend sinks
List the sinks Time and Attendance’s events are sent to, and what is waiting for each: the tenant’s (sent its events, and those posted into it by the sources each names), or with —install the install’s (sent every tenant’s events).
Prints each sink’s id, URL, the event types it takes (“default” when it names none: every type), whether its requests are signed, how many events wait for it, and its state: ok, or failing since when and why. With —json it prints {"sinks": [...], "status": [...]}.
hourctl attend sinks [OPTIONS]Example:
hourctl -t acme attend sinkshourctl attend sink
Add, change, move or remove one of Time and Attendance’s sinks: a webhook its events are posted to, as Connect’s sinks are, in order and until it answers 2xx. Its sequence numbers are Time and Attendance’s own. With —install, the install’s.
hourctl attend sink [OPTIONS] <COMMAND>Examples:
hourctl -t acme attend sink add payroll --url https://payroll.example.com/in --event period.closedhourctl -t acme attend sink add hr-feed --url https://hr.example.com/in --source hrCommands:
add: Add a sink: a webhook Time and Attendance’s events are posted to.set: Change a sink: only the options given change.remove: Remove a sink: its place among the events goes with it, so one made again with its id starts with the events stored from then on.position: Move a sink along Time and Attendance’s events.
hourctl attend sink add
Add a sink: a webhook Time and Attendance’s events are posted to.
hourctl attend sink add [OPTIONS] <ID>Arguments:
<ID>: The new sink’s id, e.g. payroll.
Options:
--url <URL>: The URL events are POSTed to, e.g. https://payroll.example.com/in.--secret <SECRET>: A secret to sign requests with, as Connect’s sinks sign theirs: each carries x-houradvantage-timestamp and x-houradvantage-signature. Kept in the database and never shown.@FILEreads it from a file.--secret-env <VAR>: The environment variable that holds the secret (instead of —secret).--event <TYPE>...: Only send events of this type, e.g. period.closed; repeat for several. Without it a new sink is sent every type. Withset, the list replaces the sink’s.--default-events: Send every type: clears the sink’s list of event types.--source <SOURCE>...: Also send it the events the system SOURCE posts into the tenant (POST /api/attendance/tenants/{tenant}/events), e.g. hr; repeat for several. Not for an install-level sink, which is sent every tenant’s events. Withset, the list replaces the sink’s.--match <FIELD=VALUE>...: Only send events whose data field has this value, FIELD=VALUE, e.g. exception=missing_out; repeat for several values or fields.--latest-only <TYPE>...: Of the events of this type waiting about the same subject, only send the latest, e.g. timecard.approved; repeat for several.--max-per-second <MAX_PER_SECOND>: Send at most this many events a second.--batch <BATCH>: Send at most this many events in one delivery.--batch-bytes <BATCH_BYTES>: Send at most this many bytes of event data in one delivery.
Example:
hourctl -t acme attend sink add payroll --url https://payroll.example.com/in --event period.closedhourctl attend sink set
Change a sink: only the options given change.
hourctl attend sink set [OPTIONS] <ID>Arguments:
<ID>: The sink’s id.
Options:
--url <URL>: The URL events are POSTed to, e.g. https://payroll.example.com/in.--secret <SECRET>: A secret to sign requests with, as Connect’s sinks sign theirs: each carries x-houradvantage-timestamp and x-houradvantage-signature. Kept in the database and never shown.@FILEreads it from a file.--secret-env <VAR>: The environment variable that holds the secret (instead of —secret).--event <TYPE>...: Only send events of this type, e.g. period.closed; repeat for several. Without it a new sink is sent every type. Withset, the list replaces the sink’s.--default-events: Send every type: clears the sink’s list of event types.--source <SOURCE>...: Also send it the events the system SOURCE posts into the tenant (POST /api/attendance/tenants/{tenant}/events), e.g. hr; repeat for several. Not for an install-level sink, which is sent every tenant’s events. Withset, the list replaces the sink’s.--match <FIELD=VALUE>...: Only send events whose data field has this value, FIELD=VALUE, e.g. exception=missing_out; repeat for several values or fields.--latest-only <TYPE>...: Of the events of this type waiting about the same subject, only send the latest, e.g. timecard.approved; repeat for several.--max-per-second <MAX_PER_SECOND>: Send at most this many events a second.--batch <BATCH>: Send at most this many events in one delivery.--batch-bytes <BATCH_BYTES>: Send at most this many bytes of event data in one delivery.
Example:
hourctl -t acme attend sink set payroll --default-eventshourctl attend sink remove
Remove a sink: its place among the events goes with it, so one made again with its id starts with the events stored from then on.
hourctl attend sink remove [OPTIONS] <ID>Arguments:
<ID>: The sink’s id.
Example:
hourctl -t acme attend sink remove payrollhourctl attend sink position
Move a sink along Time and Attendance’s events.
latest skips every event it has not taken. A sequence number N (of Time and Attendance’s events, not Connect’s) makes the events after N the next it is sent: lower than where it is sends events again. Prints where it was and where it is now.
hourctl attend sink position [OPTIONS] <ID> <SEQ|latest>Arguments:
<ID>: The sink’s id.<SEQ|latest>: A sequence number, orlatest.
Example:
hourctl -t acme attend sink position payroll latesthourctl attend events
Read the tenant’s events in Time and Attendance’s log, oldest first: the engine’s own, and those other systems posted into the tenant.
Prints at most 100 events, from the oldest kept (or after —after), one per line: sequence number, when it was received, type, endpoint/device and its data. The endpoint is attendance for the engine’s own events, source:<source> for those posted. With —follow it reads on and prints new events as they are stored, until Ctrl-C. With —json it prints the API’s page (events and next, the —after for the next page), or with —follow one event per line. Sequence numbers are Time and Attendance’s own, not Connect’s.
hourctl attend events [OPTIONS]Options:
--after <SEQ>: Only events after this sequence number. Pass the last number a page showed to read the next page.--since <TIME>: Only events received at or after this time: RFC 3339 (2026-10-04T08:00:00Z), or a while ago (90s, 15m, 2h, 7d).--until <TIME>: Only events received before this time, given as —since takes it. Must be later than —since.-f, --follow: Keep reading: poll for new events every 2 seconds until Ctrl-C.--type <TYPE>: Only events of this type, e.g. period.closed.--source <SOURCE>: Only the events the system SOURCE posted, e.g. hr;attendancefor the engine’s own.
Examples:
hourctl -t acme attend events --type period.closed --since 7dhourctl -t acme attend events --source hr --followhourctl attend event
Post events into the tenant’s log in Time and Attendance, as another system does.
hourctl attend event [OPTIONS] <COMMAND>Commands:
post: Post events into the tenant’s log in Time and Attendance (POST /api/attendance/tenants/{tenant}/events): all of them, or none.
hourctl attend event post
Post events into the tenant’s log in Time and Attendance (POST /api/attendance/tenants/{tenant}/events): all of them, or none.
The events are as hourctl event post takes them: a source, an id its source gives no other event, a type, optionally a device, and data; 1 to 100 in one post, each kept once however often it is posted. They go to the tenant’s sinks that name their source in sources, and to the install’s. Prints how many were stored and which were posted before.
hourctl attend event post [OPTIONS] <EVENTS>Arguments:
<EVENTS>: The events: a JSON list,{"events": [...]}or one event; the JSON itself, @FILE to read it from a file, or - to read it from stdin.
Options:
--source <SOURCE>: The source of the events that name none, e.g. hr.
Example:
hourctl -t acme attend event post @hires.json --source hrhourctl attend delivery-keys
Issue, list and revoke the tenant’s delivery keys: what a Connect sink (of this install or another) or any other system delivers punches into the tenant with.
hourctl attend delivery-keys [OPTIONS] <COMMAND>Commands:
list: List the tenant’s delivery keys: id, label, who issued each and when, and when it last delivered.create: Issue a delivery key, and print its secret: give it to the sender as its sink’ssecret.revoke: Revoke a delivery key: every instance refuses it from the next delivery.
hourctl attend delivery-keys list
List the tenant’s delivery keys: id, label, who issued each and when, and when it last delivered. Never their secrets.
hourctl attend delivery-keys list [OPTIONS]Example:
hourctl -t acme attend delivery-keys listhourctl attend delivery-keys create
Issue a delivery key, and print its secret: give it to the sender as its sink’s secret. It is shown this once. The tenant takes every key it issued until each is revoked: to rotate, issue a new one, move the sender to it, then revoke the old one.
hourctl attend delivery-keys create [OPTIONS]Options:
--label <LABEL>: What it is for: the sender it is given to.
Example:
hourctl -t acme attend delivery-keys create --label "dealer-north connect"hourctl attend delivery-keys revoke
Revoke a delivery key: every instance refuses it from the next delivery. It stays in the list, marked revoked.
hourctl attend delivery-keys revoke [OPTIONS] <ID>Arguments:
<ID>: The key’s id.
Example:
hourctl -t acme attend delivery-keys revoke 3f9a0c21d4e8hourctl attend tenants
Create, list, show, change, suspend, resume and delete tenants; write a tenant out, load one in.
hourctl attend tenants [OPTIONS] <COMMAND>Commands:
list: List the tenants: id, name, status.show: Show a tenant: its name, external ids, metadata and status.create: Create a tenant.update: Change a tenant’s name, external ids or metadata (each given in place of what it was).suspend: Suspend a tenant: nothing of it is worked out, its writes are refused, and its sinks’ deliveries are refused (the punches wait in the outbox) until it is resumed.resume: Resume a suspended tenant: it takes writes again, its sinks deliver what waited, and its people are worked out.delete: Delete a tenant and everything kept of it, and revoke the tokens scoped to it (attend:<tenant>).export: Write a tenant’s data out as a portable document (JSON lines): facts, setup, layers, packages, exports.import: Load a tenant’s document into the tenant of its id: created from the document (suspended until it is all loaded) when there is none, or one with no data yet.
hourctl attend tenants list
List the tenants: id, name, status.
hourctl attend tenants list [OPTIONS]Example:
hourctl attend tenants listhourctl attend tenants show
Show a tenant: its name, external ids, metadata and status.
hourctl attend tenants show [OPTIONS] <ID>Arguments:
<ID>: The tenant’s id.
Example:
hourctl attend tenants show acmehourctl attend tenants create
Create a tenant. A sink naming it, refused while it did not exist, delivers the punches that waited on its next try.
hourctl attend tenants create [OPTIONS] --name <NAME> <ID>Arguments:
<ID>: Its id: 1 to 64 letters, digits, ’-’ or ’_’.
Options:
--name <NAME>: Its name.--external-id <EXTERNAL_IDS>...: Its id in another system, SYSTEM=ID; repeat for each.--metadata <METADATA>: Its metadata (a JSON object, which policies read): JSON, @FILE, or - for stdin.--suspended: Create it suspended (to load its data before anything is worked out).
Example:
hourctl attend tenants create acme --name "Acme Staffing" --external-id payroll=C-1042hourctl attend tenants update
Change a tenant’s name, external ids or metadata (each given in place of what it was).
hourctl attend tenants update [OPTIONS] <ID>Arguments:
<ID>: The tenant’s id.
Options:
--name <NAME>--external-id <EXTERNAL_IDS>...: Its ids in other systems, SYSTEM=ID; repeat for each. Given, they replace all it had.--metadata <METADATA>: Its metadata: JSON, @FILE, or - for stdin.
Example:
hourctl attend tenants update acme --metadata @acme.jsonhourctl attend tenants suspend
Suspend a tenant: nothing of it is worked out, its writes are refused, and its sinks’ deliveries are refused (the punches wait in the outbox) until it is resumed.
hourctl attend tenants suspend [OPTIONS] <ID>Arguments:
<ID>: The tenant’s id.
Example:
hourctl attend tenants suspend acmehourctl attend tenants resume
Resume a suspended tenant: it takes writes again, its sinks deliver what waited, and its people are worked out.
hourctl attend tenants resume [OPTIONS] <ID>Arguments:
<ID>: The tenant’s id.
Example:
hourctl attend tenants resume acmehourctl attend tenants delete
Delete a tenant and everything kept of it, and revoke the tokens scoped to it (attend:<tenant>). It cannot be undone: write the tenant out first to keep a copy.
hourctl attend tenants delete [OPTIONS] <ID>Arguments:
<ID>: The tenant’s id.
Options:
--yes: Delete it: without, nothing is done.
Example:
hourctl attend tenants delete acme --yeshourctl attend tenants export
Write a tenant’s data out as a portable document (JSON lines): facts, setup, layers, packages, exports.
hourctl attend tenants export [OPTIONS] <ID>Arguments:
<ID>: The tenant’s id.
Options:
-o, --output <OUTPUT>: Write it to this file; stdout without.
Example:
hourctl attend tenants export acme -o acme.ndjsonhourctl attend tenants import
Load a tenant’s document into the tenant of its id: created from the document (suspended until it is all loaded) when there is none, or one with no data yet. Its people are worked out again from their facts, with no events of what was loaded.
hourctl attend tenants import [OPTIONS] <ID> <FILE>Arguments:
<ID>: The tenant’s id.<FILE>: The document, asexportwrites it; - for stdin.
Options:
--from <DOCUMENT_ID>: Load the document of the tenant of this id into ID: a rename, which a document of another id is refused without.
Example:
hourctl attend tenants import acme acme.ndjsonhourctl attend test
Run the scenarios of a policy package, as a cookbook recipe is laid out, on this machine, offline.
FOLDER holds the package’s main.lua and its scenarios in scenarios/*.toml; a folder of such folders (a cookbook) runs each. The package’s name is the name in its package.toml, by default the folder’s; a policy step uses <name>/<step>. A folder without a package.toml names its package after the folder. No server is reached. A scenario can use the package, the shipped standard package and any package it declares itself. Prints ok or FAIL for each scenario, with what differed from what it expects; exits 1 when one fails.
hourctl attend test [OPTIONS] <FOLDER>Arguments:
<FOLDER>: The package’s folder, or a folder of them.
Examples:
hourctl attend test my_overtimehourctl attend test attend-engine/cookbook