airstrings_init
Bind a directory to an AirStrings project and create .airstrings/config.json, enabling other AirStrings tools. Run this first in repositories without an .airstrings workspace.
Instructions
Bind a directory to an AirStrings project; call this first in a repo with no .airstrings workspace, before any other airstrings_* tool. Writes .airstrings/config.json and stores the key in the workspace. Credentials: api_key, else AIRSTRINGS_ORG_API_KEY, AIRSTRINGS_API_KEY, else the stored login. With none it returns status "pending" and verification_uri_complete: show the user that URL, and once they approve call init again with the same arguments. With an org key it creates a project named after the folder (or name) unless project names an existing one. Returns the project, whether it was created, the active environment, all environments and sections. Use airstrings_login instead only to store an org login without binding a directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Directory to initialize (absolute or relative). Defaults to the current working directory. | |
| org | No | Organization ID (org_…) to bind to when the login has several. Uses the stored login for that org, or starts one. | |
| name | No | Name for a project created with an org key. Defaults to the folder or repository name. Ignored when project is set. | |
| api_key | No | Project key (as_proj_…), org key (as_org_…) or legacy environment key. Optional: overrides the env vars and stored login. | |
| project | No | Existing project ID (proj_…) or name to bind instead of creating one. Needs an org key or org login. | |
| base_url | No | API base URL. Defaults to https://api.airstrings.com; only set it for self-hosted or test servers. |