| 1 | = TracAdmin = |
| 2 | |
| 3 | Trac is distributed with a powerful configuration tool. This tool can be used |
| 4 | to configure and customize your Trac-installation to better fit your needs. |
| 5 | |
| 6 | == Usage == |
| 7 | |
| 8 | {{{ |
| 9 | Usage: trac-admin <dbfile> [command [subcommand] [option ...]] |
| 10 | |
| 11 | Invoking trac-admin without command starts interactive mode. |
| 12 | |
| 13 | about -- Shows information about trac-admin |
| 14 | help -- Show documentation |
| 15 | initdb -- Create and initializes a new database |
| 16 | config list -- Show current configuration |
| 17 | config set <option> <value> -- Set config |
| 18 | wiki list -- List wiki pages |
| 19 | wiki export <page> [file] -- Export wiki page to file or stdout |
| 20 | wiki import <page> [file] -- Import wiki page from file |
| 21 | wiki dump <directory> -- Export all wiki pages to files named by title |
| 22 | wiki load <directory> -- Import all wiki pages from directory |
| 23 | permission list -- List permission rules |
| 24 | permission add <user> <action> -- Add a new permission rule |
| 25 | permission remove <user> <action> -- Remove permission rule |
| 26 | component list -- Show available components |
| 27 | component add <name> <owner> -- Add a new component |
| 28 | component rename <name> <newname> -- Rename a component |
| 29 | component remove <name> -- Remove/uninstall component |
| 30 | component chown <name> <owner> -- Change component ownership |
| 31 | priority list -- Show possible ticket priorities |
| 32 | priority add <value> -- Add a priority value option |
| 33 | priority change <value> <newvalue> -- Change a priority value |
| 34 | priority remove <value> -- Remove priority value |
| 35 | severity list -- Show possible ticket priorities |
| 36 | severity add <value> -- Add a severity value option |
| 37 | severity change <value> <newvalue> -- Change a severity value |
| 38 | severity remove <value> -- Remove severity value |
| 39 | version list -- Show versions |
| 40 | version add <name> [time] -- Add version |
| 41 | version rename <name> <newname> -- Rename version |
| 42 | version time <name> <time> -- Set version date/time |
| 43 | version remove <name> -- Remove version |
| 44 | milestone list -- Show milestones |
| 45 | milestone add <name> [time] -- Add milestone |
| 46 | milestone rename <name> <newname> -- Rename milestone |
| 47 | milestone time <name> <time> -- Set milestone date/time |
| 48 | milestone remove <name> -- Remove milestone |
| 49 | }}} |
| 50 | |
| 51 | == Interactive mode == |
| 52 | |
| 53 | '''trac-admin''' starts in an interactive mode when started with the database |
| 54 | filename as the only argument. Commands can then be executed on the selected |
| 55 | database using the tab-completing prompt. |