Portal:Toolforge/Tool Accounts
< Portal:Toolforge
Overview
If you want to create a tool or collaborate with others to create and maintain tools, you'll need to create a Tool Account.
This page will help you understand what a Tool Account is, the first steps to create a Tool Account/tool, and how to add and remove maintainers.
See Toolforge quickstart to set up and get started with Toolforge!
What is a Tool Account?
The Tool Account is a group account associated with a tool. The Tool Account can have one or more maintainers. You'll create a separate Tool Account for each new tool you develop on Toolforge, and you'll join an existing Tool Account when you're invited to work on or maintain the tool. A note about terms: Tool Accounts and tools are sometimes used interchangeably throughout Toolforge documentation.
Each Tool Account includes:
Maintainers
People who have access to a Tool Account are called maintainers. Maintainers have access to the Tool Account's code and data.
Maintainers can:
Join an existing Tool Account
All Tool Accounts hosted in Toolforge are listed on the tools list.
Contact the maintainer to join an existing Tool Account.
Add or remove maintainers
To add or remove maintainers, use the 'manage maitainers' link found beneath the tool name on the Toolforge home page.
Create tools with Tool Accounts
Members of the ‘tools’ project can create tool accounts using toolsadmin:
  1. Go to https://toolsadmin.wikimedia.org/tools/
  2. Click the "Create new tool" link at the bottom of the "Your tools" sidebar
  3. Follow the instructions in the Tool Account creation form
  4. Once the Tool Account is created, log off, then back in before you can access the new tool account
Name a Tool Account/tool
The Tool Account and tool will have the same name. This name will be included in the URL for the final Web service. Make sure the name is appropriate and is spelled correctly.
Note: Do not prefix the tool name with tools.. This will cause problems during account creation.
Rename a Tool Account/tool
Tools can't be renamed. You can create a new tool with a new name and copy the code over from the old tool.
Switch to / become a Tool Account
maintainer@tools-login:~$ become <TOOL NAME> tools.toolname@tools-login:~$
Manage files in Toolforge
Transfer files
You can use scp (or PuTTY) to copy files from your computer to Toolforge. To make files available to a tool account, copy or move them from your home directory to the tool's home directly:
yourshellaccountname@tools-login:~$ cp somefile ~tools.toolaccount/
Note that the tool account will have to take ownership of the file before it can use it, see below.
Take ownership of files
The take command allows you to change ownership of the file(s) and directories to the calling tool user.
The permissions of the file(s) before take is run must include the tool user as either the owner or group. This prevents take from being abused to take over arbitrary files.
To take ownership of files as your tool account:
1. become your Tool Account:
yourshellaccountname@tools-login:~$ become toolaccount tools.toolaccount@tools-login:~$
2. As your Tool Account, take ownership of the files:
tools.toolaccount@tools-login:~$ take FILE
Add a description to your Tool Account/Tool
Each tool can provide a description by creating a toolinfo record using https://toolsadmin.wikimedia.org/tools/​.
The legacy $HOME/.description system is deprecated and will stop providing any benefit at some point in the future.
Delete a Tool Account
Tracked in Phabricator
Task T170355
Maintainers can not delete Tool Accounts. You can delete the content of your directories and make an existing tool inaccessible by shutting down the Web service (webservice stop).
If you want to permanently delete a Tool Account, please follow the steps described at Toolforge (Tools to be deleted). It may take some time for the Tool Account to be deleted.
Troubleshoot a Tool Account
$ become <TOOL NAME> become: no such tool '<TOOL NAME>'
$ become <TOOL NAME> You are not a member of the group tools.<TOOL NAME>.Any existing member of the tool's group can add you to that.
If you are already logged in via SSH when you create a new tool, log out, and log in again to activate your new permissions.
Backup Toolforge data
There are no user-accessible backups in Toolforge.
You should use a source or version control tool to preserve your code and make regular backups of data. Learn more.
See also
Communication and support
We communicate and provide support through several primary channels. Please reach out with questions and to join the conversation.
Communicate with us
ConnectBest for
Phabricator Workboard#Cloud-ServicesTask tracking and bug reporting
IRC Channel#wikimedia-cloud​connect
Telegram bridge
mattermost bridge
General discussion and support
Mailing Listcloud@Information about ongoing initiatives, general discussion and support
Announcement emailscloud-announce@Information about critical changes (all messages mirrored to cloud@)
News wiki pageNewsInformation about major near-term plans
Cloud Services BlogClouds & UnicornsLearning more details about some of our work
Wikimedia Technical Blogtechblog.wikimedia.orgNews and stories from the Wikimedia technical movement
Last edited on 23 March 2021, at 13:55
Wikitech
Content is available under CC BY-SA 3.0 unless otherwise noted.
Privacy policy
Terms of Use
Desktop
HomeRandomLog inSettingsDonateAbout WikitechDisclaimers
WatchEdit