Getting Started
Quick start
The fastest way to start is with npx:
npx code2cast initThis launches an interactive wizard that walks you through project setup.
Installation
If you prefer a global install:
npm install -g code2castOr with your package manager of choice:
npm install -g code2castpnpm add -g code2castyarn global add code2castInitialise a project
Run the init command in your project directory:
cd my-project
code2cast initThe wizard will ask you for:
- Project name -- used as the podcast series title
- Description -- a short summary of what the project does
- Theme -- the tone of the podcast (casual, technical, entertaining, or executive)
- Duration -- target episode length in minutes
This creates .code2cast/config.json in your project root.
Non-interactive mode
For CI pipelines or AI agents, skip the wizard:
code2cast init --yes --name "My Project" --theme technicalAdd --json for machine-readable output:
code2cast init --json --yes --name "My Project"Authenticate with the platform
To publish episodes to code2cast.com, connect the CLI:
code2cast auth loginThis opens your browser where you can create an API key. For CI/CD or non-interactive use:
code2cast auth login --api-key c2c_your_key_hereCheck your authentication status:
code2cast statusCreate a podcast
Before publishing episodes, create a podcast to hold them:
code2cast podcast create --name "My Podcast" --repo owner/repoYou can also specify a custom slug, description, and visibility:
code2cast podcast create \
--name "My Podcast" \
--slug my-podcast \
--repo owner/repo \
--description "A podcast about my project" \
--visibility publicList your podcasts:
code2cast podcast listGenerate, voice, and publish
With a project initialised and a podcast created, the full workflow is:
# 1. Generate a podcast script from your codebase
code2cast generate
# 2. Synthesize audio from the script
code2cast voice
# 3. Preview locally before publishing
code2cast preview
# 4. Publish to the platform
code2cast publish --podcast my-podcastEach step saves output to .code2cast/output/episode-N/:
.code2cast/output/episode-1/
script.json # Generated dialogue
audio.mp3 # Synthesized audio
metadata.json # Generation provenanceManage your podcasts
All podcast operations are available via the CLI:
# List podcasts
code2cast podcast list
# Delete a podcast (requires --confirm)
code2cast podcast delete --slug my-podcast --confirmYou can also manage podcasts, episodes, images, and settings from the web dashboard at code2cast.com/dashboard.
Next steps
- Follow the Your First Episode tutorial for a detailed walkthrough
- Browse the CLI Reference for all available commands
- Read about Configuration options