Skip to main content

cloneRepo()

Home > @backstage/plugin-scaffolder-node > cloneRepo

Signature:

function cloneRepo(options: {
url: string;
dir: string;
auth: {
username: string;
password: string;
} | {
token: string;
};
logger?: Logger | undefined;
ref?: string | undefined;
depth?: number | undefined;
noCheckout?: boolean | undefined;
}): Promise<void>;

Parameters

Parameter

Type

Description

options

{ url: string; dir: string; auth: { username: string; password: string; } | { token: string; }; logger?: Logger | undefined; ref?: string | undefined; depth?: number | undefined; noCheckout?: boolean | undefined; }

**Returns:**

Promise<void>