Last updated 3 months ago

How to install Wiki.js on your server


Make sure you have read the prerequisites page to ensure your server meets the minimum requirements.


Linux / macOS

Create an empty folder where Wiki.js should be installed.

From this folder, in a command prompt, run the following command:

curl -sSo- | bash

Wiki.js will be installed in the current directory.

From a PowerShell prompt, run the following command:

iex ((New-Object System.Net.WebClient).DownloadString(''))

You'll be prompted where Wiki.js should be installed. The destination folder will be created automatically if it doesn't exist.

Execution Policy

Your powershell execution policy must be set to Bypass to allow this script to run: Set-ExecutionPolicy Bypass


Once the installation is completed, you'll be prompted to run the configuration wizard.

To start the configuration wizard manually, run the command node wiki configure. To use a custom port, use the following command: node wiki configure 1234 where 1234 is the custom port.

Using your web browser, navigate to http://localhost:3000/ (replace localhost with the IP of your server / custom port if applicable) and follow the on-screen instructions.

All settings entered during the configuration wizard are saved in the file config.yml. See the Configuration File guide for all the possible options you can use.

Run Wiki.js

The configuration wizard will automatically start Wiki.js for you.

To start Wiki.js manually, in a command prompt, run the following command: node wiki start - If using a Powershell prompt (default on Windows 10), you can instead use the .\wiki start command. - Wait for the command to complete. This can take several seconds. - Browse to your Wiki from your browser. You should see the Wiki.js welcome screen.

Wiki.js runs as a background process, using pm2 as its process manager.