Overview

Read when: you need the command map, global options, output modes, exit codes or common result codes.

Before using tlnt

tlnt is unofficial and live commands can affect account data. Read the full disclaimer and follow Workflows before submitting anything.

Modes at a glance

Mode Flag Behavior
Machine output --json Writes one result object to stdout.
Diagnostics --verbose Adds DEBUG diagnostics without changing stdout.
Safe preview --dry-run Builds an attendance preview without submitting it.
Curl preview --curl Prints the first Talenta request as a curl command, bearer token included, and sends nothing.
Configuration --config PATH Selects a config file for this invocation; pass it when a command needs values from a non-default file. Environment variables and the default OS config path need no flag.
Interactive input --interactive Prompts for missing values on supported commands; refuses to run without a TTY or with --json.

--config and --version are global options and appear before the command. --verbose can appear before a command or after a complete leaf command.

Command inventory

tlnt setup
tlnt login
tlnt logout
tlnt status
tlnt profile
tlnt update
tlnt attendance clock-in
tlnt attendance clock-out
tlnt attendance summary-list
tlnt attendance summary-metrics
tlnt attendance approve
tlnt notification count
tlnt notification list
tlnt notification attendance-list
tlnt notification timeoff-list
tlnt notification overtime-list
tlnt notification detail
tlnt timeoff types-list
tlnt timeoff balance
tlnt timeoff delegation-list
tlnt timeoff list
tlnt timeoff detail
tlnt timeoff request
tlnt timeoff cancel
tlnt timeoff approve
tlnt calendar holiday
tlnt calendar timeoff
tlnt calendar index
tlnt calendar my-birthday
tlnt calendar birthday
tlnt calendar activity
tlnt overtime list
tlnt overtime detail REQUEST_ID
tlnt overtime approve
tlnt payslip show
tlnt payslip download
tlnt reimbursement policies

Each Talenta API endpoint also has its own command, such as tlnt time-sheet start-timer; API paths lists all of them.

The current CLI uses separate attendance clock-in and attendance clock-out commands. There is no --event-type CLI option.

Command pages

  • Session: setup, login, logout, status, profile.
  • Attendance: clock-in and clock-out, summaries, approval.
  • Notification: inbox counts, lists and details.
  • Time off: balances, requests, cancellations and approval.
  • Calendar: holidays, time off, birthdays and activity.
  • Overtime: overtime requests, details and approval.
  • Payslip and reimbursement: payslips, payslip PDFs and reimbursement policies.
  • API paths: one command per Talenta API endpoint, such as time-sheet start-timer, for data and writes with no named command.
  • Install: update and the version notices.
  • Integrations: scripts, agents and MCP clients.

Global options

Global options apply to the invocation:

Option Placement Behavior
--config PATH Before the command Selects a config file for this invocation; pass it when a command needs values from a non-default file. The default OS config path and environment variables need no flag.
--version Root command Prints the installed version.
--verbose Before a command or after a leaf command Adds DEBUG diagnostics without changing stdout.

--config applies only to this invocation; settings from a non-default file are not saved in the session. Repeat the option for each command that needs those settings. Examples without it assume the default OS config path or environment variables.

Output options

Human-mode output renders object data as a table by default. Pass --json for raw output instead.

--avatars draws avatar image URLs as small terminal thumbnails instead of printing the URL. It is off by default, needs a real terminal, and fetches each image anonymously from Talenta's CDN — no session cookie or token is sent, and the request discloses your IP to that CDN. Piped output and --json are unaffected and never fetch anything.

Curl preview

--curl prints the first request a command would send to Talenta as a copy-pasteable curl command: method, URL, every header tlnt sends (including the bearer token) and the body. Nothing is sent, confirmation prompts are skipped, and TALENTA_READONLY does not refuse it. --json is ignored when a curl is printed. Commands that chain requests show their first one: attendance clock-in and clock-out show the schedule lookup (or the profile lookup when the session holds no company id), attendance approve and timeoff approve show the inbox detail, timeoff balance shows the profile lookup, and my-info attendance-log-detail and organisations summary-attendance-clocks show the profile lookup unless you pass the user id. The output holds your bearer token: keep it out of chat, logs and tickets.

tlnt notification attendance-list --page 1 --curl

Read-only mode

Set TALENTA_READONLY=1 when a script or an agent must never change anything. Any value except 0, false, no, off or an empty one turns the switch on, so a typo never turns it off. These commands then stop with read_only_mode and exit 1 before any prompt or request: live attendance clock-in and attendance clock-out, attendance approve, timeoff request, timeoff cancel, timeoff approve, every POST endpoint command, login, logout, setup and update. Every read, --dry-run and --curl still runs.

TALENTA_READONLY=1 tlnt notification attendance-list --json

Confirmation prompts read standard input, so a script can answer them; they guard against mistakes, not against automation. Use TALENTA_READONLY=1 for that.

JSON and exit codes

Every command accepting --json writes one result object to stdout. Clock-in and clock-out confirmation prompts use stdout in human mode and stderr with --json; diagnostics use stderr:

{
  "ok": true,
  "code": "profile_loaded",
  "message": "Profile loaded",
  "data": {}
}

Exit code 0 means success, 1 means operational failure, and 2 means invalid CLI arguments. status_code and data are omitted when unavailable. Sensitive keys are removed recursively before profile and notification data is returned.

Stable result codes

login_succeeded
login_failed
client_id_missing
session_valid
session_missing
session_invalid
profile_loaded
profile_missing
notification_count_loaded
notification_list_loaded
notification_attendance_list_loaded
notification_timeoff_list_loaded
notification_overtime_list_loaded
notification_detail_loaded
attendance_summary_list_loaded
attendance_summary_metrics_loaded
timeoff_types_list_loaded
timeoff_balance_loaded
timeoff_delegation_list_loaded
timeoff_list_loaded
timeoff_detail_loaded
calendar_holiday_loaded
calendar_timeoff_loaded
calendar_index_loaded
calendar_my_birthday_loaded
calendar_birthday_loaded
calendar_activity_loaded
overtime_list_loaded
overtime_detail_loaded
timeoff_request_submitted
timeoff_request_cancelled
timeoff_action_cancelled
timeoff_approved
timeoff_approval_cancelled
overtime_approved
overtime_approval_cancelled
payslip_loaded
payslip_missing
payslip_downloaded
reimbursement_policies_loaded
api_loaded
api_posted
api_post_cancelled
attendance_approved
attendance_approval_cancelled
clockin_preview
clock_succeeded
clockin_cancelled
clockout_cancelled
schedule_unavailable
interactive_unavailable
no_pending_approvals
mobile_token_missing
mobile_token_expired
network_error
remote_error
invalid_input
logout_succeeded
logout_failed
setup_succeeded
setup_failed
read_only_mode

Keep these codes unchanged when parsing CLI output.