Skip to Content
DocumentationAPI ReferenceByteMason CLI Reference

ByteMason CLI Reference

Introduction

This reference provides a complete list of ByteMason CLI commands, categorized for ease of use. ByteMason automates full-stack application development, database management, and maintenance tasks using AI.


Core Commands

mason new

Creates a new ByteMason project by cloning a boilerplate with foundational logic already set up.

mason new <project-name>

Note: From here all the following commands must be run inside the created project directory.

mason plan

Uses AI to analyze your prompt and create a detailed project specification.

mason plan <prompt> # Must be run in the created project root directory

This will create a specifications.json file in spec directory containing all the instructions and project structures needed to build the project.


Database Commands

mason db setup

Configures Supabase and generates database migrations. You will be required to enter your Supabase credentials.

mason db setup <spec-path>

mason db push

Applies the generated database migrations to Supabase.

mason db push

Code Generation Commands

mason code

Creates frontend and backend code based on the specifications in spec/specifications.json file.

mason code <spec-path>

Maintenance Commands

mason repair

Automatically detects and fixes compilation errors. This command runs automatically after mason code, but you can run it manually if issues persist.

mason repair
Last updated on