Skip to content

Improve apify call input UX - #1212

Merged
patrikbraborec merged 4 commits into
masterfrom
fix/call-input-help-ux
Jun 26, 2026
Merged

Improve apify call input UX#1212
patrikbraborec merged 4 commits into
masterfrom
fix/call-input-help-ux

Conversation

@patrikbraborec

@patrikbraborec patrikbraborec commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Expand apify call --input help to clarify inline JSON object usage, shell quoting, and --input-file for file input.
  • Add call-scoped schema-discovery hints for parse/path/object-shape input errors.
  • Regenerate CLI reference docs and cover the new hint behavior with local tests.

Closes #1210

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions github-actions Bot added this to the 143rd sprint - DX team milestone Jun 23, 2026
@github-actions github-actions Bot added t-builders Issues owned by the Builders team. tested Temporary label used only programatically for some analytics. labels Jun 23, 2026
Comment thread src/commands/actors/call.ts Outdated
Comment thread src/commands/actors/call.ts Outdated
patrikbraborec and others added 2 commits June 24, 2026 14:37
Co-authored-by: Edyta <142720610+szaganek@users.noreply.github.com>
Co-authored-by: Edyta <142720610+szaganek@users.noreply.github.com>

@l2ysho l2ysho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Comment thread src/lib/commands/resolve-input.ts Outdated

@DaveHanns DaveHanns left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit, otherwise LGTM 🚀

A JSON file path in --input is a wrong-flag mistake, not invalid input
JSON, so the schema hint doesn't apply there.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@patrikbraborec
patrikbraborec force-pushed the fix/call-input-help-ux branch from 442fe2e to 27d7ba2 Compare June 26, 2026 11:30
@patrikbraborec
patrikbraborec merged commit 20953e0 into master Jun 26, 2026
18 of 24 checks passed
@patrikbraborec
patrikbraborec deleted the fix/call-input-help-ux branch June 26, 2026 12:17
patrikbraborec added a commit that referenced this pull request Jun 29, 2026
…error

The --input file-path error ("use --input-file instead") is a usage
error, not a schema problem, so the schema-discovery hint intentionally
does not apply there. The test added in #1212 wrongly asserted the hint
was present, failing on CI. Update the test to assert the hint is
absent for this case.

Closes #1234

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-builders Issues owned by the Builders team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve apify call --input help/UX to cut avoidable input failures

5 participants