A simple Deno script to download files from GitHub repositories to a specified path.
This tool requires a GITHUB_TOKEN to access the GitHub GraphQL API.
You can use the token obtained from the GitHub CLI after running gh auth login.
This is the simplest method if you're already logged in via the GitHub CLI.
deno run -A jsr:@totto/template/cli <owner> <repo> <target-path> <destination-path>Alternatively, you can set the GITHUB_TOKEN environment variable directly.
This is particularly useful for CI/CD environments like GitHub Actions.
GITHUB_TOKEN=<your-github-token> deno run -A jsr:@totto/template/cli <owner> <repo> <target-path> <destination-path>To download the frontend directory from the totto2727-org/template repository to your current directory:
deno run -A jsr:@totto/template/cli totto2727-org template frontend .Default: 10
The depth of the directory to download.
If the depth is 0, the specified file will be downloaded. If the depth is 0 and the specified path is a directory, nothing will be downloaded.
Default: The default branch of the target repository
The branch to download from.
Show help information.