Artifactory Setup
Configure access to JFrog Artifactory for your development environment.
Get Your Credentials
- Log in to your organization's Artifactory instance
- Click your username (top right) and select Edit Profile
- In the Identity Tokens section, click Generate
- Copy and save your identity token securely
Set Environment Variables
Store your credentials as environment variables for use by package managers.
- Windows
- macOS
- Linux
[System.Environment]::SetEnvironmentVariable("ARTIFACTORY_USERNAME", "your_email@example.com", "User")
[System.Environment]::SetEnvironmentVariable("ARTIFACTORY_IDENTITY_TOKEN", "your_identity_token", "User")
Restart your terminal for changes to take effect.
Add to ~/.zshrc:
export ARTIFACTORY_USERNAME="your_email@example.com"
export ARTIFACTORY_IDENTITY_TOKEN="your_identity_token"
Reload your shell:
source ~/.zshrc
Add to ~/.bashrc:
export ARTIFACTORY_USERNAME="your_email@example.com"
export ARTIFACTORY_IDENTITY_TOKEN="your_identity_token"
Reload your shell:
source ~/.bashrc
Next Steps
Configure your package managers to use Artifactory:
- npm - Node.js packages
- Maven - Java dependencies
- pip - Python packages
- NuGet - .NET packages
- Cargo - Rust crates