---
sidebar_position: 1
title: PRINT_MD_TOKEN pragma
description: Retrieve your MotherDuck authentication token.
---
# PRINT_MD_TOKEN pragma

You can retrieve your MotherDuck authentication token using the `PRINT_MD_TOKEN` pragma.

In CLI or Python, to avoid having to re-authenticate every time, you can store your token as an environment variable; for example, by running `export motherduck_token='xxxx'` in the terminal. Be sure to replace 'xxxx' with your own token!  

# Syntax

```sql
PRAGMA PRINT_MD_TOKEN;
```

