--profile is easy to
forget. A repository workspace binding lets bare commands such as ams status, ams messages, and
agent integrations select the right saved profile automatically.
The CLI finds the Git repository root even when a command runs from a nested directory. The binding
selects an existing machine profile; it does not authenticate the computer, create a credential, or
copy a credential into the repository.
Repository workspace binding is available in AMS CLI 0.1.14 and newer. Run
ams --version to
check the installed version.Set up a repository
1
Authenticate each workspace once
Give every workspace a memorable local profile name. Browser authorization binds each profile
to the workspace you select.Existing profiles continue to work; there is no need to log in again merely to add a repository
binding.
2
Bind the repository
From anywhere inside the Git repository, name the intended profile and its workspace slug or
UUID:
workspace use verifies that the profile belongs to the requested workspace before writing the
binding. If exactly one saved profile belongs to that workspace, you can omit --profile:3
Verify the selection
Run a bare status command and check both the selected profile and its source:A bound repository reports
Profile source: repository followed by the path to
.ams/workspace.json.Use bare commands from nested directories
Once the binding exists, the same profile is selected throughout the repository:Selection precedence
AMS selects a profile in this order:What the repository stores
The generated.ams/workspace.json contains only selectors and non-secret metadata:
Change or repair a binding
Runworkspace use again with an explicit profile: