close
Warning:
AdminModule failed with TracError: Unable to instantiate component <class 'trac.admin.web_ui.BasicsAdminPanel'> (super(type, obj): obj must be an instance or subtype of type)
- Timestamp:
-
Sep 13, 2025, 3:01:44 PM (5 months ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v2
|
v3
|
|
| 18 | 18 | `trac-admin --version` will tell you about the Trac version (e.g. 1.2) corresponding to the program. |
| 19 | 19 | |
| 20 | | To get a comprehensive list of the available command and sub-command, specify the path to an environment: |
| | 20 | To get a comprehensive list of the available commands and sub-commands, specify the path to an environment followed by the subcommand `help`: |
| 21 | 21 | {{{#!sh |
| 22 | 22 | $ trac-admin /path/to/projenv help |
| … |
… |
|
| 28 | 28 | }}} |
| 29 | 29 | |
| 30 | | When an error occurs in a `trac-admin` command the return value will be `2` and error messages are printed to `stderr`. |
| | 30 | When an error occurs in a `trac-admin` command the return value will be `2` and any error messages are printed to `stderr`. |
| 31 | 31 | |
| 32 | 32 | === `trac-admin <targetdir> initenv` #initenv |
| … |
… |
|
| 42 | 42 | |
| 43 | 43 | `trac-admin` starts in interactive mode when the environment path is the only argument. |
| 44 | | Commands can then be executed on the selected environment using the prompt, which offers tab-completion |
| 45 | | for non-Windows environments, and when the Python `readline` module is available. It also offers automatic repetition of the last command issued. |
| | 44 | Commands can then be executed on the selected environment using the prompt, which offers tab-completion when the Python `readline` module is available. It also offers automatic repetition of the last command issued. |
| 46 | 45 | |
| 47 | | Once you are in interactive mode, you can also get help on specific commands or subsets of commands: |
| | 46 | The `readline` module should be available on all Unix-compatible platforms. For Windows, support can be obtained by installing [https://pypi.python.org/pypi/pyreadline pyreadline]. |
| 48 | 47 | |
| 49 | | For example, to get an explanation of the `resync` command, run: |
| | 48 | In interactive mode, you can also get help on specific commands or subsets of commands. For example, to get an explanation of the `resync` command, run: |
| 50 | 49 | {{{#!sh |
| 51 | 50 | $ help resync |
| … |
… |
|
| 59 | 58 | == Full Command Reference |
| 60 | 59 | |
| 61 | | You will find below the detailed help for all the commands available by default in `trac-admin`. Note that this may not match the list given by `trac-admin <yourenv> help`, as the commands pertaining to components disabled in that environment won't be available and conversely some plugins activated in the environment may add their own commands. |
| | 60 | The commands available by default in `trac-admin` are listed below. Note that this may not match the list given by `trac-admin <yourenv> help`, as the commands pertaining to components disabled in that environment won't be available and conversely some plugins activated in the environment may add their own commands. |
| 62 | 61 | |
| 63 | 62 | [[TracAdminHelp()]] |