mirror of
https://github.com/simonw/dclient.git
synced 2026-07-24 01:44:32 +02:00
Update examples to use v2 command syntax with -i flag and alias defaults. Add quick start section showing alias add/default/default-db workflow. Add introspection commands section. Add environment.md to docs toctree. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
41 lines
1.2 KiB
Markdown
41 lines
1.2 KiB
Markdown
# dclient
|
|
|
|
[](https://pypi.org/project/dclient/)
|
|
[](https://github.com/simonw/dclient/releases)
|
|
[](https://github.com/simonw/dclient/actions?query=workflow%3ATest)
|
|
[](https://github.com/simonw/dclient/blob/master/LICENSE)
|
|
|
|
A client CLI utility for [Datasette](https://datasette.io/) instances
|
|
|
|
## Installation
|
|
|
|
Install `dclient` using `pip` (or [pipx](https://pipxproject.github.io/pipx/):
|
|
|
|
```bash
|
|
pip install dclient
|
|
```
|
|
|
|
### As a Datasette plugin
|
|
|
|
If you also have Datasette installed in the same environment it will register itself as a command plugin:
|
|
```bash
|
|
datasette install dclient
|
|
```
|
|
This means you can run any of these commands using `datasette dc` instead, like this:
|
|
```bash
|
|
datasette dc --help
|
|
datasette dc query fixtures "select * from facetable limit 1" -i latest
|
|
```
|
|
|
|
## Contents
|
|
|
|
```{toctree}
|
|
---
|
|
maxdepth: 3
|
|
---
|
|
queries
|
|
aliases
|
|
authentication
|
|
inserting
|
|
environment
|
|
```
|