Skip to content
Ona Docs

GetDotfilesConfiguration

client.users.dotfiles.get(DotfileGetParams { empty } body, RequestOptionsoptions?): DotfileGetResponse { dotfilesConfiguration }
POST/gitpod.v1.UserService/GetDotfilesConfiguration

Gets the dotfiles for a user.

Use this method to:

  • Retrieve user dotfiles

Examples

  • Get dotfiles:

    Retrieves the dotfiles for the current user.

    {}
ParametersExpand Collapse
body: DotfileGetParams { empty }
empty?: boolean
ReturnsExpand Collapse
DotfileGetResponse { dotfilesConfiguration }
dotfilesConfiguration: DotfilesConfiguration { repository }
repository?: string

The URL of a dotfiles repository.

formaturi

GetDotfilesConfiguration

import Gitpod from '@gitpod/sdk';

const client = new Gitpod({
  bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted
});

const dotfile = await client.users.dotfiles.get();

console.log(dotfile.dotfilesConfiguration);
{
  "dotfilesConfiguration": {
    "repository": "https://example.com"
  }
}
Returns Examples
{
  "dotfilesConfiguration": {
    "repository": "https://example.com"
  }
}