Syntax conventions

Helix Core documentation uses the following conventions for command-line syntax.

Notation Meaning

Example of Syntax and Command

literal

Must be used in the command exactly as shown.

p4 revert -So
p4 revert -So

italics

A parameter for which you must supply specific information.

p4 user -d username

p4 user -d msmith

-a -b or --a --b

Both elements are required.

p4 renameuser --from=old --to=new

p4 rename msmith mjones

[-a -b]

Any combination of the enclosed elements is allowed and none of the elements are required. Omit the brackets when you compose the command.

p4 delete  [-n -k -v]  file ... 
p4 delete readme.txt

[-a | -b]

Exactly one of the enclosed elements is allowed and none of the elements are required. Omit the brackets when you compose the command.

p4  group [-a | -A] groupname
p4 group admins

{-a | -b}

Exactly one of the enclosed elements is required. Omit the curly braces when you compose the command.

p4 bgtask {-e command | -t triggerName}
          p4 bgtask -t fileSizeCheckTrigger
        

...

Previous argument can be repeated.

... has a different meaning for directories. See Wildcards.

p4 [g-opts] streamlog [ -l -L -t -m max ] stream1 ...
p4 streamlog //project1/s1 //project1/s2

Specification forms

Field names within a form are delimited from the value for the field using a colon (:) character.

Form field values and indentation

When working with commands that create specs, such as p4 client, p4 server, and p4 depot follow this pattern:

Description:
  Created by maria

where any lines under the field name are indented. For example,

DistributedConfig:
  P4TARGET=host7:1234
  track=1