To roll back to a previous deployment, deploy the old HiveLang source:
# List recent deploymentscurl https://api.bothive.cloud/v1/bots/{bot_id}/deployments \ -H "Authorization: Bearer bh_sk_xxxxxxxxx"# Roll back by redeploying a previous version's HiveLangcurl -X POST https://api.bothive.cloud/v1/bots/{bot_id}/deployments/{deployment_id}/rollback \ -H "Authorization: Bearer bh_sk_xxxxxxxxx"
Environment variables
Pass secrets and config your HiveLang bot needs at runtime:
Reference them in HiveLang with env.VARIABLE_NAME.
Never hardcode API keys or secrets directly in your HiveLang source. Always use environment variables so secrets don’t appear in deployment logs or version history.