ttr external upskii is the Upskii control plane inside the Tuturuuu CLI. It
does not require a Tuturuuu ttr login session unless the command reads the
Tuturuuu side of an account link. P1 covers QA, classes, lessons, link, chat,
credits, and status. P2 covers workspaces, assessments, tutor, settings,
accounts, and admin.
Environment
The default environment isstaging. ttr external upskii qa refuses prod
unless the process was started with an explicit --env prod flag
(PROD_ENV_EXPLICIT_REQUIRED, exit code 6). A saved default or TTR_ENV is
not enough for that production path.
Tuturuuu origins for
staging and sandbox come from resolveTuturuuuOrigins
and use *.tutur3u.com. The CLI does not call a removed apex staging hostname.
Upskii product calls use the app, admin, and web origins for the same --env.
Pass --session-file when a command should use a Playwright storage state
instead of the keychain user session. Pass --experience educator or
--experience learn (default educator).
OS keychain auth
Credentials are stored per family, environment, and profile (default profiledefault). The OS keychain is the default store. --store file writes a
private 0600 file instead. Accepted modes are qa, user, and admin.
There is no --token, --password, --secret, or other secret flag. The CLI
rejects those names before it runs the command, so the value never lands in
shell history or ps. Pipe the secret on stdin:
TTR_UPSKII_QA_TOKEN_<ENV> in the environment.
The CLI prints credential metadata (profile, family, environment, scopes,
expiry). It does not print the secret.
Preview, --yes, and --confirm
Mutating commands are preview-only until --yes is present. A preview exits 0
with applied: false and prints the exact apply command. --dry-run always
wins: if it is set, the command stays a preview even when --yes is also set.
Confirmation tokens are exact:
users disableandusers purge --mode applyuse--confirm <userId>.bundle teardown --mode applyuses--confirm <runLabel>.sweepuses--confirm SWEEP_UPSKII_QA.link unlinkuses--confirm UNLINK_UPSKII.
--reason <text> is the operator reason sent as X-TTR-Reason when a command
requires one. It is not a secret.
P1 families
Lesson seed templates are
edufest-workshop, basic, and qa-smoke. A --run
label must be 4–31 characters, lowercase letters, digits, and hyphens, and must
start with a letter or digit. Seeded titles are prefixed with
[QA-E2E <run>].
chat smoke is one bounded model call. Keep --budget-guard 1 for EduFest.
credits check compares a balance snapshot from --compare-before and can
require --min-remaining.
link verify reads both sides of the E3 link for the session file. It does not
bypass PKCE or consent. link connect-url prints the canonical connect URL.
QA provisioner, bundles, and sweep
QA commands talk to the Upskii admin provisioner with theupskii-qa
credential. Create is preview-first:
--env.
--mode is dry-run, apply, or verify. Omit --yes to preview. A sweep
without --confirm SWEEP_UPSKII_QA does not apply.
Other QA verbs:
Playwright storage state
qa bundle create and qa session --format storage-state write Playwright
storage state JSON:
- The parent directory is private (
0700) and must not be a symlink. - The file mode is
0600, written atomically. - The cookie is host-only for the target app hostname,
httpOnly,sameSite: Lax, andsecureon HTTPS. - Staging and production cookies are not interchangeable. The domain is the host for that
--env, not a parent domain.
storageStatePaths or the
per-user storageStatePath). Product commands take the same file as
--session-file. Standard output and standard error are scanned and refused if
they would echo the session secret.
P2 families
P2 uses the same gates as P1. Preview until--yes. --dry-run wins.
Destructive actions require --confirm. A production mutation also requires
--reason. Admin commands need an upskii-admin bearer credential and refuse
a user session cookie.
Global output flags
--json prints one JSON object. --jsonl is for --watch ticks.
--watch [seconds] polls status, credits, and link commands. --no-color
disables ANSI. --profile <name> selects the keychain profile.