---
title: "s.command-name"
description: "## Syntax **s.command-name**   ## Purpose The s.command-name annotation is used to tag a span element as being the name of a software command. This is used to tag mentions of the command name within a sentence. ## Examples The…"
url: "https://www.stilo.com/docs/migrate/book/s-command-name/"
updated: "2023-12-18"
category: Annotations / Book, Map and Bookmap
tags:
  - Annotations
---

# s.command-name

## Syntax

**s.command-name**

 

## Purpose

The s.command-name annotation is used to tag a span element as being the name of a software command. This is used to tag mentions of the command name within a sentence.

## Examples

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

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

 

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

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

The following is the DITA XML output for the rule:

<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>
