Skip to content

Deploy Your First App

This guide walks you through deploying your first application with brdz from start to finish.

  • brdz CLI installed (Installation Guide)
  • A static website or application to deploy
  • Basic command-line knowledge

Build your application and ensure it’s ready for deployment:

Terminal window
# Example: Build a React app
npm run build
# Example: Build a static site
npm run generate
# Verify the output directory exists
ls dist/ # or public/, build/, etc.

Create a ZIP archive of your application:

Terminal window
# Navigate to your build output
cd dist/
# Create the ZIP file
zip -r ../release.zip .
# Go back to project root
cd ..
# Verify the ZIP was created
ls -lh release.zip

If you haven’t already, create a brdz account:

Terminal window
brdz accounts:create

Follow the prompts to enter your details.

Login to get your API key:

Terminal window
brdz auth:login

Enter your credentials when prompted. Your API key will be stored in ~/.brdz/credentials.

Create a project to organize your apps:

Terminal window
brdz projects:create my-first-project

Choose a descriptive project slug that represents your work.

Set your newly created project as the current context:

Terminal window
brdz ctx:use

Select your project from the interactive list.

Create an application within your project:

Terminal window
brdz apps:create my-first-app

Choose a meaningful app name.

Update your context to include the app:

Terminal window
brdz ctx:use

Select your app from the list.

Upload your release:

Terminal window
brdz releases:create release.zip

Your application is now deployed! The release will be automatically activated.

Check that your release was created:

Terminal window
brdz releases:list

You should see your release with an “active” status.

Terminal window
brdz hostnames:create example.com

See the Custom Domains Guide for DNS configuration.

Terminal window
# Make changes to your application
# Rebuild
npm run build
# Package
cd dist && zip -r ../release-v2.zip . && cd ..
# Deploy
brdz releases:create release-v2.zip
Terminal window
# List releases
brdz releases:list
# Rollback to previous release
brdz releases:rollback <previous-release-id>

If the upload fails:

  • Check your network connection
  • Verify the ZIP file isn’t corrupted: unzip -t release.zip
  • Ensure you’re authenticated: cat ~/.brdz/credentials

If commands fail with “no project in context”:

Terminal window
# Verify context
brdz ctx:get
# Reset context
brdz ctx:use

If you get authentication errors:

Terminal window
# Re-authenticate
brdz auth:login

Here’s a complete workflow from start to finish:

Terminal window
# Install brdz
brew tap boardsofmusic/brdz
brew install brdz
# Setup
brdz accounts:create
brdz auth:login
# Create project and app
brdz projects:create my-website
brdz ctx:use # Select project
brdz apps:create web
brdz ctx:use # Select app
# Build and deploy
npm run build
cd dist && zip -r ../release.zip . && cd ..
brdz releases:create release.zip
# Add custom domain
brdz hostnames:create www.example.com
# Done!
echo "Application deployed successfully!"