> For the complete documentation index, see [llms.txt](https://docs.flxbl.io/flxbl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flxbl.io/flxbl/sfp/cli-reference-v51-release-v3/server/repository.md).

# Repository

Configure repository authentication

* [`sfp server repository auth-token`](#sfp-server-repository-auth-token)
* [`sfp server repository npmrc`](#sfp-server-repository-npmrc)

## `sfp server repository auth-token`

Generate an authentication token for a specific repository (requires application token)

```
USAGE
  $ sfp server repository auth-token -r <value> [--json] [-e <value>] [-t <value>] [--sfp-server-url <value>] [-g <value>...]
    [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -e, --email=<value>               Email address for authenticated user. Ignored if --application-token is provided.
                                    Can be set via SFP_SERVER_USER env var.
  -g, --logsgroupsymbol=<value>...  Symbol used by CICD platform to group/collapse logs in the console. Provide an
                                    opening group, and an optional closing group symbol.
  -r, --repository=<value>          (required) Repository identifier in format owner/repo (GitHub/GitLab) or
                                    org/project/repo (Azure DevOps). Repository must be registered as a project.
  -t, --application-token=<value>   Application token for CI/CD authentication. Can be set via SFP_SERVER_TOKEN env var
                                    (CLI flags take precedence over env vars).
      --loglevel=<option>           [default: info] logging level for this command invocation
                                    <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
      --sfp-server-url=<value>      URL of the SFP server. Can be set via SFP_SERVER_URL env var or config: sfp
                                    config:set server-url

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Generate an authentication token for a specific repository (requires application token)

EXAMPLES
  $ sfp server repository auth-token --repository flxbl-io/sf-core --application-token YOUR_APP_TOKEN

  $ sfp server repository auth-token -r flxbl-io/sf-core --application-token YOUR_APP_TOKEN --json
```

*See code:* [*src/commands/server/repository/auth-token.ts*](https://source.flxbl.io/flxbl/sfp-pro)

## `sfp server repository npmrc`

Get npmrc configuration for a repository. Returns authenticated .npmrc file content for npm package registry access. Supports GitHub Packages (via integration), JFrog Artifactory, GitLab Package Registry, and custom npm registries.

```
USAGE
  $ sfp server repository npmrc -r <value> [--json] [-e <value>] [-t <value>] [--sfp-server-url <value>] [-s <value>]

FLAGS
  -e, --email=<value>              Email address for authenticated user. Ignored if --application-token is provided. Can
                                   be set via SFP_SERVER_USER env var.
  -r, --repository=<value>         (required) Repository identifier in format owner/repo (GitHub/GitLab) or
                                   org/project/repo (Azure DevOps)
  -s, --scope=<value>              NPM scope (without @ symbol). If not provided, inferred from repository owner or
                                   integration config.
  -t, --application-token=<value>  Application token for CI/CD authentication. Can be set via SFP_SERVER_TOKEN env var
                                   (CLI flags take precedence over env vars).
      --sfp-server-url=<value>     URL of the SFP server. Can be set via SFP_SERVER_URL env var or config: sfp
                                   config:set server-url

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Get npmrc configuration for a repository. Returns authenticated .npmrc file content for npm package registry access.
  Supports GitHub Packages (via integration), JFrog Artifactory, GitLab Package Registry, and custom npm registries.

EXAMPLES
  $ sfp server repository npmrc --repository flxbl-io/sf-core --scope flxbl-io --application-token YOUR_APP_TOKEN

  $ sfp server repository npmrc -r flxbl-io/sf-core --application-token YOUR_APP_TOKEN
```

*See code:* [*src/commands/server/repository/npmrc.ts*](https://source.flxbl.io/flxbl/sfp-pro)


---

# 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://docs.flxbl.io/flxbl/sfp/cli-reference-v51-release-v3/server/repository.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.
