Skip to content

mw phabricator paste create

Releasev0.35.0 · cfeceb67

mw phabricator paste create [flags]

Preview and save a paste using the selected profile. Content must be UTF-8 text. Use –file - for stdin. Confirm interactively or use –yes. –dry-run previews changes without reading credentials or contacting Phabricator. Unless –visibility is provided, Phabricator chooses the view policy; it may be public.

Pipe text from another command:

echo a-wikimedia-cli | mw phab paste create --title "Example" --file - --yes
--dry-run
Preview without accessing credentials or saving a paste
--file <string>
Read paste content from a file, or - for stdin Default: -.
--language <string>
Phabricator syntax-highlighting language key
--status <string>
Paste status: active or archived
--title <string>
Paste title
--visibility <string>
View policy constant or policy PHID (for example users or no-one)
--yes
Save without asking for confirmation
--help
Help for this command
--no-interaction
Do not ask any interactive questions
--profile <string>
Saved account profile (login defaults to the verified username)
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
mw phabricator paste create --title 'Example output' --file output.txt
mw phabricator paste create --title 'Example output' --file - --yes
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.