Skip to content

Chapters

Chapter commands manage the chapter structure of your novel.
Alias: ch

CommandAliasDescription
addadAdd a new chapter
listliList all chapters
namenaSet a chapter name
clear-namecnRemove a chapter name
movemoMove a chapter to a new position
removermRemove a chapter by index

nib chapter add

Add a new chapter.

Synopsis

nib chapter add [--name <name>] [--at <position>]

Flags

FlagDescription
--nameSet the chapter title
--atInsert at a specific position (shifts existing chapters down)

The chapter is added to book.yaml automatically.

Examples

# Add a chapter at the end
$ nib ch ad --name "The Beginning"

# Insert a chapter at position 3
$ nib chapter add --name "Interlude" --at 3

nib chapter list

List all chapters with their scene counts.

Synopsis

nib chapter list

nib chapter name

Set a chapter name.

Synopsis

nib chapter name <index> <name>

Examples

# Name chapter 3
$ nib ch na 3 "The Turning Point"

nib chapter clear-name

Remove a chapter name.

Synopsis

nib chapter clear-name <index>

nib chapter move

Move a chapter to a new position.

Synopsis

nib chapter move <from> <to>

Examples

# Move chapter 5 to position 2
$ nib ch mo 5 2

nib chapter remove

Remove a chapter from book.yaml.

Synopsis

nib chapter remove <index>

Examples

# Remove chapter 3
$ nib ch rm 3
Scene files are not deleted when you remove a chapter. They stay in the scenes/ directory and can be reassigned later.