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
| Flag | Description | Required |
|---|---|---|
-o, --org <slug> | Organization slug | Yes |
-p, --project <slug> | Project slug | Yes |
-e, --env <slug> | Default environment slug | No |
--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.