Environment Variables
Environment variables for NEMAR CLI configuration.
Authentication
Section titled “Authentication”| Variable | Description |
|---|---|
NEMAR_API_KEY | An API key to use with nemar auth login, as an alternative to --key. Read only by nemar auth login; no other command consults it, so a script or CI job must run login once before anything else. |
NEMAR_NO_BROWSER | Set to 1 to never try opening a local browser during nemar auth login/nemar auth signup. Same effect as --no-open; useful on a headless host where attempting to open a browser is pointless rather than merely unnecessary. |
General
Section titled “General”| Variable | Description |
|---|---|
NEMAR_CONFIG_DIR | Overrides the config directory (default ~/.config/nemar). See Configuration. |
NEMAR_DEBUG | Set to 1 to write a diagnostic log for the run, same as --debug. Redacts credentials before anything is written; attach the log to a bug report. |
NEMAR_NO_UPDATE_CHECK | Set to 1 to disable the npm-registry check for a newer CLI version. |
Usage Examples
Section titled “Usage Examples”Signing in with a pasted key
Section titled “Signing in with a pasted key”export NEMAR_API_KEY=nemar_your_key_herenemar auth loginnemar auth login validates the key with the backend and stores it; every other command then reads it from the config file, not from the environment.
In Scripts
Section titled “In Scripts”#!/bin/bashexport NEMAR_API_KEY=nemar_your_key_herenemar auth loginnemar dataset upload ./dataWith dotenv
Section titled “With dotenv”Create a .env file (don’t commit this!):
NEMAR_API_KEY=nemar_your_key_hereThen:
source .envnemar auth loginnemar auth statusCI/CD Usage
Section titled “CI/CD Usage”Mint a key for the runner first, from a machine that can sign in:
nemar auth keys create ci-runnerStore the printed key as a secret, then sign in with it before any other command in the job:
GitHub Actions
Section titled “GitHub Actions”jobs: upload: steps: - name: Sign in env: NEMAR_API_KEY: ${{ secrets.NEMAR_API_KEY }} run: nemar auth login --key "$NEMAR_API_KEY" - name: Upload dataset run: nemar dataset upload ./dataLeave the runner’s key alone rather than logging out at the end of the job:
nemar auth logout on a runner clears the credential locally, and a pasted key is not revoked by default (it may be shared with other machines);
revoke it deliberately with nemar auth keys revoke when the runner is retired.