Using TortoiseSVN via the command line

Night Walker picture Night Walker · Oct 26, 2009 · Viewed 391.2k times · Source

I want to use commandline SVN options. I use TortoiseSVN, and I run several commands and I get the following error.

'svn' is not recognized as an internal or external command

I used the command

svn checkout [-N] [--ignore-externals] [-r rev] URL PATH

I think I should add some environment variable or something else.

What should I do or can't TortoiseSVN be used from the command line?

Answer

AnneTheAgile picture AnneTheAgile · Mar 26, 2012

By default TortoiseSVN always has a GUI (Graphical User Interface) associated with it. But on the installer (of version 1.7 and later) you can select the "command line client tools" option so you can call svn commands (like svn commit and svn update) from the command line.

Here's a screenshot of the "command line client tools" option in the installer, you need to make sure you select it:

How-to-install-TortoiseSvn-CommandLineTools