CLI Configuration
Use the LangStream CLI to manage your control plane, deploy applications, and interact with an application's gateway.
For LangStream CLI commands, see CLI Commands.
To install the CLI, see Installation.
Langstream profiles
LangStream profiles replace the langstream configure
option, which is now deprecated.
Profiles are created by users to interact with different LangStream environments. For example, you could have a "local" profile to test your application locally, and a "stage" profile to deploy your changes to a shared development space.
The default LangStream profile values for a local deployment are:
To create a new profile for a staging environment and set it as the current LangStream profile, use:
To update these values in the "staging" profile, use langstream profiles update staging --command-option="value"
.
Command Option | Description |
---|---|
--set-current | Set this profile as current |
--web-service-url | webServiceUrl of the profile |
--api-gateway-url | apiGatewayUrl of the profile |
--tenant | tenant of the profile |
--token | token of the profile |
Instead of manually setting values, you can use langstream import
to create a new CLI profile from a JSON file.
To update this file:
The existing LangStream configuration file is OVERWRITTEN, not MERGED.
For more profile commands, see Profiles.
Multi tenancy
LangStream is multi-tenant. You can create multiple tenants and deploy applications to them. Each tenant has its own control plane and API gateway. When you first install LangStream, a default tenant is created for you. You can use this tenant or create a new one. This works well if you are running LangStream locally, but if you are running LangStream in a cluster, you will need to create a new tenant.
The CLI is able to handle multiple profiles, and each profile defines:
the tenant
the control plane URL
the API gateway URL
the credentials to connect to the control plane (currently there is support for a token, that can be a JWT or OAuth2 token, depending on the authentication method used by the control plane)
These commands will help you manage your profiles and the tenant you are currenly using:
All the other commands always refer to the current tenant configured in the current profile.
Last updated