Command line

Install the CLI and hand over a local file in one command.

bash
npm install -g @tycoon/cli
tycoon login                      # paste a key; stored 0600, verified before saving
tycoon task create "Turn the attached brief into a launch plan" \
  --file ./q3-brief.pdf --title "Launch plan" --wait
CommandWhat it does
tycoon login / logout / whoamiManage the stored key (TYCOON_API_KEY overrides it and writes nothing to disk)
tycoon task create <prompt>--file (repeatable), --title, --budget, --workspace, --guidance, --wait, --json
tycoon task get <id>Status, result, usage
tycoon task list--status, --limit
tycoon task watch <id>Follow to a terminal status — --interval, --timeout
tycoon task say <id> <message>Add input while the work is open
tycoon upload <path>Upload a file, print its asset id

--file runs the three-step upload for you. Progress goes to stderr and payloads to stdout, so --json | jq works while a human still sees progress. --wait exits non-zero when the Task failed, so a script cannot mistake a failure for success.

Next steps

這篇文章對你有幫助嗎?