The Buttondown CLI supports various command-line options that can be used with any command. All options have both long form (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/buttondown/cli/llms.txt
Use this file to discover all available pages before exploring further.
--option) and short form (-o) variants.
Global Options
These options can be used with any command:Your Buttondown API key. If not provided, the CLI will use the stored credentials from Note: For security, it’s recommended to use
buttondown login.Short form: -kExample:buttondown login to store your API key rather than passing it on the command line.The base URL for the Buttondown API. This is useful for testing or if you’re using a custom Buttondown instance.Short form:
-bExample:The directory where Buttondown content will be stored or read from. This determines where emails and media are synced.Short form: Note: The directory will be created automatically if it doesn’t exist.
-dExample:Force the operation without confirmation prompts. Useful for automation and scripts.Short form:
-fExample:Enable verbose output for debugging purposes. Shows detailed information about what the CLI is doing.Short form:
-vExample:Command-Specific Options
Create Command
The title for the new email draft. This is required when using the
create command.Short form: -tExample:Login Command
Thelogin command accepts the --api-key option to provide your API key directly:
Help and Version
Display help information about available commands and options.Short form:
-hExample:Display the current version of the Buttondown CLI.Example:
Configuration File
The CLI stores your API key and other credentials in a configuration file managed by the conf package. This file is stored in your system’s standard configuration directory:- macOS:
~/Library/Preferences/buttondown-cli-nodejs/ - Linux:
~/.config/buttondown-cli-nodejs/ - Windows:
%APPDATA%\buttondown-cli-nodejs\
apiKey: Your Buttondown API key (set viabuttondown login)baseUrl: The API base URL (optional)username: Your Buttondown username (optional)