Package Exports
- @bdgt/cli
- @bdgt/cli/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bdgt/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Bdgt CLI
A command-line interface tool for managing your budget.
Installation
npm install -g @bdgt/cli
Usage
bdgt --help
Authentication
Before using the CLI, you need to authenticate with your API token:
# Login with your API token
bdgt auth login
# Check authentication status
bdgt auth status
# Set custom API URL (defaults to http://localhost:3001)
bdgt auth set-url
# Logout
bdgt auth logout
Commands
bdgt auth login
- Set up authentication with an API tokenbdgt auth logout
- Remove stored authenticationbdgt auth status
- Check authentication statusbdgt auth set-url
- Set the API URL
Development
# Install dependencies
npm install
# Run tests
npm test
# Build the project
npm run build
# Run in development mode
npm run dev
Requirements
- Node.js >= 16.0.0
License
MIT