Dead Development skull logo Dead Development

Installation

Use a Bash terminal. Windows CMD and PowerShell can have trouble with nested JSON.

// install the latest version

npm i -g deadlibrary-cli

// login using your Username and Password

dead login

// try a help command

dead g "c -h"

Syntax

If you've used Angular CLI or similar tools, DeadLibrary CLI will feel familiar. Commands are parsed and sent to the DeadLibrary API, which returns generated code.

You can write commands using JSON syntax or use the --ai option to write in natural language. The AI parser doesn't generate code. It converts your input into a valid command, then that command generates the code.

// Help for dead (entire CLI package)

dead -h

// List all commands for dead g

dead g "dd -h"

// Get the input shape for a command

dead g "generateCard --help"
dead g "c -h"

// Write a command

dead g "c -n dead-card -t outlined -c \"class-1 class-2\" --content {\"els\":[{...}]} --language angular-20"

// Invoke the --ai option

dead g --ai c "named dead-card; boilerplate out a card with header, content, and actions."

Syntax checklist:

  • Subscribe to DeadLibrary to generate code with DeadLibrary CLI.
  • Use a Bash terminal, or use --ai if you want to skip manual syntax.
  • Wrap the entire g payload in double quotes, not single quotes.
  • Escape special characters with \.
  • Use commander flag syntax for options (-n or --name).
  • Wrap strings containing spaces in escaped quotes: \"...\".
  • Wrap object and array properties in escaped quotes:\"...\".
  • Don't wrap top-level arrays or objects in escaped quotes.