1.0.11 • Published 11 months ago
@mermaider/cli v1.0.11
Mermaider CLI
Installation
npm install -g @mermaider/cli
# or
yarn global add @mermaider/cli
# or
pnpm add -g @mermaider/cliUsage
Note: You will need an ANTHROPIC_API_KEY environment variable set to use the CLI.
mermaider parse ./path/to/file.tsThis will generate a .mmd file and a .svg file in the same directory as the file.
If you want to pass your API key to the CLI for a single run you can run the command like so:
ANTHROPIC_API_KEY=your-api-key mermaider parse ./path/to/file.tsContributing
Please see the contributing guide for more information.