Session
Read when: running setup, login, logout, status or profile.
Commands
| Command | Options |
|---|---|
setup |
--json |
login |
--json, --browser, --cdp, --email, --headless |
logout |
--json |
status |
--json |
profile |
--json, --avatars |
--browser chooses how tlnt login signs in: chrome (default) launches the
installed Chrome or Edge through Playwright, and cdp attaches to a browser
that is already running. --cdp ENDPOINT names that browser's DevTools
endpoint, for example Chrome started with --remote-debugging-port=9222, and
implies --browser cdp. The endpoint is a port (9222), host:port, or an
http(s):// or ws(s):// URL. It falls back to TALENTA_CDP, then "cdp" in
config.json; --browser cdp alone uses http://127.0.0.1:9222. Combining
--cdp with a --browser other than cdp is a usage error. tlnt reuses the
browser's own profile, opens one tab, closes only that tab and leaves the
browser running. agent-browser works through its CDP URL:
tlnt login --cdp "$(agent-browser --session tlnt-login get cdp-url)". See
Setup for step-by-step examples.
--email EMAIL (or TALENTA_EMAIL) has tlnt type your Mekari email and
password into Mekari's own sign-in page instead of you. The password comes from
TALENTA_PASSWORD when it is set and not empty, otherwise from a hidden prompt
on a real terminal; there is no --password flag, so it never lands in your
shell history or the process list. It works with --browser chrome (the
default) and --browser cdp. tlnt submits the form once and never retries. If
Mekari keeps the sign-in page for 60 seconds (a wrong password, a captcha, a
verification code), login fails with login_failed: run tlnt login without
--email and sign in yourself. With no terminal and no TALENTA_PASSWORD,
login stops at once with interactive_unavailable. The password is never
stored or logged. See Setup.
--headless runs Chrome without a window, for a host with no display. It needs
--email and --browser chrome, and Chrome or Edge must be installed on that
host. With no window nobody can answer a captcha or a verification code, so
login fails with login_failed if Mekari asks for one. See
Setup.
Config file
tlnt setup
tlnt --config ./config.json setup --json
tlnt setup writes config.json to the default OS config path, or to the file
selected with --config, and creates its folder. A new file lists every
supported key: client_id, app_version, user_agent_mobile,
accept_language, session_path, cdp, latitude, and longitude.
app_version, user_agent_mobile and accept_language start at tlnt's
built-in values; the other keys are empty, which means not set. A new
file gets mode 0600.
On an existing file, tlnt setup adds missing keys, removes keys tlnt no longer
reads, and keeps every value already set. When no key is missing or unknown, it
writes nothing. It never copies environment variables into the file. A
successful run returns setup_succeeded with data.config_path, data.added,
and data.removed (key names only, never values). If the file is not a JSON
object, or has none of tlnt's keys (for example another tool's config.json),
it returns setup_failed and leaves the file unchanged.
Authentication and session
tlnt --config /path/to/config.json login --json
tlnt --config /path/to/config.json status --json
tlnt --config /path/to/config.json profile --json
tlnt --config /path/to/config.json logout --json
Login is explicit and uses Playwright to open your installed Chrome or Edge.
If status returns session_missing,
session_invalid, mobile_token_missing, or
mobile_token_expired, ask the user to run login. Do not open the login flow
automatically. When login captured the token's lifetime, a valid status
result includes data.token_expires_at, and status returns
mobile_token_expired once that time passes. A process-local
TALENTA_BEARER is never checked against the saved expiry. A session saved
by an earlier version has no recorded expiry, so login signs in again once
to refresh it. If a command returns mobile_token_expired while login
reports Already logged in (the server revoked the token early), run
logout and then login.