black
Verified for current stable LTS
Black Command: Auto Format File Or Directory
Use for auto format file or directory with Black. Exact CLI syntax to auto format file or directory using Black.
When to use this: Use for auto format file or directory with Black.
Command Syntax
black <path/to/file_or_directory> black <path/to/file_or_directory> Command Breakdown
black is the base executable for this command.
FAQ
Purpose: Exact syntax to auto format file or directory using Black.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Black Command: Check Formatting Changes
black --check <path/to/file_or_directory> Black Command: Format Code String black -c "<code>" Black Command: Quiet Auto Format black -q <path/to/file_or_directory> Black Command: Quiet Auto Formatting black -q <path/to/file_or_directory> Black Command: Show Diff Without Modifying black --diff <path/to/file_or_directory>