Overview
Thedex init command creates a new entry through an interactive wizard (when running in a TTY) or a non-interactive seeded flow (when using --from flag).
Usage
Arguments
slug(optional): The entry slug. If not provided, it will be generated from the title.
Flags
Skip additional prompts for faster entry creation
Preview changes without writing files
Create entry in current directory instead of entries subdirectory
Open the generated HTML file in default browser after creation
Path to custom HTML template fileDefault: Uses canonical template or
./entry-template/index.htmlOutput directory for entry
Path to JSON seed file for non-interactive initEnables non-TTY mode with pre-populated data
Catalog Link Flags
Catalog linking modeOptions:
create-linked, attach-existing, offPath to catalog file
Initial catalog entry statusOptions:
draft, active, archivedCatalog entry ID to link
Catalog entry href to link
Lookup number for catalog entry (e.g., “LOOKUP-0001”)
Season identifier (e.g., “S1”, “S2”)
Performer name for catalog entry
Instrument for catalog entry
Behavior
Interactive Mode (TTY)
When running in a terminal with TTY support:- Prompts for entry title and slug
- Collects performer name and instruments
- Prompts for lookup number
- Accepts video URL or raw embed HTML
- Collects description text
- Selects series and available buckets
- Configures attribution and credits
- Generates empty manifest skeleton
Non-Interactive Mode
When--from flag is provided or running in non-TTY environment:
- Reads all data from JSON seed file
- Requires
video.dataUrlin seed file - Automatically generates slug from title if not provided
- Creates entry without user interaction
Examples
Basic Interactive Init
Non-Interactive Init with Seed File
Custom Template and Output
Dry Run
Output
The command creates an entry folder with the following files:index.html- Generated HTML pageentry.json- Entry metadata and configurationdescription.txt- Plain text descriptionmanifest.json- Download manifest for audio/video files
Output Example
Related Commands
dex update
Edit an existing entry
dex doctor
Scan entries for issues
dex entry audit
Audit entry integrity
dex view
Preview entries locally
Notes
- The init wizard requires a TTY. Use
--fromfor CI/CD pipelines. - Slugs are automatically deduplicated if they already exist.
- The template must contain required injection markers (validated automatically).
- Generated HTML is sanitized and verified for security.