{"id":24534564,"url":"https://github.com/bloomtom/buncli","last_synced_at":"2025-09-04T12:45:28.706Z","repository":{"id":40916127,"uuid":"158784823","full_name":"bloomtom/buncli","owner":"bloomtom","description":"A reference frontend for the BunAPI library.","archived":false,"fork":false,"pushed_at":"2022-10-18T18:43:07.000Z","size":71,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-01T01:41:46.838Z","etag":null,"topics":["bunnycdn","frontend","reference","storage-zones"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bloomtom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-23T05:29:30.000Z","updated_at":"2022-10-18T18:43:03.000Z","dependencies_parsed_at":"2023-01-19T23:16:47.745Z","dependency_job_id":null,"html_url":"https://github.com/bloomtom/buncli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bloomtom/buncli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloomtom%2Fbuncli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloomtom%2Fbuncli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloomtom%2Fbuncli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloomtom%2Fbuncli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bloomtom","download_url":"https://codeload.github.com/bloomtom/buncli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloomtom%2Fbuncli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273611676,"owners_count":25136976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bunnycdn","frontend","reference","storage-zones"],"created_at":"2025-01-22T11:17:44.660Z","updated_at":"2025-09-04T12:45:28.673Z","avatar_url":"https://github.com/bloomtom.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/bloomtom/BunAPI/master/bunsharp.png\" /\u003e\n\u003c/p\u003e\n\n# bun CLI\n\u003eA reference front-end for the [BunAPI](https://github.com/bloomtom/BunAPI) library.\n\nThis application is a CLI front-end for the unofficial [BunnyCDN](https://bunnycdn.com/) dotnet core library. Manage your storage zones with simple commands!\n\n## Requirements\nThe only requirement is the dotnet core 2.1 runtime. This is installed by default on Windows 10, but on Linux or OSX you may need to install it.\nA tutorial for installing dotnet using package management [can be found here](https://www.microsoft.com/net/learn/get-started-with-dotnet-tutorial). If you just want the binaries you can [find those here](https://www.microsoft.com/net/download/dotnet-core/2.1).\n\nIf you're not sure if you have the dotnet core runtime already, you can run this command:\n```\ndotnet --version\n2.1.403\n```\nIf the version is 2.1 or higher you're all set to go!\n\n## Installation\nSince this application is so small it's recommended you build it from source. The following commands should get you off the ground.\n\n```\ngit clone https://github.com/bloomtom/buncli.git\ncd BunCLI\ndotnet build --configuration Release\ndotnet BunCLI\\bin\\Release\\netcoreapp2.1\\bun.dll --help\n```\n\n## Command Options\nThe following is an output of the `--help` option.\n```\n\u003edotnet bun.dll --help\nbun 0.1.1\nMIT License - Copyright 2018 bloomtom\n\n  l          List files stored in a storage zone.\n\n  u          Upload a file from disk or stdin.\n\n  g          Get/download a file. The downloaded file is written to the standard output.\n\n  r          Remove/delete a file.\n\n  help       Display more information on a specific command.\n\n  version    Display version information.\n```\nYou can get more information about a command by asking for `--help` on a specific verb:\n```\n\u003edotnet bun.dll u --help\nbun 0.1.1\nMIT License - Copyright 2018 bloomtom\nUSAGE:\nUpload a file from disk:\n\u003e  dotnet bun.dll u --key 01234567-89ab --path somefile.txt --zone MyZone\n\n  -n, --name    The file name to upload as. Defaults to the filename on disk.\n\n  -p, --path    The file path on disk.\n\n  -z, --zone    The storage zone.\n\n  -k, --key     Your API key for the desired storage zone.\n\n  --help        Display this help screen.\n\n  --version     Display version information.\n```\nSo to upload a file you can simply run `dotnet bun.dll u -p myfile.txt`.\n\n\nWhen running the upload or download command, data can also be taken and written to the standard input and output respectively. To upload a file you can use the `\u003c` operator. The following will upload somefile.txt and name it MyFile.txt in your BunnyCDN storage.\n```\ndotnet bun.dll u -n MyFile.txt \u003c somefile.txt\n```\nYou can also use pipes. The following is equivalent to the above. \n```\n# Forgive the UUOC.\ncat somefile.txt | dotnet bun.dll u -n MyFile.txt\n```\nSimilarly, for downloading you can use the `\u003e` operator. The following will download MyFile.txt and write it into newfile.txt\n```\ndotnet bun.dll g -n MyFile.txt \u003e newfile.txt\n```\n\n\n## Environment Variables\n\nYou may have noticed that the example commands don't specify an api key or storage zone, and they aren't specified as  required in the help screens. This is because you can use environment variables to set a default key and zone. The following will set these for your current shell session.\n```\nset BUN_ZONE=MyZone\nset BUN_KEY=01234567-89ab...\n```\nIf no environment variables are set for the zone or key, and they aren't specified in command options, an error will be thrown.\n```\nKey not defined. Either pass the key as an argument or set the BUN_KEY environment variable.\n```\nCommand options always take priority over environment variables. So if you have a default zone set, you can override it by passing `-z`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloomtom%2Fbuncli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbloomtom%2Fbuncli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloomtom%2Fbuncli/lists"}