Reflex Cloud - Fast, secure & scalable hosting. One command to deploy.

Reflex Cloud - Additional Concepts

To go back, i.e. from an app to a project or from a project to your list of projects you just click the REFLEX logo in the top left corner of the page.

Environment Variables

Below is an example of how to use an environment variable file. You can pass the --envfile flag with the path to the env file. For example:

In this example the path to the file is .env.

If you prefer to pass the environment variables manually below is deployment command example:

They are passed after the --env flag as key value pairs.

To pass multiple environment variables, you can repeat the --env tag. i.e. reflex deploy --project f88b1574-f101-####-####-5f########## --env KEY1=VALUE1 --env KEY2=VALUE. The --envfile flag will override any envs set manually.

Adding Team Members

If you are a User you have the ability to create, deploy and delete apps, but you do not have the power to add or delete users from that project. You must be an Admin for that.

As an Admin you will see the an Add user button in the top right of the screen, as shown in the image below. Clicking on this will allow you to add a user to the project. You will need to enter the email address of the user you wish to add.

Adding team members to Reflex Cloud

Tokens

A token gives someone else all the permissions you have as a User or an Admin. They can run any Reflex Cloud command from the CLI as if they are you using the --token flag. A good use case would be for GitHub actions (you store this token in the secrets).

Tokens are found on the Project List page. If you cannot find it click the Reflex Logo in the top left side of the page until it appears as in the image below.

Adding tokens to Reflex Cloud

VMTypes

To get all the possible VMTypes you can run the following command:

To set which VMType to use when deploying your app you can pass the --vmtype flag with the id of the VMType. For example:

This will deploy your app with the c2m4 VMType, giving your app 2 cpu cores and 4 gb of ram.

Below is a table of all the possible VMTypes:

idnamecpu (cores)ram (gb)
c1m.5Single CPU Small10.512
c1m1Single CPU Medium11.024
c1m2Single CPU Large12.048
c2m.5Double CPU Micro20.512
c2m1Double CPU Small21.024
c2m2Double CPU Medium22.048
c2m4Double CPU Large24.096
c4m1Quad CPU Micro41.024
c4m2Quad CPU Small42.048
c4m4Quad CPU Medium44.096
c4m8Quad CPU Large48.192

Regions

Below is an example of how to deploy your app in several regions:

By default all apps are deloyed in sjc if no other regions are given. If you wish to deploy in another region or several regions you can pass the --region flag (-r also works) with the region code. Check out all the regions that we can deploy to below:

Region CodeRegion
amsAmsterdam, Netherlands
arnStockholm, Sweden
altAtlanta, Georgia (US)
bogBogotá, Colombia
bomMumbai, India
bosBoston, Massachusetts (US)
cdgParis, France
denDenver, Colorado (US)
dfwDallas, Texas (US)
ewrSecaucus, NJ (US)
ezeEzeiza, Argentina
fraFrankfurt, Germany
gdlGuadalajara, Mexico
gigRio de Janeiro, Brazil
gruSao Paulo, Brazil
hkgHong Kong, Hong Kong
iadAshburn, Virginia (US)
jnbJohannesburg, South Africa
laxLos Angeles, California (US)
lhrLondon, United Kingdom
madMadrid, Spain
miaMiami, Florida (US)
nrtTokyo, Japan
ordChicago, Illinois (US)
otpBucharest, Romania
phxPhoenix, Arizona (US)
qroQuerétaro, Mexico
sclSantiago, Chile
seaSeattle, Washington (US)
sinSingapore, Singapore
sjcSan Jose, California (US)
sydSydney, Australia
wawWarsaw, Poland
yulMontreal, Canada
yyzToronto, Canada