A Streamlio configuration represents a connection profile to Streamlio Cloud. A user might have multiple configurations - one for
development, another for
staging and another for
production. Each configuration consists of a service end point and authorization associated with it. Even though the user can have multiple configurations, only one can be active at any given time. The user can switch from one configuration to another configuration and make it active. You can run configuration commands using
A user can create a configuration using the following command
streamlio config create NAME
As a part of creating configuration, you need to provide the streamlio service end point and also the token used for authentication. For example, if you want to create a config named
staging with the streamlio service end point
https://staging.xyz.cloud.streamlio.com and with the token
streamlio config create staging \--address=https://staging.xyz.cloud.streamlio.com --token=s.iamatoken
The user can delete a configuration when it is not required using the command
streamlio config delete NAME
For example, if you want to delete the config named 'dev'', issue the following command
streamlio config delete dev
If the config is currently active, you cannot delete it. You need to switch to another config before deleting the config.
At any given time, the user can have multiple configurations. The user might be interested in listing all the configurations. One can list the configuration using the following command
streamlio config list
The output will list the configs and the associated streamlio service endpoint address. A sample output is shown below:
dev https://dev.xyz.cloud.streamlio.comprod https://prod.xyz.cloud.streamlio.com* staging https://staging.xyz.cloud.streamlio.com
* indicates that the active current configuration.
An user can update any associated information of a configuration using the following command
streamlio config update NAME
For example, if you want to update the token for a config named
prod to the new token
s.iamanewtoken do the following
streamlio config update prod --token=s.iamanewtoken
A user can change the active configuration from one to another using the following command.
streamlio config use NAME
If an user wants to change the active configuration to
stagingthe command will be as follows:
streamlio config use staging
_____ Copyright 2019 Streamlio, Inc. Apache, Apache BookKeeper, Apache Pulsar and associated open source project names are trademarks of the Apache Software Foundation.