Commands
Ce contenu n’est pas encore disponible dans votre langue.
CV Wonder CLI provides a set of commands that can be used to perform various tasks related to generating and managing CVs.
Main command
Section titled “Main command”The main command is cvwonder, which can be used with various subcommands and options.
The command can be run from the command line interface (CLI) and provides a simple and intuitive way to generate CVs.
Subcommands
Section titled “Subcommands”Generate
Section titled “Generate”The generate subcommand is used to generate a CV based on the input file and the specified options.
It can be used with various options to customize the output format, theme, and other settings.
The command can be run as follows:
cvwonder generate [OPTIONS]Options: --validate, --concurrency, --port and --config, in addition to the global --input, --output, --theme and --format. See Options for the full list.
Output:
CV Wonder v1.0.0 › Input cv.yml › Output generated/ › Theme default › Format pdf
✓ Parsed cv.yml 3ms✓ Rendered pdf 1.9s
Done in 1.9s generated/cv.html generated/cv.pdf
Next: cvwonder serve --watchOn an interactive terminal the title is styled with a gradient and the summary adds an emoji and clickable file links. With redirected output, NO_COLOR or CI, the same text is printed without any decoration (see Interactive and plain output).
--config flag:
The --config flag overrides individual keys from the configuration: block declared in theme.yaml. It can be repeated to set multiple keys.
Syntax: --config "key=value" or --config "parent.child=value" (dot-notation for nested keys).
Values are automatically coerced: "true" / "false" become booleans, plain integers become numbers, everything else stays a string.
Examples:
# Override a top-level boolean keycvwonder generate --config "displayName=false"
# Override a nested key using dot-notationcvwonder generate --config "person.anonymisation=true"
# Multiple overridescvwonder generate --config "displayName=true" --config "person.anonymisation=false"CLI overrides are deep-merged on top of the defaults from theme.yaml: sibling keys are preserved, only the specified leaf is replaced.
The init subcommand creates a new CV YAML file: a fully commented scaffold by default, or a guided wizard with --interactive.
cvwonder init [--interactive [--resume]] [--output-file cv.yml]It refuses to overwrite an existing file, except when resuming an interrupted wizard. See Write your CV.
The serve subcommand is used to start a local server for serving the generated CV.
It can be used with various options to customize the server settings, such as the port and whether to open the browser automatically.
The command can be run as follows:
cvwonder serve [OPTIONS]Options: --watch, --browser, --port and --config, in addition to the global options. See Options.
The --config flag works identically to the generate command — see the Generate section above for full details and examples.
Validate
Section titled “Validate”The validate subcommand is used to validate a CV YAML file against the schema.
It checks for syntax errors, missing required fields, and provides helpful suggestions.
The command can be run as follows:
cvwonder validate [OPTIONS]Aliases: val, valid
This command validates your CV file and provides detailed feedback including:
- Line numbers for errors
- Contextual suggestions
- Warnings for optional but recommended fields
Example output:
✓ Validation passed! Your CV YAML file is valid.Or with errors:
✗ Validation failed! Please fix the following errors:
Error 1: Line: 15 Field: person.email Issue: Does not match format 'email' Suggestion: Email should be in format: user@example.comValidate Show Schema
Section titled “Validate Show Schema”The validate show-schema subcommand displays the JSON schema used for validation.
cvwonder validate show-schema [OPTIONS]Aliases: schema, show
Options:
--info: Show schema information summary--prettyor-p: Pretty-print the JSON schema
Examples:
Show schema information:
cvwonder validate show-schema --infoShow pretty-printed JSON schema:
cvwonder validate show-schema --prettyShow raw JSON schema:
cvwonder validate show-schemaUsing aliases:
cvwonder validate schema --infocvwonder validate show --prettyThemes
Section titled “Themes”The themes subcommand manages themes.
cvwonder themes [SUBCOMMAND] [OPTIONS]Aliases: theme, t
Subcommands:
list(l): list the installed themesinstall <url>(d): install a theme from a GitHub repository, with--forceto discard local changescreate(c): create a new theme, named with--nameverify <theme>(v): check the integrity of a themescreenshot <theme>(ss): generatepreview.pngfor a theme
Examples:
List installed themes:
cvwonder theme listInstall a public theme:
cvwonder theme install https://github.com/germainlefebvre4/cvwonder-theme-defaultInstall a private theme:
# Option 1: Using GitHub CLI (recommended - automatic if authenticated)gh auth logincvwonder theme install https://github.com/your-org/your-private-theme
# Option 2: Using GITHUB_TOKEN environment variableexport GITHUB_TOKEN="ghp_your_personal_access_token"cvwonder theme install https://github.com/your-org/your-private-theme
# Option 3: Using GH_TOKEN environment variableexport GH_TOKEN="ghp_your_personal_access_token"cvwonder theme install https://github.com/your-org/your-private-themeVerify authentication with debug logging:
cvwonder theme install https://github.com/your-org/your-private-theme --log-level debugCreate a new theme:
cvwonder themes create --name "My Theme" # creates themes/my-theme/Check a theme for integrity and missing files:
cvwonder themes verify defaultGenerate a preview screenshot for a theme:
cvwonder themes screenshot my-themeAuthentication:
When installing themes from private GitHub repositories, CVWonder supports multiple authentication methods with automatic detection:
Priority Order:
- GitHub CLI (
gh) - Automatically uses your authenticated session GITHUB_TOKEN- Environment variable with personal access tokenGH_TOKEN- Alternative environment variable for GitHub token- Unauthenticated - For public repositories only
Quick Setup:
# GitHub CLI (recommended)gh auth login
# Or use environment variableexport GITHUB_TOKEN="ghp_your_personal_access_token"Debugging Authentication:
Enable debug logging (--log-level debug) to see which authentication method is being used:
cvwonder theme install <url> --log-level debugSee the Theme Installation documentation for detailed authentication setup and troubleshooting.
Version
Section titled “Version”The version subcommand is used to display the version of the CV Wonder CLI.
It can be run as follows:
cvwonder versionThis command does not require any options and will display the current version of the CLI.