This page covers the basic steps to getting started with Toolforge.
For more information and links to developer/maintainer documentation visit the Toolforge Portal.
Terms and conditions
If you are an Account Holder planning to use WMCS resources and products, you must read and agree to the following:
- Code of Conduct for technical spaces
- Agreement to disclosure of personally identifiable information (which covers End-Users).
- Toolforge tools must be open source software licensed under an OSI approved license.
Getting started with Toolforge - Quickstart
- Create a Wikimedia developer account.
- Create an SSH key and add it to your Wikitech account.
- Submit a Toolforge membership request and wait for its approval.
- Your request will be reviewed, and you will receive confirmation within a week. You will be notified through your Wikitech user account.
- Once you are added as a Toolforge member, you must log out and then log in again at https://toolsadmin.wikimedia.org/
- Doing this is required for your membership to take effect.
- Create a new tool or join an existing Tool account.
- Learn about managing files in Toolforge.
Run new tool - Quickstart
This example creates a simple PHP tool.
1. Log in to
firstname.lastname@example.org via ssh. To access Toolforge without using the command line, see the guide to using PuTTY and WinSCP.
2. Use the
become command to access your tool's
/data/project/MY_TOOL directory. This is your tool's $HOME.
3. Create your tool's code/html root directory.
4. Create your tool's code.
echo '<html><head></head><body>Hello world!<?php ?></body></html>' > public_html/index.php
5. Start the tool.
webservice php7.4 start
6. Navigate to https://MY_TOOL.toolforge.org/ in your web browser to see your tool running.
For more details about this (and other kinds of tools), see Help:Toolforge/Web and Help:Toolforge/How to. For troubleshooting, see Help:Troubleshooting Toolforge.
Manage existing tool - Quickstart
When you log in to login.toolforge.org (via ssh) and call
"become MY_TOOL", you get in the
/data/project/MY_TOOL directory. This is your tool's $HOME. Then you can:
- Edit tool software and config files usually present in:
$HOME/www/js, etc. For editing you can use console text editors (vi, edit, mcedit, etc.), use a version control tool like Git, or you can download, edit, or upload files using the SCP/SFTP protocol.
- Check if the tool is running, its type (php/python/js/java/etc.) and selected backend (kubernetes) using command:
- Stop the tool:
- Start the tool again:
webservice --backend=kubernetes TYPE_OF_YOUR_TOOL start
- SSH to the tool's container:
webservice --backend=kubernetes TYPE_OF_YOUR_TOOL shell
Communication and support
Support and administration of the WMCS resources is provided by the Wikimedia Foundation Cloud Services team and Wikimedia Movement volunteers. Please reach out with questions and join the conversation:
- Chat in real time in the IRC channel #wikimedia-cloud connect, the bridged Telegram group, or the bridged Mattermost channel
- Discuss via email after you subscribed to the cloud@ mailing list