11 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
…en # Download the file and save it ant files download \ --file-id "$file_id" \ --output "${TMPDIR:-/tmp}/renewable_energy.pptx" fi ``` ```python Python # Extract the file…
code-execution-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/code-execution-tool
…}' ``` ```bash CLI # First, upload a file ant files upload --file ./data.csv # Then use the file with code execution: FILE_ID is the ID from the upload response ant messages create <<Y…
files
Claude Developer Platform · in the page
build-with-claude/files
…"file=@/path/to/document.pdf" ``` ```bash CLI ant files upload --file /path/to/document.pdf ``` ```python Python uploaded = client.files.upload( file=("document.pdf", open("/path/t…
pdf-support
Claude Developer Platform · in the page
build-with-claude/pdf-support
…sh CLI # First, upload your PDF to the Files API ant files upload --file ./document.pdf # Then use the file_id from the upload response in your message ant messages create <<YAML model: cla…
skills-guide
Claude Developer Platform · in the page
build-with-claude/skills-guide
…`` ```bash CLI # Get file metadata ant files retrieve-metadata --file-id "$FILE_ID" # List all files ant files list # Delete a file ant files delete --file-id "$FILE_ID" ``` ```p…
vision
Claude Developer Platform · in the page
build-with-claude/vision
…jpg # First, upload your image to the Files API ant files upload --file ./vision-example.jpg # Then use the file_id from the upload response in your message ant messages create <<YAML mode…
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…
plugins-api
Claude Developer Platform · in the page
manage-claude/plugins-api
…se" ``` ```bash CLI ant beta:organization:plugins create \ --file dist/sales-toolkit.zip \ --release-notes "First release" ``` ```python Python client = anthropic.Anthropic()…
DCF Model Rubric
Claude Developer Platform · in the page
managed-agents/define-outcomes
…\ -F file=@/tmp/rubric.md ``` ```bash CLI ant files upload --file /tmp/rubric.md ``` ```python Python import time from pathlib import Path from anthropic import Anthropic cli…
files
Claude Developer Platform · in the page
managed-agents/files
…4-01" \ -F [email protected] ``` ```bash CLI ant files upload --file data.csv ``` ```python Python file = client.files.upload(file=Path("data.csv")) print(f"File ID: {file.id}") ```…
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. * **`ps` that could print environment var…