{"id":18649759,"url":"https://github.com/ashwanthkumar/wasp-cli","last_synced_at":"2025-11-05T10:30:30.968Z","repository":{"id":57525966,"uuid":"50574244","full_name":"ashwanthkumar/wasp-cli","owner":"ashwanthkumar","description":"Command line tool for accessing/manipulating Wasp settings","archived":false,"fork":false,"pushed_at":"2016-01-29T06:45:07.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T12:44:48.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashwanthkumar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-28T10:07:52.000Z","updated_at":"2016-01-28T17:10:08.000Z","dependencies_parsed_at":"2022-09-26T18:11:05.322Z","dependency_job_id":null,"html_url":"https://github.com/ashwanthkumar/wasp-cli","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Fwasp-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Fwasp-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Fwasp-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Fwasp-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashwanthkumar","download_url":"https://codeload.github.com/ashwanthkumar/wasp-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239456405,"owners_count":19641843,"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":[],"created_at":"2024-11-07T06:40:31.402Z","updated_at":"2025-11-05T10:30:30.917Z","avatar_url":"https://github.com/ashwanthkumar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WASP CLI\nwasp-cli is a command line utility for WASP. You can get / browse WASP configurations directly from your terminal without any complicated `cURL` commands. \n\n## Build\nYou need to have golang setup in your system to build it locally. \n\n```bash\n$ git clone https://github.com/ashwanthkumar/wasp-cli\n$ cd wasp-cli\n$ make setup\n$ make build\n```\n\nIf you're not my type, you can instead [download a binary](https://github.com/ashwanthkumar/wasp-cli/releases) directly from releases. \n\n## Configuration file\nYou need to create a file under `~/.indix/wasp.json` which has the following contents\n```json\n{\n  \"wasp\": {\n    \"host\": \"http://localhost:9000\",\n    \"token\": \"auth-token-to-make-puts-and-deletes\"\n  }\n}\n```\n\nYou can still make `ls` and `get` calls without the `token` config but the `put` and `delete` might fail. \n\n## Usage\n\n```\n$ wasp\nCommand line client to WASP\n\nUsage:\n  wasp [command]\n\nAvailable Commands:\n  gen         Generate files using Go templates from WASP configs\n  get         Get the configuration in current path\n  ls          List keys in the current path\n  put         Put a value against a path\n  rmr         Delete a config key (recursively)\n\nFlags:\n  -h, --help   help for wasp\n\nUse \"wasp [command] --help\" for more information about a command.\n```\n\n### Updating config keys\nYou can use the `wasp put` command to update things, but you can do more than just update a value. You can use unix pipes `(|)` to update certain values. \n\nFor example if you want to pass a JSON string as a config value, \n```\n$ cat foo.json | wasp put foo.bar.baz --stdin\n```\n\nIf you want to set the JSON as a nested configuration instead of a JSON value,\n```\n$ cat foo.json | wasp put foo.bar.baz --stdin --raw\n```\n\n### Deleting config keys\nYou can delete a configuration key using\n```\n$ wasp rmr foo.bar.baz\nDo you want to delete everything under foo.bar.baz? [yN]: y\n```\n\nIf you're running deletes in a batch mode (strictly not advisable),\n```\n$ wasp rmr foo.bar.baz --yes\n```\n\n### Generate Configuration files for your application from WASP Settings\nYou can generate configuration files for your application based on the settings in WASP\n```\n// configuration.tmpl\n{\n \"wasp\": {\n  \"host\": \"{{ .wasp.host }}\"\n }\n}\n\n$ wasp gen dev.golang /path/to/configuration.tmpl \u003e /path/to/config.json\n```\n\nWe use the excellent [Go Templates](https://golang.org/pkg/text/template/) for rendering the files.\n\n### Tips\nIf you've `jq` installed you can prettify the Configuration outputs much more by just piping the output to jq. Don't use this if you're writing it to a file.\n```\n$ wasp get production.foo.bar.baz | jq --color-output\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwanthkumar%2Fwasp-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashwanthkumar%2Fwasp-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwanthkumar%2Fwasp-cli/lists"}