Create Bruno Environment
create_environmentCreate a Bruno collection environment file with variables (supports secret flags). Refuses to overwrite an existing environment unless overwrite: true.
Instructions
Create an environment file for a Bruno collection. Writes the WHOLE file, so it REFUSES a name that already exists rather than overwriting it — the error names the existing variables and says which ones a replace would delete, so you can choose between merging with update_environment, picking another name, and retrying with overwrite: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| overwrite | No | Replace an environment that already exists. Without this an existing name is refused. Keys in the file that this tool does not model are preserved either way. | |
| variables | Yes | Either a flat name-to-value map, or a list of variable objects when you need flags. Use the list form to declare a secret at create time: a secret variable is stored as a name only (no format persists a secret's value), so `value` is dropped for it. | |
| collectionPath | Yes | Absolute path to existing collection directory. |