From ce625925405fd1d30461d8a83279ac0768a15af9 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 24 Jul 2023 21:33:46 -0700 Subject: [PATCH] Demonstrate aliases directly in the README --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 135b175..ec1925a 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,14 @@ datasette install dclient ```bash dclient query https://latest.datasette.io/fixtures "select * from facetable limit 1" ``` - +To shorten that, create an alias: +```bash +dclient alias add fixtures https://latest.datasette.io/fixtures +``` +Then run it like this instead: +```bash +dclient query fixtures "select * from facetable limit 1" +``` ## Documentation Visit **[dclient.datasette.io](https://dclient.datasette.io)** for full documentation on using this tool.