Skip to content

docs(cli): NWEB_WORKSPACE_ID is now optional for auth login - #5

Merged
hoaitan merged 2 commits into
mainfrom
docs/cli-auth-login-workspace-picker
Aug 18, 2026
Merged

docs(cli): NWEB_WORKSPACE_ID is now optional for auth login#5
hoaitan merged 2 commits into
mainfrom
docs/cli-auth-login-workspace-picker

Conversation

@nwebbot

@nwebbot nwebbot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • retask-cli v0.25.0 (nwebxyz/retask-cli#22) makes retask auth login prompt interactively for the PAT and, if NWEB_WORKSPACE_ID is unset, look up the caller's workspaces and let them pick one with the arrow keys.
  • Updates the "With a Personal Access Token" section of the CLI getting-started guide to drop NWEB_WORKSPACE_ID from the required setup steps and add a callout explaining the new picker, while noting NWEB_WORKSPACE_ID is still needed for non-interactive contexts (scripts/CI) where there's no terminal to prompt on.
  • NWEB_API_KEY is still recommended to set up front (env var or export), matching the task description.
  • No changes needed to src/content/docs/cli/reference/auth.md — it's auto-generated from retask help-llm, and the manifest's description/example fields for auth login are unchanged between v0.24.0 and v0.25.0; production picks up the release automatically per the Cloudflare Pages build (gen:cli runs against the latest released CLI).

Test plan

  • yarn gen:cli produces no diff against the CLI installed in this environment, confirming the generated reference pages don't need hand-editing
  • yarn test (vitest) passes
  • yarn build succeeds

🤖 Generated with Claude Code

retask-cli v0.25.0 (nwebxyz/retask-cli#22) prompts for a workspace
interactively when NWEB_WORKSPACE_ID is unset, so it no longer needs
to be set up front for `retask auth login`. Document the picker and
note that NWEB_WORKSPACE_ID is still required in non-interactive
contexts like scripts and CI.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Comment thread src/content/docs/cli/getting-started.mdx Outdated
Address review feedback: the manual NWEB_WORKSPACE_ID export in the
workspace-picker callout should use the same macOS/Linux vs Windows
PowerShell tabs as the rest of the page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@hoaitan
hoaitan merged commit 6a72f0f into main Aug 18, 2026
2 checks passed
@hoaitan
hoaitan deleted the docs/cli-auth-login-workspace-picker branch August 18, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants