USER ALERT: CDDIS has undergone a migration from cddis.nasa.gov to earthdata.nasa.gov, effective June 2025. Most of the links will now go to a new web page on the Earthdata website. CDDIS has also migrated our FAQ from cddis.nasa.gov to forum.earthdata.nasa.gov, effective May 2025. For more information, please see the following web page (https://cddis.nasa.gov/Web_Unification.html)

close window
CDDIS Archive Access: .netrc instructions

In order for cURL to use those credentials you will need to create a .netrc file.

To create a .netrc file, you will need to create a text file with the name .netrc; this file needs to have read permissions set to only yourself, so that no one can read your file and get your username and password. The format of the file is:

machine urs.earthdata.nasa.gov login <username> password <password>

where <username> and <password> are the values you set when you created your Earthdata login account.