Managing several environments
All your React Native Ramp application can be configured with several environments at the same time, to help you during your development, QA, pre production, and production phases.
Environments and targeting
Each one can be accessed throught its EnvironmentId
and will manage all the different native versions you will be targeting while releasing updates throught the Ramp CLI.
Every bundle you release will thus be associated with :
- An application, throught its
ApplicationId
, - An environment, throught its
EnvironmentId
, - A targeted version number
target
, representing the native application version you want to make an update on.
Example of release command that release a React Native Ramp update on the 1.2.3
native version of a beta
environment:
ramp-cli release ${platform}
--app ${ApplicationId}
--env "beta"
--target "1.2.3"
...other parameters...
Configuration
Every environment needs to have its own API keys configured :
An API key for the Ramp SDK : This could be done from the API key tab of your application environment, available at the React Native Ramp applications page.
An API key for the Ramp CLI : This could be done in 2 differents ways :
- Automatically from the CLI by logging into it while adding a key. You can learn more about this procedure API keys documentation page.
- Also from the API key tab of your application environment, available at the React Native Ramp applications page.