Environment Variable

An environment variable is a in-memory key/value pair that developers use to store configuration details about their app.

Environment variables are excellent places to store sensitive information (such as API keys), or information that needs to be globally accessible from anywhere in the app, (such as version numbers or hardcoded paths).

In addition to letting you define and encrypt environment variables directly in the user interface, App Platform also provides a number of environment variables that you can refer to in your code for things like your database connection details, the hash for your last git commit, and your service’s public routable path.

With Paperspace, secrets can be created at the following levels:

  • Team: secrets are applied to all projects
  • Gradient Project: secrets are applied to all Workflows with a project

Environment Variable Articles

Generate an API key to use the Paperspace Core API, then install the Paperspace CLI and the Node.js or Go client libraries for additional functionality.
Install the Gradient CLI and SDK on Windows, MacOS, or Linux to launch Notebooks, Workflows, and Deployments programmatically using Python.
How to install the Paperspace Command Line Interface.