---
title: "p.command-name"
description: "## Syntax **p.command-name**   ## Purpose The p.command-name annotation is used to tag an element as being the name of a software command. ## Examples The following is an example of a time where you might want to use the…"
url: "https://www.stilo.com/docs/migrate/book/p-command-name/"
updated: "2023-12-18"
category: Annotations / Book, Map and Bookmap
tags:
  - Annotations
---

# p.command-name

## Syntax

**p.command-name**

 

## Purpose

The p.command-name annotation is used to tag an element as being the name of a software command.

## Examples

The following is an example of a time where you might want to use the annotations

![](https://www.stilo.com/wp-content/uploads/2023/10/stilo-dita-xml-annotation-p.command-name0.png)

 

The following is an example of a rule that will apply the annotation

![](https://www.stilo.com/wp-content/uploads/2023/10/stilo-dita-xml-annotation-p.command-name1.png)

The following is the DITA XML output for the rule:

<cmdname>cn</cmdname>

<p>The <cmdname>cn</cmdname> command is used to create a new file. By default, this will create a new file with the following file path:</p>
