retype start.
Be sure to review the project configuration options available within the retype.yml file — it unlocks more power, flexibility, and customization.
--help option can be passed with any command to get additional details. For example, retype start --help returns all options for the retype start command.
The command retype --version returns the current version number of your Retype install.
Usage synopsis
retype start
The retype start command is the easiest way to get your project built and running in a browser within seconds.
retype start also watches for file changes and automatically updates the website in your browser with the updated page. It automatically opens the default browser on your machine and loads the website. You can suppress this with --no-open or its alias -n.
--debounce <ms>. This is useful when multiple file save events might happen in quick succession.
Options
Rebuild delay in milliseconds. Useful when multiple file save events occur in rapid succession.
Your Retype license key. Keys can also be stored in the wallet so they do not need to be passed on every command.
Custom host name or IP address for the local web server.
Private page password used to unlock password-protected pages during the local preview.
Custom TCP port for the local web server.
Enable Retype Pro preview mode.
Prevent the default web browser from being opened automatically when the server starts.
Enable verbose logging output.
Watch for API changes in addition to content changes.
retype init
The retype init command stubs out a basic retype.yml configuration file with a few initial values.
From your command line, navigate to any folder that has one or more Markdown .md files (such as the root of a GitHub project) and run:
retype.yml
retype init will not overwrite it.
To change the project title, update the branding.title config:
The retype.yml file is not strictly required, but it is how custom configurations are passed to Retype. See the project configuration docs for a full list of all options.
Options
JSON configuration object that overrides Retype config values. See
--override for full details and examples.Enable verbose logging output.
retype build
The retype build command generates a static website from your .md files.
output location defined in retype.yml. By default, the output location is a folder named .retype.
You can customize the input and output paths in retype.yml:
Options
Custom path to the output directory, overriding the value set in retype.yml.
Your Retype license key. The key is not stored in the wallet when passed here — it must be passed with each call to
retype build. Use retype wallet --add to store it persistently.Private page password used to unlock password-protected pages during the build.
JSON configuration object that overrides project config values. See
--override for full details and examples.[PRO] Return a non-zero exit code if the build had errors or warnings. Useful in CI pipelines.
Watch for file changes and rebuild automatically.
Enable verbose logging output.
Watch for API changes in addition to content changes.
retype serve
The retype serve command starts a local development web server and hosts your pre-built static website.
Options
Custom host name or IP address for the local web server.
Custom TCP port for the local web server.
Live reload open browsers when a change in the project output is detected.
Enable verbose logging output.
retype clean
The retype clean command deletes the Retype-managed files from the output folder.
Files you manually add (or that another process adds) to the output folder are not removed by retype clean.
Including --dry triggers a dry run and lists the files that would be deleted without actually deleting anything.
Options
List the files and directories that would be deleted without actually deleting them.
Enable verbose logging output.
retype stop
The retype stop command stops the Retype web server for the current project.
--list to review the available servers:
--id, --index, or --port. Use retype stop --list first to discover available id and index values.
--all to stop all running Retype web servers at once:
Options
List all running Retype web servers, including servers that may not be stoppable.
Stop all running Retype web servers.
Stop a specific Retype web server by its id. Use
--list to find the id.Stop a specific Retype web server by its index. Use
--list to find the index.Stop a specific Retype web server by its port number.
Enable verbose logging output.
retype wallet
The retype wallet command manages Retype license keys. Keys are stored in an encrypted wallet file called license.dat.
To add a key to your wallet:
retype build.
You can also configure a
RETYPE_KEY environment variable as an alternative to using the wallet. See the environment variables docs.Options
Add a key to the wallet. The key is stored persistently and used for all future builds.
Remove a specific key from the wallet.
List all keys currently stored in the wallet.
Clear all keys from the wallet.
retype --override
The --override option is supported by the retype build and retype init commands. It allows you to dynamically modify retype.yml project configurations at build time without maintaining multiple config files.
The option accepts an escaped JSON object. Retype merges the retype.yml configuration with the provided JSON object — values in the JSON override take precedence over retype.yml values.
The
--override JSON object may contain duplicate keys, which are processed sequentially. Last in wins.Basic config
Given this retype.yml:retype.yml
https://beta.retype.com:
Nested config
Given this retype.yml:retype.yml
label to beta without modifying the file:
branding, pass null:
Add to list
Given this retype.yml:retype.yml
links list:
Remove config
Passingnull as a value removes the corresponding configuration entirely. The following builds the website as though url was never configured:
