CMDCommand · run as root on the server · file family
urbestack-file-write
First published 3 Oct 2026
0.1.0Unchanged since publicationUsage
2 forms# urbestack-file-write --user NAME --path /file [--create-only] --content-stdin# urbestack-file-write --user NAME --path /file [--create-only] --bytes-stdin --length BYTESDescription
From the command's --help outputWrites the entire contents of a file in the customer's home directory from standard input, up to the size set by files.upload_limit_mb. The --path value starts at /, the customer's home directory. Use --content-stdin to send base64, as the built-in editor does. The command reads the entire input before writing. Use --bytes-stdin to stream raw bytes for an upload. With --bytes-stdin, --length is required and gives the exact byte count. Use 0 for an empty file. The command streams the bytes to a hidden file beside the destination and moves it into place only after receiving the declared number of bytes. If input ends early, the command returns a 400 error and leaves the destination as it was. Use --create-only to prevent replacement. If the file exists, the command returns a 409 error. The New file button and uploads that ask before replacing a file use this option. The command writes as the customer, creates new files with mode 0644 and refuses to write through symbolic links. Running out of disk space returns a 507 error.Usage: urbestack-file-write --user NAME --path /file [--create-only] --content-stdin urbestack-file-write --user NAME --path /file [--create-only] --bytes-stdin --length BYTES Writes the entire contents of a file in the customer's home directory from standard input, up to the size set by files.upload_limit_mb. The --path value starts at /, the customer's home directory. Use --content-stdin to send base64, as the built-in editor does. The command reads the entire input before writing. Use --bytes-stdin to stream raw bytes for an upload. With --bytes-stdin, --length is required and gives the exact byte count. Use 0 for an empty file. The command streams the bytes to a hidden file beside the destination and moves it into place only after receiving the declared number of bytes. If input ends early, the command returns a 400 error and leaves the destination as it was. Use --create-only to prevent replacement. If the file exists, the command returns a 409 error. The New file button and uploads that ask before replacing a file use this option. The command writes as the customer, creates new files with mode 0644 and refuses to write through symbolic links. Running out of disk space returns a 507 error.
Options
Find other commands that accept these optionsSame in the API
This operation runs the command.Generated from release 0.2.35 (current) · urbestack-file-write --help outputThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/commands/urbestack-file-write/