Skip to main content

envshed init

Create a .envshed.json project config in the current directory.

Usage

envshed init -o <org> -p <project> [-e <env>] [--api-url <url>]

Options

FlagDescriptionRequired
-o, --org <slug>Organization slugYes
-p, --project <slug>Project slugYes
-e, --env <slug>Default environment slugNo
--api-url <url>API URL (for local development)No

Examples

# Basic setup
envshed init -o my-org -p my-project -e development

# With custom API URL for local dev
envshed init -o my-org -p my-project -e development --api-url http://localhost:3000

This creates a .envshed.json file:

{
"org": "my-org",
"project": "my-project",
"defaultEnv": "development"
}

If the file already exists, the command will abort. Delete it first to reinitialize.