252

Is there a command-line based version of svn for Windows? I know I can get TortoiseSVN, but that just doesn't work for me.

1
  • 2
    What's your actual problem you want to solve with the native client? Why not use the bundled native client of TortoiseSVN? Describing your actual problem (ie WHY it dos not work) would be a better way to start a question instead of asking for available options ...
    – user57508
    Aug 19, 2015 at 9:50

10 Answers 10

281

TortoiseSVN contains a console svn client, but by default the corresponding option is not enabled during installation.

The svn.exe executable is not standalone and it depends on some other files1 in the distribution but this should not be a problem in most cases.

Once installed you might need to add the folder containing svn.exe to the system PATH as described here so that it is available in your console. To check if it was already added by the installer open a new console and type echo %PATH%. Use set on its own to see all environmental variables.

TortoiseSVN install wizard

1 for the svn* executables in TortoiseSVN 1.14.1, the following files are required on the PATH:

intl3_tsvn.dll
libaprutil_tsvn.dll
libapr_tsvn.dll
libsasl.dll
libsvn_tsvn.dll
8
  • 2
    I like this answer the best and didn't know tortoise came with a command line client. One less program is one less thing to keep track of. Aug 6, 2013 at 14:03
  • 2
    Well, how can I use it? I hope to have a shell which shows some different color for different file status just like git shell does.
    – JaskeyLam
    Jan 26, 2015 at 5:24
  • @Jaskey: Yes, there is a colorizer for SVN output. I use this one: github.com/jmlacroix/svn-color/blob/master/svn-color.sh - but it is not perfect, i had to modify it a bit since it does not support all the commands. Maybe there are other ones too, although I didn't see yet anything better. Of course, it is bash-only, so if you are on a windows box you'll need something like msys or cygwin.
    – ccpizza
    Jan 26, 2015 at 9:53
  • 2
    My installer automatically added it to the PATH. Definitely need to restart your cmd window though.
    – Roger
    Jun 9, 2016 at 21:31
  • 2
    Great answer! If the cmd line client has not been installed (as it was in my case) it can be easily added: Just restart the T SVN installer and choose "Modify". Then add the client in to the selection of parts that should be installed.
    – Jpsy
    Mar 21, 2018 at 8:26
100

The subversion client itself is available on Windows. See here for certified binaries from CollabNet.

CollabNet Subversion Command-Line Client v1.6.9 (for Windows)

This installer only includes the command-line client and an auto-update component.

Even though I can't understand it's possible not to love Tortoise! :)

Note:
The above link is for newer products - you can find version 1.11.1 through 1.7.19 at Older Subversion Releases

10
  • 96
    Requires registration to download :/
    – simon
    Dec 7, 2011 at 10:09
  • 13
    Be careful of the CollabNet registration form. If the submitted form has errors (which it will because of how it is designed), it will recheck the newsletters checkbox. Jul 17, 2013 at 16:26
  • 3
    You can download svn on windows without registration. Install Chocolatey chocolatey.org/docs/installation , and then type choco install svn.
    – cowlinator
    Apr 4, 2019 at 1:15
  • 1
    The subversion download on CollabNet is no where to be found and all the links are redirected to the home page.
    – Martin
    Aug 3, 2020 at 8:34
  • 1
    no need to install anything - just download the Apache Subversion command line tools from visualsvn.com/downloads (and edit the PATH variable) Jan 26, 2022 at 17:19
77

I've used sliksvn and it works great for me

3
  • 11
    Pretty great, if you want a small (<6mb) client, which is even smaller then CollabNet's client (and you don't want to register to another company's site ;) ). Oct 1, 2012 at 9:17
  • Nice tool. It also works as a standalone when you copy everything after installation to another folder.
    – pavex
    Mar 10, 2018 at 9:17
  • 1
    I'll upvote this. All I needed was a simple command line client for testing, I didn't want to go through installing something like Tortoise just for that. SlikSvn did the trick. Jan 3, 2019 at 16:24
19

cygwin is another option. It has a port of svn.

8
  • 37
    installing cygwin just for svn? that's brutal (and unnecessary since there are quite a few 'native' clients)
    – Idan K
    Feb 26, 2010 at 12:34
  • It is a bit of an overkill, I agree. Feb 26, 2010 at 13:57
  • 10
    anyway.. it's a another option, actually.
    – alcor
    Jul 19, 2012 at 8:00
  • 23
    But if you already have cygwin, this is a perfectly reasonable option to consider. I think that's the point of this answer.
    – pattivacek
    Jul 16, 2014 at 14:30
  • 1
    I think cygwin is perfect command line svn alternative, because the other linux tools, and scripting possibilities. You need to select subversion package in cygwin setup, to access svn commands.
    – voji
    Oct 25, 2015 at 7:08
15

You can get SVN command-line tools with TortoiseSVN 1.7 or later or get a 6.5mb standalone package from VisualSVN.

Starting with TortoiseSVN 1.7, its installer provides you with an option to install the command-line tools.

It also makes sense to check the Apache Subversion "Binary Packages" page. xD

3
  • 1
    Wow, that VisualSVN standalone package is excellent! That particular link you found, I have no idea how you found it. As far as I can tell, there is no way to navigate to that page from their site, you simply have to have inside knowledge that it exists!
    – SeanRamey
    Dec 28, 2018 at 4:35
  • @SeanRamey you can find the link to this page at subversion.apache.org/packages.html#windows
    – bahrep
    Dec 28, 2018 at 13:45
  • odd, I could have sworn that clicking the link on that page took me directly to visualsvn.com/server
    – SeanRamey
    Jan 3, 2019 at 7:22
5

VisualSVN for Windows has a command-line-only executable (as well Visual Studio plugins). See https://www.visualsvn.com/downloads/

It is completely portable, so no installation is necessary.

4

As Damian noted here Command line subversion client for Windows Vista 64bits TortoiseSVN has command line tools that are unchecked by default during installation.

4

You can use Apache Subversion. It is owner of subversion . You can download from here . After install it, you have to restart pc to use svn from command line.

2
  • 1
    easiest so far. And no, you don´t have to restart your pc.
    – Sebas
    Mar 9, 2017 at 12:54
  • 3
    Doesn't appear to be maintained any longer. Last update was 2016. Subversion 1.8.17 seems to be the newest supported. The current LTS is 1.10.x and 1.13 is the current normal version. I wouldn't recommend this package for most at this point.
    – ahwm
    Dec 9, 2019 at 18:21
4

If you have Windows 10 you can use Bash on Ubuntu on Windows to install subversion.

2

Install MSYS2, it has svn in its repository (besides lots of other Unix goodies). MSYS2 installs without Windows Admin rights.

$ pacman -S svn

The tools can be used from cmd, too:

C:\>C:\msys64\usr\bin\svn.exe co http://somehost/somerepo/

Not the answer you're looking for? Browse other questions tagged or ask your own question.