Skip to main content

Login

pragma auth login
Opens your browser for authentication.

Check Status

pragma auth whoami

Logout

pragma auth logout

Contexts

Contexts allow you to switch between different Pragmatiks environments—for example, development and production—each with its own API endpoint and credentials. Each context stores:
  • API URL - The endpoint for that environment
  • Authentication token - Your credentials for that environment
This is useful when you need to work with multiple deployments or test against a local development server.
You can override the current context for a single command using the --context / -c flag, or set the PRAGMA_CONTEXT environment variable.

List Contexts

pragma config get-contexts

Switch Context

pragma config use-context production

Create Context

pragma config set-context staging --api-url <url>

Delete Context

pragma config delete-context staging

Next Steps

Resources

Start managing resources.