Loading...
Loading...
Compare original and translation side by side
echo "Your prompt here" | claude -pecho "Your prompt here" | claude -pecho "Complex task requiring Opus" | claude -p --model opus
echo "Standard task with Sonnet" | claude -p --model sonnetecho "Complex task requiring Opus" | claude -p --model opus
echo "Standard task with Sonnet" | claude -p --model sonnetclaude -p --model opus "Analyze this complex problem"claude -p --model opus "Analyze this complex problem"claude -p --output-format json "Your prompt"claude -p --output-format json "Your prompt"claude -p --output-format stream-json "Your prompt"claude -p --output-format stream-json "Your prompt"| Option | Description |
|---|---|
| Non-interactive mode, print and exit |
| Model alias: |
| |
| Custom system prompt |
| Spending limit for the call |
| Restrict available tools |
| Skip permission checks (sandboxed use only) |
| 选项 | 描述 |
|---|---|
| 非交互式模式,输出结果后退出 |
| 模型别名: |
| 输出格式: |
| 自定义系统提示词 |
| 调用的花费上限 |
| 限制可用工具 |
| 跳过权限检查(仅适用于沙箱环境) |
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinednode {baseDir}/scripts/run-claude-task.cjs "Your task prompt" [--model sonnet|opus] [--timeout 300]node {baseDir}/scripts/run-claude-task.cjs "Your task prompt" [--model sonnet|opus] [--timeout 300]claude --versionclaudeclaude --versionclaude| Alias | Best For |
|---|---|
| Fast, capable, cost-effective. Default choice. |
| Complex reasoning, nuanced tasks, extended thinking. |
| 别名 | 适用场景 |
|---|---|
| 快速响应、能力全面、性价比高。默认选择。 |
| 复杂推理、精细化任务、深度思考场景。 |
-p--output-format jsoncat file.py | claude -p "Review this"-p--output-format jsoncat file.py | claude -p "Review this"-p-p