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 |
| 12 | trac-admin help |
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. |
| 20 | == Interactive Mode == |
| 21 | |
| 22 | When passing the environment path as the only argument, `trac-admin` starts in interactive mode. |
| 23 | Commands can then be executed on the selected environment using the prompt, which offers tab-completion |
| 24 | (on non-Windows environments, and when the Python `readline` module is available) and automatic repetition of the last command issued. |
| 25 | |
| 26 | Once you're in interactive mode, you can also get help on specific commands or subsets of commands: |
| 27 | |
| 28 | For example, to get an explanation of the `resync` command, run: |
| 29 | {{{ |
| 30 | > help resync |
| 31 | }}} |
| 32 | |
| 33 | To get help on all the Wiki-related commands, run: |
| 34 | {{{ |
| 35 | > help wiki |
| 36 | }}} |
| 37 | |
| 38 | == Full Command Reference == |
| 39 | |
| 40 | [[TracAdminHelp()]] |
| 41 | |
| 42 | === Notes === |
| 43 | |
| 44 | The `initenv` also supports an extra `--inherit` option, which can be used to specify the `[inherit] file` option at environment creation time so that only the options ''not'' already specified in the global configuration file will be written in the conf/trac.ini file of the newly created environment. |
| 45 | See TracIni#GlobalConfiguration. |
| 46 | ---- |
| 47 | See also: TracGuide, TracBackup, TracPermissions, TracEnvironment, TracIni, TracMigrate |