Configurations

Streamlio configuration describes the connection profile to Streamlio Cloud. This section describes how to manage the operations on configurations.

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 streamlio config

Create a configuration

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 s.iamatokenfor authentication.

streamlio config create staging \
--address=https://staging.xyz.cloud.streamlio.com --token=s.iamatoken

Delete a configuration

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.

List all configurations

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.com
prod https://prod.xyz.cloud.streamlio.com
* staging https://staging.xyz.cloud.streamlio.com

The character * indicates that the active current configuration.

Update a 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

Use a configuration as current active configuration

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.