Copyright © Xerox Corporation, Codendi Team, 2001-2006. All Rights Reserved

Chapter 3. Module functions and parameters

3.1 Core functions

These functions do not act over a specific module. They are the following:

3.1.1 login

login: Log in to the server

  • --username: Specifies the name of the user you'll be working with. The username is the one you usually use in the Tuleap login page.

  • --password: Specifies the password to login with. If none is provided, you will be asked for one interactively.

  • --host: Specifies the host where your Tuleap server (as well as the soap server) is installed (optional).

  • --proxy: Specifies the proxy if needed. Use is --host=proxy_host:proxy_port

  • --project: UNIX name of the project you plan working on. If you don't specify this, any future function call will require you to specify the project in which the function will be applied.

[ounis@linux tuleap-cli]$ ./tuleap.php login --username=john --password=johnpass --project=myproject
+---------+----------------------------------+
| user_id |           session_hash           |
+---------+----------------------------------+
| 103     | de6bb9f64e0ad45a0a0209f112f774f7 |
+---------+----------------------------------+
Logged in.
(OR)
[ounis@linux tuleap-cli]$ ./tuleap.php login --username=marc --project=myproject
Password:
+---------+----------------------------------+
| user_id |           session_hash           |
+---------+----------------------------------+
| 103     | de6bb9f64e0ad45a0a0209f112f774f7 |
+---------+----------------------------------+
Logged in.
                        

Example 2. login command

3.1.2 logout

logout: End a session. This removes all the information of the session from your computer.

[mnazaria@linux tuleap-cli]$ ./tuleap.php logout
Session terminated.
                        

Example 3. logout command

3.1.3 myprojects

myprojects : Display the list of the projects the user is member of.

[ounis@linux tuleap-cli]$ ./tuleap.php myprojects
+----------+------------+-----------------+-------------+
| group_id | group_name | unix_group_name | description |
+----------+------------+-----------------+-------------+
| 104      | project 1  | project1        | project1    |
| 105      | project 2  | project2        | project2    |
| 106      | project 3  | project3        | project3    |
| 107      | project 4  | project4        | project4    |
+----------+------------+-----------------+-------------+
                        

Example 4. myprojects command


Copyright © Xerox Corporation, Codendi Team, 2001-2006. All Rights Reserved