Search the documentation
12 pages for --file.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
quickstart
Claude Developer Platform · in the page
agents-and-tools/agent-skills/quickstart
…t_path="${TMPDIR:-/tmp}/renewable_energy.pptx" ant files download --file-id "$file_id" --output "$output_path" echo "Presentation saved to $output_path" fi ``` ```python Python # Extr…
code-execution-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/code-execution-tool
…t, upload a file and capture the file ID FILE_ID=$(ant files upload --file ./data.csv --transform id --raw-output) # Then use the file_id with code execution ant messages create <<YAML model:…
files
Claude Developer Platform · in the page
build-with-claude/files
…ho "$FILE_ID" ``` ```bash CLI FILE_ID=$(ant files upload \ --file /path/to/document.pdf \ --transform id \ --raw-output) echo "$FILE_ID" ``` ```python Python uploaded = cli…
pdf-support
Claude Developer Platform · in the page
build-with-claude/pdf-support
…, upload your PDF to the Files API FILE_ID=$(ant files upload \ --file ./document.pdf \ --transform id \ --raw-output) # Then use the returned file_id in your message ant messages c…
skills-guide
Claude Developer Platform · in the page
build-with-claude/skills-guide
…ame from file metadata FILENAME=$(ant files retrieve-metadata \ --file-id "$FILE_ID" \ --transform filename \ --raw-output) # Step 4: Download the file using Files API ant files dow…
vision
Claude Developer Platform · in the page
build-with-claude/vision
…upload your image to the Files API FILE_ID=$(ant files upload \ --file ./vision-example.jpg \ --transform id --raw-output) # Then use the returned file_id in your message ant messages c…
using
Claude Developer Platform · in the page
cli-sdks-libraries/cli/using
…YAML ``` ### File references Flags that take a file path, such as `--file` on the upload command, accept a bare path: ```bash ant files upload --file ./report.pdf ``` To inline a file's contents…
DCF Model Rubric
Claude Developer Platform · in the page
managed-agents/define-outcomes
…$rubric_id" ``` ```bash CLI RUBRIC_ID=$(ant files upload \ --file /tmp/rubric.md \ --transform id --raw-output) ``` ```python Python import time from pathlib import Path fro…
files
Claude Developer Platform · in the page
managed-agents/files
…%s\n' "${file_id}" ``` ```bash CLI FILE_ID=$(ant files upload --file data.csv --transform id --raw-output) ``` ```python Python file = client.files.upload(file=Path("data.csv")) print…
skills
Claude Developer Platform · in the page
managed-agents/skills
…"files[]=@example_skill.zip" ``` ```bash CLI ant skills create --file example_skill.zip ``` ```python Python import anthropic from anthropic.lib import files_from_dir client = anthr…
Claude Code changelog
Claude Code CLI · in the page
changelog
…match. * Changed `file` commands using `-m`/`--magic-file` or `-f`/`--files-from` to require permission instead of being auto-allowed as read-only * Changed keep-alive connection pooling to disabl…
Configure permissions
Claude Code CLI · in the page
permissions
…g flags**: `file` prompts when it passes `-m`/`--magic-file` or `-f`/`--files-from`, because those flags make `file` open the paths named in the flag's value. * **Network paths on Windows**: a command…