Skip to main content

title: ‘Development’ description: ‘Preview and deploy your Discord bots with Cytric.nl’
Cytric.nl makes it easy to develop, preview, and deploy Discord bots. Use our dashboard and CLI tools to manage your bots efficiently.
Follow these steps to develop and preview your Discord bot before deploying:
1

Install the Cytric CLI

npm i -g Cytric-cli
2

Preview your bot locally

Navigate to your bot directory and run:
Cytric preview
Your bot will run locally, and you can test its features before deploying.

Custom ports

By default, Cytric uses port 3000 for local previews. You can customize the port with the --port flag:
Cytric preview --port 3333
If the port is in use, Cytric will automatically select the next available port.

CLI Updates

Keep your CLI up to date for the latest features:
npm update -g Cytric-cli

Validating bot configuration

Check your bot’s configuration and environment variables:
Cytric validate

Deployment

Deploy your bot to Cytric.nl with a single command:
Cytric deploy
Monitor deployment status and logs in your dashboard.

Code formatting

Troubleshooting

This may be due to an outdated version of node. Try the following:
  1. Remove the currently-installed version of the CLI: npm remove -g mint
  2. Upgrade to Node v19 or higher.
  3. Reinstall the CLI: npm i -g mint
Solution: Go to the root of your device and delete the ~/.mintlify folder. Then run mint dev again.
Curious about what changed in the latest CLI version? Check out the CLI changelog.