docs/en/tutorials/windows.md
:::tip Environment Dependency On Windows, JuiceFS relies on WinFsp to mount the file system. You can download the latest version from the WinFsp Repository. After installation, it is recommended to restart your computer to ensure all components are loaded properly. :::
The installation guide introduces various ways to install JuiceFS on Windows. Here, we detail the manual installation process.
Go to the project's Release page and download the latest JuiceFS client, for example, juicefs-1.3.0-windows-amd64.tar.gz.
For better management, it is recommended to create a dedicated directory for the JuiceFS client. For example, create a folder named juicefs under C:\, and place the extracted juicefs.exe inside.
To conveniently use the juicefs command in the command line, add the JuiceFS client directory to your system's environment variables:
Path, select it and click "Edit";C:\juicefs;After installation, verify the JuiceFS client via the command line. Open Command Prompt (CMD) or PowerShell and enter:
juicefs version
If installed successfully, you should see output similar to:
juicefs version 1.3.0+2025-07-03.30190ca1094d2
The steps to create and mount a JuiceFS file system are similar to other operating systems, but pay attention to Windows command line syntax and path formats.
juicefs format --storage oss `
--bucket https://your-bucket.oss-cn-region.aliyuncs.com `
--access-key your-access-key `
--secret-key your-secret-key `
redis://your-redis-host:6379/0 `
mywinfs
Unlike Linux, Windows command lines use backticks (`) for line continuation.
On Windows, the mount point must be an unused drive letter (such as X, Y, Z, etc.). This differs from Linux and macOS, which mount file systems to directories.
juicefs mount -d redis://your-redis-host:6379/0 X:
For security, to avoid entering passwords in plain text, you can store sensitive information in environment variables. When mounting the file system or enabling S3 Gateway, the client will automatically read from these variables.
Common environment variables for JuiceFS on Windows:
| Variable Name | Description |
|---|---|
META_PASSWORD | Metadata engine password |
MINIO_ROOT_USER | S3 Gateway Access Key |
MINIO_ROOT_PASSWORD | S3 Gateway Secret Key |
Set these variables directly in the command line:
set META_PASSWORD=your_password
set MINIO_ROOT_USER=your_access_key
set MINIO_ROOT_PASSWORD=your_secret_key
Note: This method only works for the current session. Once the window is closed, the variables are lost and need to be reset.
To automatically load these variables every time Windows starts, set them as system environment variables:
Open System Environment Variable Settings
Win + S, search for and open "Edit the system environment variables".Create System-Level Environment Variable
META_PASSWORDVerify Environment Variable
Reopen the terminal and try mounting the file system without specifying the password. If successful, the environment variable is effective.
There are several ways to enable auto-mount on startup in Windows. This section introduces the method using "Task Scheduler".
Open "Task Scheduler" and click "Create Task".
In the "General" tab, set the task name (e.g., JuiceFS_AutoMount) and check "Run with highest privileges".
Switch to the "Triggers" tab, click "New", and select "At system startup" as the trigger.
Switch to the "Actions" tab, click "New", and fill in:
C:\juicefs\juicefs.exe).In the "Conditions" tab, check "Start only if the network connection is available" to ensure the mount operation runs when the network is ready.
Click "OK" to save the task.
Notes: