> For the complete documentation index, see [llms.txt](https://knowledge.illumina.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledge.illumina.com/software/basespace-cli/software-basespace-cli-reference_material-list/000008347.md).

# How to authenticate BaseSpace CLI to workgroup

When typing `bs auth`, the program creates a default configuration that will be used each time the "bs" command is used. This configuration can be used with a personal workgroup, a professional workgroup, or an enterprise workgroup.

To set either a professional or enterprise workgroup as default configuration, log into the desired domain and/or workgroup prior to pasting the link into the browser. The `bs auth --force` command may be needed if the user has already authenticated the personal account. This command overwrites the current config and set the workgroup as default config. Copy the URL generated and paste into a browser, then accept the authentication request.

![](/files/TClSYjgAxRQnVeLaOUAF)

To keep the default config and create a separate config for a workgroup or vice versa, use the -c {configname} option to generate a separate configuration file. This allows the use of two or more configuration files without needed to reauthenticate each time a different BaseSpace User context is needed. Then when running commands, they also must include the config flag, such as:

bs -c {configname} upload\
bs -c {configname} whoami

![](/files/gW2YMwGzdLnnId18xcjW)\
![](/files/8dEjrpIxVTzbjlorhdwB)

For further information, see the [CLI overview](https://developer.basespace.illumina.com/docs/content/documentation/cli/cli-overview#authenticate) page.

\
\
\ <br>

|                                                                                                                                                                                                                                                                                                                                                                 |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| *For any feedback or questions regarding this article (Illumina Knowledge Article #8347), contact Illumina Technical Support* [*techsupport@illumina.com*](mailto:techsupport@illumina.com?subject=Question%2FFeedback%20Regarding%20Illumina%20Knowledge%20Article%20#000008347%20-%20Software%20\&body=Dear%20Illumina%20Technical%20Support,%0D%0A%0D%0A)*.* |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://knowledge.illumina.com/software/basespace-cli/software-basespace-cli-reference_material-list/000008347.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
