client-ts
client-ts copied to clipboard
CLI improvements
- [ ] Base class for all commands that support
--json. - [ ] Better typing for
run()methods. - [x] Utility methods for
promptsand skip interactivity if--no-inputis used or the terminal is not a TTY.- [ ] https://www.npmjs.com/package/@npmcli/ci-detect
- [ ] Always return the full API response?
- [x] Utilities for parsing flags that have also defaults depending on the context:
workspace,database,branch. - [ ] Allow users to specify slug when creating a db.
- [ ] Add a verbose option to print things such as the config file being used.
- [ ] Document exit codes.
- [ ] Validate identifiers before sending them to the server?
- [ ] Support pnpm when installing the SDK in
xata init - [x] Check if there's an
API_KEYalready in the.envfile when writing to it - [ ] Support other paths for the
.envfile - [ ] Offer a command to generate/update API Key in the .env file without having to run
xata init - [x] Add examples.
- [x] Use suggestions in errors.
- [x] Save database url in project config file
- [x] Instead of failing if no database url found, inquiry user with his available workspaces and databases. If user is in a project and has a project config file, inquiry question for saving it there.