TIMESDevelopers
v1.0.0

CLI reference

Every times command and flag.

Global flags work with every command.

FlagNotes
--org <slug>Override the active organization.
--jsonPrint machine-readable JSON.
--yesSkip confirmations. Required in non-interactive shells.
--api-url <url>Defaults to https://api.times.et. Also TIMES_API_URL.
--profile <name>Use this credential profile for one command. Also TIMES_PROFILE.

TIMES_TOKEN overrides stored credentials.

Profiles live in ~/.config/times/config.toml. times auth login and times auth use set the current profile. --profile and TIMES_PROFILE only apply to that invocation.

Auth

CommandWhat it does
times auth loginDevice flow sign in. Opens the browser to approve a code. Saves the current profile.
times auth login --token <tdk_...>Store a personal access token instead.
times auth logoutSign out of the current profile.
times auth whoamiShow the signed-in user, profile, active organization and role.
times auth refreshRefresh the stored browser session. Developer tokens and TIMES_TOKEN cannot refresh.
times auth listList saved profiles.
times auth use <name>Switch the current profile.
times auth delete <name>Sign out and remove a profile.

Organizations

CommandWhat it does
times org listList your organizations.
times org use <slug>Set the active organization.

Project

CommandWhat it does
times init [dir] --kind <kind> --framework <fw>Scaffold a new AIP. Creates a folder named after the slug unless dir is .. Prompts when flags are missing.
times manifest validateValidate times.aip.json against the schema and check catalogs.
times manifest bump <major|minor|patch>Bump the manifest version.
times dev [--port 4321]Serve the build locally for a sandbox workspace.

AIPs

CommandWhat it does
times aip listAIPs in the active organization.
times aip createRegister the slug from the local manifest.
times aip info [slug]Details and latest versions.
times aip push [--dir dist]Zip the build, upload it and create a draft version.
times aip submit [--notes <text>]Submit the latest draft for review.
times aip status [slug]Review state and reviewer notes.
times aip withdraw <version>Withdraw a version.
times aip logs [slug]Recent review and publish events.

Money

CommandWhat it does
times stats [--slug <slug>] [--range 30d]Installs, active installs and revenue.
times earnings [--from <date>] [--to <date>]Earnings ledger.
times payout listWithdrawal history.
times payout request --amount <etb> --account <id>Request a withdrawal.

Tokens

CommandWhat it does
times token create --name <name> [--expires 90d]Create a personal access token. Shown once.
times token listList tokens.
times token revoke <id>Revoke a token.

Other

CommandWhat it does
times completions <bash|zsh|fish|powershell>Print shell completions.
times setup-shellDisable the POSIX times builtin in your shell config. --print writes the snippet to stdout.
times upgradeInstall the latest CLI. Alias: self-upgrade. Changelog: /docs/cli-changelog.