Skip to content

Files

The files command surfaces Redmine’s project Files API, which keeps files such as release artifacts attached to a project rather than to an individual issue or wiki page.

Every subcommand needs a project. Pass --project <identifier>, or rely on the default project of the active profile (see auth).

Terminal window
redmine files list [flags]

Aliases: ls. Prints each file’s ID, name, size in bytes, associated version (if any), uploader, and creation timestamp.

FlagDescription
--projectProject identifier or numeric ID. Falls back to the default project of the active profile.
--limitMaximum number of results (0 for all)
--offsetResult offset for pagination
-o, --outputOutput format: table, json, csv
Terminal window
redmine files list --project myproject
Terminal window
redmine files upload <path> [flags]

Aliases: add, create. Uploads a file from disk to Redmine’s /uploads.json endpoint, then attaches the resulting token to the project. Pass --version to pin the file to a milestone so it shows up in version-scoped views.

FlagDescription
--projectProject identifier or numeric ID
--filenameOverride the displayed filename (defaults to the file’s base name)
--versionAttach to a version: name or numeric ID
--descriptionOptional description
--content-typeOverride the detected MIME type
-o, --outputOutput format
Terminal window
redmine files upload ./release.tar.gz --project myproject
redmine files upload ./changelog.md --project myproject \
--version 1.2.0 --description "Release notes"
redmine files upload ./build.zip --project myproject --filename "build-1.2.0.zip"