>>> create_repo("lysandre/test-dataset", repo_type="dataset")
'https://huggingface.co/datasets/lysandre/test-dataset'
```  
When you create a repository, you can set your repository visibility with the `private` parameter.  
```py
>>> from huggingface_hub import create_repo
>>> create_repo("lysandre/test-private", private=True)
```  
If you want to change the repository visibility at a later time, you can use the [`update_repo_visibility`] function.  
<Tip>