Wiki
The wiki command (alias w) reads and writes pages on a project’s wiki.
Every subcommand needs a project. Pass --project <identifier>, or rely on the default project of the active profile (see auth).
redmine wiki list [flags]Aliases: ls. Lists each page’s title and last-modified timestamp. Results are paginated server-side; combine --limit 0 with --offset to walk large wikis.
| Flag | Description |
|---|---|
--project | Project identifier or numeric ID. Falls back to the default project of the active profile. |
--limit | Maximum number of results (0 for all) |
--offset | Result offset for pagination |
-o, --output | Output format: table, json, csv |
redmine wiki list --project myprojectredmine wiki list --project myproject -o jsonredmine wiki list --project myproject --limit 10 --offset 20redmine wiki get <page> [flags]Aliases: show, view. Prints the page metadata and full Textile/Markdown source. Pass --version to fetch a historical revision instead of the current one.
| Flag | Description |
|---|---|
--project | Project identifier or numeric ID |
--version | Page version to fetch (omit or 0 for the latest) |
--include | Include related data. Only attachments is supported. |
-o, --output | Output format |
redmine wiki get WikiStart --project myprojectredmine wiki get WikiStart --project myproject --version 3redmine wiki get WikiStart --project myproject --include attachmentscreate
Section titled “create”redmine wiki create <page> [flags]Aliases: new. Creates a new wiki page. If a page with the same name already exists, Redmine overwrites it. Use update when you want to be sure you are editing rather than replacing.
| Flag | Description |
|---|---|
--project | Project identifier or numeric ID |
-t, --text | Page content in Textile/Markdown. required |
--title | Display title (defaults to the page name) |
--comments | Change comment recorded in the page history |
--attach | Path to a file to attach (repeatable) |
-o, --output | Output format |
redmine wiki create MyPage --project myproject --text "h1. Hello World"
redmine wiki create MyPage --project myproject \ --text "Content here" --title "My Page" --comments "Initial draft"
redmine wiki create MyPage --project myproject \ --text "See diagram" --attach ./diagram.pngupdate
Section titled “update”redmine wiki update <page> [flags]Aliases: edit. Edits an existing page. Only the fields you pass change. When --text is omitted, the current page text is fetched and resent unchanged so that retitling or re-commenting does not wipe content.
| Flag | Description |
|---|---|
--project | Project identifier or numeric ID |
-t, --text | New page content. If omitted, the current text is preserved. |
--title | New display title |
--comments | Change comment recorded in the page history |
--attach | Path to a file to attach (repeatable) |
redmine wiki update MyPage --project myproject --text "Updated content"
redmine wiki update MyPage --project myproject --comments "Fixed typo"
redmine wiki update MyPage --project myproject --title "New Title"
redmine wiki update MyPage --project myproject --attach ./screenshot.pngdelete
Section titled “delete”redmine wiki delete <page> [flags]Aliases: rm. Permanently removes the page along with all its attachments and version history. Child pages are re-parented to the wiki root rather than deleted.
| Flag | Description |
|---|---|
--project | Project identifier or numeric ID |
-f, --force | Skip the confirmation prompt |
redmine wiki delete MyPage --project myprojectredmine wiki delete MyPage --project myproject --force