Preface
This guide tells you how to use the Helix Command-Line Client (p4
). If
you’re new to version management systems, you don’t know basic Helix concepts,
or you’ve never used Helix before, read Introducing Helix before reading this guide.
This guide assumes a good basic understanding of version control.
Perforce provides many applications that enable you to manage your files, including the Helix Command-Line Client, GUIs — such as P4V — and plug-ins. The Helix Command-Line Client enables you to script and to perform administrative tasks that are not supported by Helix GUIs.
Getting started with Helix
If this is your first time working with Helix, here’s how to get started:
-
Read Introducing Helix to learn the basics.
At a minimum, learn the following concepts: changelist, depot, client workspace, sync, and submit. For short definitions, refer to the glossary at the back of this guide.
-
Ask your Helix administrator for the host and port for your Helix service.
If you intend to experiment with Helix and don’t want to risk damaging your production depot, ask the Helix administrator to start another service for test purposes. For details about installing the Helix service, refer to the Helix Versioning Engine Administrator Guide: Fundamentals.
- Use this guide to help you install the Helix Command-Line Client and configure your client workspace, unless your system administrator has already configured your machine. See “Configuring P4”, for details.
-
Learn to perform the following tasks:
- sync (transfer selected files from the repository to your computer)
- submit (transfer changed files from your workspace to the repository)
- revert (discard changes)
See “Managing Files and Changelists”, for details.
- Learn to refine your client view. See Refining workspace views for details.
These basic skills enable you to do much of your daily work. Other tasks
involving code base maintenance (streams, branching and labeling) and workflow
(jobs) tend to be less frequently done. This guide includes details about
performing these tasks using p4
commands.
What’s new in this guide for 2015.2
This section provides a list of changes to this guide for the Helix Versioning Engine 2015.2 release. For a list of all new functionality and major bug fixes in Helix Versioning Engine 2015.2, see the Helix Versioning Engine 2015.2 Release Notes.
Streams are now documented in their own chapter |
See “Streams”. |
Pass label specifier in stream’s import path |
You can now pass a label specifier in an import path for a stream. See The stream specification. |
Store streams more than one level below depot name |
Stream path depths are no longer limited to 1. Your administrator sets the
permitted level for a depot using the |
|
By default, |
Pass changelist to |
You can now set the workspace view to match the version of a stream as of a
specified changelist and sync the files to the versions matching that same
changelist, by passing |
Stream specs openable and submittable |
Stream specifications may now be opened and submitted, enabling them to be staged on a particular client and tested before being submitted atomically in a changelist along with a set of files. See Updating streams. |
|
When you run |
|
When you run |
|
When you run |
Update client’s have list to match workspace contents |
A user can now update their client’s have list to match what’s in the client
workspace, using the |
Helix now supports the UTF8 file type |
See Helix File Types. |
Report ignore mappings |
Helix can now report the ignore mappings computed from the rules in the
|
Helix documentation
The following table lists and describes key documents for Helix users, developers, and administrators. For complete information see the following:
http://www.perforce.com/documentation
For specific information about… | See this documentation… |
---|---|
Introduction to version control concepts and workflows; Helix architecture, and related products. |
|
Using the command-line interface to perform software version management and codeline management; working with Helix streams; jobs, reporting, scripting, and more. |
|
Basic workflows using P4V, the cross-platform Helix desktop client. |
|
Working with personal and shared servers and understanding the distributed versioning features of the Helix Versioning engine. |
|
|
P4 Command Reference, |
Installing and administering the Helix versioning engine, including user management, security settings. |
|
Installing and configuring Helix servers (proxies, replicas, and edge servers) in a distributed environment. |
Helix Versioning Engine Administrator Guide: Multi-site Deployment |
Installing and administering a Helix server cluster for high performance and automated failover. |
Helix Versioning Engine Administrator Guide: Cluster Management |
Helix plug-ins and integrations. |
IDEs: Using IDE Plug-ins |
Developing custom Helix applications using the Helix C/C++ API. |
|
Working with Helix in Ruby, Perl, Python, and PHP. |
Syntax conventions
Helix documentation uses the following syntax conventions to describe command line syntax.
Notation | Meaning |
---|---|
|
Monospace font indicates a word or other notation that must be used in the command exactly as shown. |
italics |
Italics indicate a parameter for which you must supply specific information. For example, for a serverid parameter, you must supply the id of the server. |
[ |
Square brackets indicate that the enclosed elements are optional. Omit the brackets when you compose the command. Elements that are not bracketed are required. |
… |
Ellipses (…) indicate that the preceding element can be repeated as often as needed. |
element1 | element2 |
A vertical bar ( | ) indicates that either element1 or element2 is required. |
Please give us feedback
We are interested in receiving opinions on this manual from our users. In particular, we’d like to hear from users who have never used Perforce before. Does this guide teach the topic well? Please let us know what you think; we can be reached at [email protected].
If you need assistance, or wish to provide feedback about any of our products, contact [email protected].