trac-ticketlinks / wiki-default / TracAdmin

= TracAdmin =

Trac is distributed with a powerful configuration tool. This tool can be used 
to configure and customize your Trac-installation to better fit your needs.

== Usage ==

{{{
Usage: trac-admin <dbfile> [command [subcommand] [option ...]]

Invoking trac-admin without command starts interactive mode.

about                               -- Shows information about trac-admin
help                                -- Show documentation
initdb                              -- Create and initializes a new database
config list                         -- Show current configuration
config set <option> <value>         -- Set config
wiki list                           -- List wiki pages
wiki export <page> [file]           -- Export wiki page to file or stdout
wiki import <page> [file]           -- Import wiki page from file or stdin
wiki dump <directory>               -- Export all wiki pages to files named by title
permission list                     -- List permission rules
permission add <user> <action>      -- Add a new permission rule
permission remove <user> <action>   -- Remove permission rule
component list                      -- Show available components
component add <name> <owner>        -- Add a new component
component rename <name> <newname>   -- Rename a component
component remove <name>             -- Remove/uninstall component
component chown <name> <owner>      -- Change component ownership
priority list                       -- Show possible ticket priorities
priority add <value>                -- Add a priority value option
priority change <value> <newvalue>  -- Change a priority value
priority remove <value>             -- Remove priority value
severity list                       -- Show possible ticket priorities
severity add <value>                -- Add a severity value option
severity change <value> <newvalue>  -- Change a severity value
severity remove <value>             -- Remove severity value
version list                        -- Show versions
version add <name> [time]           -- Add version
version rename <name> <newname>     -- Rename version
version time <name> <time>          -- Set version date/time
version remove <name>               -- Remove version
milestone list                      -- Show milestones
milestone add <name> [time]         -- Add milestone
milestone rename <name> <newname>   -- Rename milestone
milestone time <name> <time>        -- Set milestone date/time
milestone remove <name>             -- Remove milestone
}}}

== Interactive mode ==

'''trac-admin''' starts in an interactive mode when started with the database 
filename as the only argument. Commands can then be executed on the selected 
database using the tab-completing prompt.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.