{"id":28906863,"url":"https://github.com/sintan1729/chhoto-url-cli","last_synced_at":"2025-07-09T19:38:13.227Z","repository":{"id":299365782,"uuid":"1002726563","full_name":"SinTan1729/chhoto-url-cli","owner":"SinTan1729","description":"A CLI tool to be used to interact with Chhoto URL","archived":false,"fork":false,"pushed_at":"2025-06-27T22:19:09.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T06:03:41.419Z","etag":null,"topics":["chhoto-url","cli-tool","client","golang","url-shortener"],"latest_commit_sha":null,"homepage":"https://github.com/SinTan1729/chhoto-url","language":"Go","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/SinTan1729.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-16T03:41:32.000Z","updated_at":"2025-06-27T22:19:12.000Z","dependencies_parsed_at":"2025-06-16T07:36:47.755Z","dependency_job_id":null,"html_url":"https://github.com/SinTan1729/chhoto-url-cli","commit_stats":null,"previous_names":["sintan1729/chhoto-url-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SinTan1729/chhoto-url-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinTan1729%2Fchhoto-url-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinTan1729%2Fchhoto-url-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinTan1729%2Fchhoto-url-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinTan1729%2Fchhoto-url-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SinTan1729","download_url":"https://codeload.github.com/SinTan1729/chhoto-url-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SinTan1729%2Fchhoto-url-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502493,"owners_count":23618619,"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","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":["chhoto-url","cli-tool","client","golang","url-shortener"],"created_at":"2025-06-21T15:10:20.236Z","updated_at":"2025-07-09T19:38:13.206Z","avatar_url":"https://github.com/SinTan1729.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- SPDX-FileCopyrightText: 2025 Sayantan Santra \u003csayantan.santra689@gmail.com\u003e --\u003e\n\u003c!-- SPDX-License-Identifier: MIT --\u003e\n[![maintainer-badge](https://img.shields.io/badge/maintainer-SinTan1729-blue)](https://github.com/SinTan1729)\n[![latest-release-badge](https://img.shields.io/github/v/release/SinTan1729/chhoto-url-cli?label=latest%20release)](https://github.com/SinTan1729/chhoto-url-cli/releases/latest)\n[![license-badge](https://img.shields.io/github/license/SinTan1729/chhoto-url)](https://spdx.org/licenses/MIT.html)\n\n# Chhoto URL CLI\nThis is a companion CLI tool for [Chhoto URL](https://github.com/SinTan1729/chhoto-url). It provides simple commands for interacting with\na Chhoto URL server.\n\nAll the functions of this tool can be replicated using `curl`, but this is supposed to be easier to use. The server needs to have an API key\nin order to be accessible using this CLI tool. Password based usage is supported, but discouraged.\n\n# Installation\n## Installation from source\n1. Clone the repo.\n```\ngit clone https://github.com/SinTan1729/chhoto-url-cli\n```\n2. Install.\n```\ncd chhoto-url-cli\nmake install\n```\n3. You can uninstall by running `make uninstall`.\n\n## Installation from AUR\nUse the AUR package [`chhoto-url-cli-bin`](https://aur.archlinux.org/packages/chhoto-url-cli-bin).\n\n## Installation from LURE\nThis should (at least in theory) work for every distro, and should be similar to AUR in terms of experience.\n1. Install `LURE` from [lure.sh](https://lure.sh).\n2. Add my personal repo to it.\n```\nlure addrepo -n SinTan1729 -u https://github.com/SinTan1729/lure-repo\n```\n3. Install `chhoto-url-cli`\n```\nlure in chhoto-url-cli\n```\n\n# Usage\nBy default, config will be loaded from $XDG_CONFIG_HOME/chhoto/config.json\nBut these can be overridden by using the flags.\n\nThe main syntax is the following\n```\nchhoto \u003csubcommand\u003e [\u003cinputs\u003e] [\u003c--flags\u003e]\n```\n\nSubcommands:\n1.  `new \u003clongurl\u003e [\u003cshorturl\u003e] [\u003cexpiry-delay\u003e]`  \n    Creates a new shorturl.  \n    If shorturl is not provided, it will be generated automatically.  \n    Expiry delay should be in seconds. Default value is 0, which means no expiry.\n1.  `delete \u003cshorturl\u003e`  \n    Deletes a given shorturl.\n1.  `expand \u003cshorturl\u003e`  \n    Prints info about a particular shorturl.\n1.  `getall`  \n    Prints info about all shorturls in the server.\n1.  `getconfig`  \n    Prints the backend config.\n\nFlags:  \n    `--api-key`    API Key of the Chhoto URL server.  \n    `--password`   Password for the Chhoto URL server. It may also be passed interactively.\n    `--url`        URL of the Chhoto URL server.  \n    `--version`    Prints the version.\n    `-h|--help`    Prints help.\n\n# Notes\n- This was just a learning project for me. I wanted to write something tangible using Golang. So, don't expect this to be maintained in the future.\n- I haven't used any external packages, everything is written in pure Go, using the Go Standard Library. I'll try to keep it this way.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsintan1729%2Fchhoto-url-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsintan1729%2Fchhoto-url-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsintan1729%2Fchhoto-url-cli/lists"}