<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=TracAdmin</id>
	<title>TracAdmin - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=TracAdmin"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=TracAdmin&amp;action=history"/>
	<updated>2026-05-16T09:34:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=TracAdmin&amp;diff=295&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; == TracAdmin == TracGuideToc  Trac is distributed with a powerful command-line configuration tool. This tool can be used  to configure and customize your Trac-installatio...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=TracAdmin&amp;diff=295&amp;oldid=prev"/>
		<updated>2015-08-26T12:29:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == TracAdmin == &lt;a href=&quot;/index.php?title=TracGuideToc&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;TracGuideToc (page does not exist)&quot;&gt;TracGuideToc&lt;/a&gt;  Trac is distributed with a powerful command-line configuration tool. This tool can be used  to configure and customize your Trac-installatio...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== TracAdmin ==&lt;br /&gt;
[[TracGuideToc]]&lt;br /&gt;
&lt;br /&gt;
Trac is distributed with a powerful command-line configuration tool. This tool can be used  to configure and customize your Trac-installation to better fit your needs.&lt;br /&gt;
&lt;br /&gt;
Some of those operations can also be performed via the &amp;#039;&amp;#039;Admin&amp;#039;&amp;#039; web interface, an updated version of the [trac:WebAdmin] plugin now integrated within Trac (since version 0.11).&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
For nearly every &amp;lt;tt&amp;gt;trac-admin&amp;lt;/tt&amp;gt; command, you&amp;#039;ll need to specify the path to the TracEnvironment that you want to administer as the first argument, for example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
trac-admin /path/to/projenv wiki list&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The only exception is for the &amp;lt;tt&amp;gt;help&amp;lt;/tt&amp;gt; command, but even in this case if you omit the environment, you&amp;#039;ll only get a very succinct list of commands (&amp;lt;tt&amp;gt;help&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;initenv&amp;lt;/tt&amp;gt;), the same list you&amp;#039;d get when invoking &amp;lt;tt&amp;gt;trac-admin&amp;lt;/tt&amp;gt; alone.&lt;br /&gt;
Also, &amp;lt;tt&amp;gt;trac-admin --version&amp;lt;/tt&amp;gt; will tell you about the Trac version (e.g. 0.12) corresponding to the program.&lt;br /&gt;
&lt;br /&gt;
If you want to get a comprehensive list of the available commands and sub-commands, you need to specify an existing environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
trac-admin /path/to/projenv help&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some commands have a more detailed help, which you can access by specifying the command&amp;#039;s name as a subcommand for &amp;lt;tt&amp;gt;help&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
trac-admin /path/to/projenv help &amp;lt;command&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;tt&amp;gt;trac-admin &amp;lt;targetdir&amp;gt; initenv&amp;lt;/tt&amp;gt; ==== #initenv&lt;br /&gt;
&lt;br /&gt;
This subcommand is very important as it&amp;#039;s the one used to create a TracEnvironment in the specified &amp;lt;tt&amp;gt;&amp;lt;targetdir&amp;gt;&amp;lt;/tt&amp;gt;. That directory must not exists prior to the call.&lt;br /&gt;
&lt;br /&gt;
[[TracAdminHelp(initenv)]]&lt;br /&gt;
&lt;br /&gt;
It supports an extra &amp;lt;tt&amp;gt;--inherit&amp;lt;/tt&amp;gt; option, which can be used to specify a global configuration file which can be used share settings between several environments. You can also inherit from a shared configuration afterwards, by setting the &amp;lt;tt&amp;gt;[inherit] file&amp;lt;/tt&amp;gt; option in the &amp;lt;tt&amp;gt;conf/trac.ini&amp;lt;/tt&amp;gt; file in your newly created environment, but the advantage of specifying the inherited configuration file at environment creation time is that only the options &amp;#039;&amp;#039;not&amp;#039;&amp;#039; already specified in the global configuration file will be written in the created environment&amp;#039;s &amp;lt;tt&amp;gt;conf/trac.ini&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
See TracIni#GlobalConfiguration.&lt;br /&gt;
&lt;br /&gt;
Note that in version 0.11 of Trac, &amp;lt;tt&amp;gt;initenv&amp;lt;/tt&amp;gt; lost an extra last argument &amp;lt;tt&amp;gt;&amp;lt;templatepath&amp;gt;&amp;lt;/tt&amp;gt;, which was used in previous versions to point to the &amp;lt;tt&amp;gt;templates&amp;lt;/tt&amp;gt; folder. If you are using the one-liner &amp;#039;&amp;lt;tt&amp;gt;trac-admin /path/to/trac/ initenv &amp;lt;projectname&amp;gt; &amp;lt;db&amp;gt; &amp;lt;repostype&amp;gt; &amp;lt;repospath&amp;gt;&amp;lt;/tt&amp;gt;&amp;#039; in the above and getting an error that reads &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;tt&amp;gt;Wrong number of arguments to initenv: 4&amp;lt;/tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039;, then this is because you&amp;#039;re using a &amp;lt;tt&amp;gt;trac-admin&amp;lt;/tt&amp;gt; script from an &amp;#039;&amp;#039;&amp;#039;older&amp;#039;&amp;#039;&amp;#039; version of Trac.&lt;br /&gt;
&lt;br /&gt;
=== Interactive Mode ===&lt;br /&gt;
&lt;br /&gt;
When passing the environment path as the only argument, &amp;lt;tt&amp;gt;trac-admin&amp;lt;/tt&amp;gt; starts in interactive mode.&lt;br /&gt;
Commands can then be executed on the selected environment using the prompt, which offers tab-completion&lt;br /&gt;
(on non-Windows environments, and when the Python &amp;lt;tt&amp;gt;readline&amp;lt;/tt&amp;gt; module is available) and automatic repetition of the last command issued.&lt;br /&gt;
&lt;br /&gt;
Once you&amp;#039;re in interactive mode, you can also get help on specific commands or subsets of commands:&lt;br /&gt;
&lt;br /&gt;
For example, to get an explanation of the &amp;lt;tt&amp;gt;resync&amp;lt;/tt&amp;gt; command, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; help resync&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To get help on all the Wiki-related commands, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; help wiki&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Full Command Reference ===&lt;br /&gt;
&lt;br /&gt;
You&amp;#039;ll find below the detailed help for all the commands available by default in &amp;lt;tt&amp;gt;trac-admin&amp;lt;/tt&amp;gt;. Note that this may not match the list given by &amp;lt;tt&amp;gt;trac-admin &amp;lt;yourenv&amp;gt; help&amp;lt;/tt&amp;gt;, as the commands  pertaining to components disabled in that environment won&amp;#039;t be available and conversely some plugins activated in the environment can add their own commands.&lt;br /&gt;
&lt;br /&gt;
[[TracAdminHelp()]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
See also: TracGuide, TracBackup, TracPermissions, TracEnvironment, TracIni, [trac:TracMigrate TracMigrate]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>