Start command
supertokens start [dev | production] [options]
Start an instance of SuperTokens for development or production use. By default the process will be started as a daemon.
Starting in a development environment
supertokens start dev [options]
- You can start an unlimited number of parallel instances in this mode.
Starting in a production environment
supertokens start production [options]
- You can start an unlimited number of parallel instances in this mode as long as you have a non-expired Pro or Pro trial license key.
- To know about the date of expiration of your license key, please visit your SuperTokens dashboard.
Options
--with-space
- Sets the amount of space, in MB, to allocate to the JVM.
- Example:
supertokens start dev --with-space=200
allocates 200MB for the JVM.
--with-config
- Specify the location of the config file to load. Can be either relative or absolute.
- Example:
supertokens start dev --with-config=/usr/config.yaml
--port
- Sets the port on which this instance of SuperTokens should run.
- Example:
supertokens start dev --port=8080
--host
- Sets the host on which this instance of SuperTokens should run.
- Example:
supertokens start dev --host=192.168.0.1
--foreground
- Runs this instance of SuperTokens in the foreground (not as a daemon).
- Example:
supertokens start dev --foreground
--help
- Help for this command.
- Example:
supertokens start --help