Skip to content
Browse documentation

Getting started

Get started with Bulgur

Create a Cloud project and run your application with its secrets.

Create a project

Bulgur Cloud keeps your application's configuration in one place and makes it available to the tools and environments you choose. Create an account, then choose an organization and project.

Start in the directory of an existing application. The CLI links that directory to a Bulgur project by creating bulgur.json, which contains names and slugs, not secret values.

sh
cd ~/projects/my-app
npx bulgur init

Init signs you in on the terminal and prompts you to select or create a project and choose an environment. You can import application values from .env; keep Bulgur credentials such as BULGUR_TOKEN and BULGUR_DSN private.

Run with secrets

For a Node app with an existing dev script, accept init's offer to add the CLI as a devDependency and wrap the script. Then start the app with your package manager's normal development command; the wrapper fetches secrets for it.

Other existing project scripts are left alone unless init explicitly offers them (Expo's start script is also wrapped). If there is no supported script to wrap, use bulgur run for a command you choose.

  • Commit bulgur.json, package.json, and the updated lockfile; they contain project setup, not secret values.
  • Keep credential files such as .env out of source control. Teammates install dependencies, sign in once, and run the same dev command.
  • Use bulgur pull only when a tool needs a file; choose a separate output path so you do not overwrite local credentials.
sh
pnpm dev
# Or: npm run dev, yarn dev, or bun run dev

Choose how to deliver values

Use the CLI for local commands and builds, the Node SDK for applications that fetch values at runtime, or an integration when a platform should hold a synchronized copy. These approaches have different trust and update behavior.