bazable.config.json file with your project name (from package.json) and an empty endpoints list.
Usage
Options
This command takes no options.
What it does
Looks for apackage.json in the current directory and reads its name field to set the contract’s projectName. If no package.json is found, it defaults to "unknown-project".
Writes a new bazable.config.json with the following structure:
endpoints object starts empty. Populate it with bazable extract, bazable add, or bazable import.
Safety checks
Ifbazable.config.json already exists, the command refuses to overwrite it and prints a warning:
This prevents accidental loss of your contract.
Prerequisites
- Your project should be a valid Node.js project with a
package.json(optional, but recommended). - The current directory should be the root of your frontend or backend project.