Command aliases
A small set of
commands have predefined aliases. For example, you can use p4
integ
for p4 integrate
, or you can use
p4 changes
for p4 changelists
.
You can also define your own aliases for commands, and these can range
from simple word substitutions to what might be called light
scripting.
There are many reasons for creating command aliases: you want to use commands in a language other than English, you want to use commands that are familiar to you from other version control systems, you want to use different defaults, you want to streamline system administration, or you want to use different output formats.
This section covers the following topics:
- The process of creating an alias
- Basic syntax of alias definitions
- Simple and complex alias definitions
- How you put it all together
- Advanced topics
- Limitations
Command aliases can only be used by command line clients. Aliases do not work with the derived clients, APIs, or GUIs. Because aliasing is a client-side feature, you can use a command alias with any server, proxy, broker, or replica configuration. However, the particular commands you can run still depend on the server to which you are issuing the commands.
Also in this section: