harness.yaml, which the CLI builds and deploys as a runtime. The whole loop revolves around that one file — initialize, configure, deploy, invoke, then return to configuration to iterate.
Configure AK/SK credentials first, or obtain short-lived STS credentials through SSO login.
harness deploy requires control-plane credentials; harness invoke uses control-plane credentials to resolve the Runtime and can pass an additional user token for custom_jwt Runtimes. See the Authentication section of the Quickstart.1
Initialize the harness
Create a harness directory containing
harness.yaml and .env.example.2
Configure the agent
Write fields with
harness set. Only the flags you pass are modified, so you can build up the configuration across several calls.3
Build and deploy
Build the image in the cloud from
harness.yaml and create or update the runtime.4
Invoke the runtime
Call the runtime you just deployed by name. The CLI resolves the endpoint and authentication automatically, using configured AK/SK credentials or valid STS credentials from the active SSO login profile.
5
Iterate
Change the configuration and redeploy to publish a new version; when the runtime misbehaves, read the instance logs to diagnose it.