Authentication
NEMAR uses API key authentication with an admin approval workflow.
Workflow Overview
Section titled “Workflow Overview”- Sign up - Create an account with your details
- Verify email - Click the link in the verification email
- Wait for approval - Admin reviews your request
- Retrieve API key - Use
nemar auth retrieve-keywith your email and password - Log in - Use your API key to authenticate
Creating an Account
Section titled “Creating an Account”nemar auth signupYou’ll be prompted for:
| Field | Description |
|---|---|
| Username | 3-30 characters, alphanumeric with - and _ |
| Valid email for verification | |
| Password | Minimum 12 characters |
| GitHub Username | Required for PR collaboration |
| ORCID iD | Optional, used for DOI creator metadata |
| Description | Why you need NEMAR access (min 20 chars) |
Logging In
Section titled “Logging In”Interactive
Section titled “Interactive”nemar auth loginWith API Key
Section titled “With API Key”nemar auth login -k nemar_your_api_key_hereEnvironment Variable
Section titled “Environment Variable”export NEMAR_API_KEY=nemar_your_api_key_herenemar auth loginCheck Status
Section titled “Check Status”# View cached credentialsnemar auth status
# Refresh from servernemar auth status --refreshLog Out
Section titled “Log Out”# Remove the active accountnemar auth logout
# Remove all stored accountsnemar auth logout --allSwitch Accounts
Section titled “Switch Accounts”If you have multiple NEMAR accounts:
# Interactive account pickernemar auth switch
# Switch to a specific accountnemar auth switch <username>Resend Verification Email
Section titled “Resend Verification Email”If you didn’t receive the verification email:
nemar auth resend-verificationSecurity Notes
Section titled “Security Notes”Your API key is linked to:
- Your GitHub Personal Access Token (for repository operations)
- Your S3 credentials (for data upload/download)
If you suspect your key is compromised, regenerate it immediately:
nemar auth regenerate-keyThis sends a verification email and revokes the old key upon confirmation.