| 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 or stdin |
| 21 | wiki dump <directory> -- Export all wiki pages to files named by title |
| 22 | permission list -- List permission rules |
| 23 | permission add <user> <action> -- Add a new permission rule |
| 24 | permission remove <user> <action> -- Remove permission rule |
| 25 | component list -- Show available components |
| 26 | component add <name> <owner> -- Add a new component |
| 27 | component rename <name> <newname> -- Rename a component |
| 28 | component remove <name> -- Remove/uninstall component |
| 29 | component chown <name> <owner> -- Change component ownership |
| 30 | priority list -- Show possible ticket priorities |
| 31 | priority add <value> -- Add a priority value option |
| 32 | priority change <value> <newvalue> -- Change a priority value |
| 33 | priority remove <value> -- Remove priority value |
| 34 | severity list -- Show possible ticket priorities |
| 35 | severity add <value> -- Add a severity value option |
| 36 | severity change <value> <newvalue> -- Change a severity value |
| 37 | severity remove <value> -- Remove severity value |
| 38 | version list -- Show versions |
| 39 | version add <name> [time] -- Add version |
| 40 | version rename <name> <newname> -- Rename version |
| 41 | version time <name> <time> -- Set version date/time |
| 42 | version remove <name> -- Remove version |
| 43 | milestone list -- Show milestones |
| 44 | milestone add <name> [time] -- Add milestone |
| 45 | milestone rename <name> <newname> -- Rename milestone |
| 46 | milestone time <name> <time> -- Set milestone date/time |
| 47 | milestone remove <name> -- Remove milestone |
| 48 | }}} |
| 49 | |
| 50 | == Interactive mode == |
| 51 | |
| 52 | '''trac-admin''' starts in an interactive mode when started with the database |
| 53 | filename as the only argument. Commands can then be executed on the selected |
| 54 | database using the tab-completing prompt. |