@httpdrop/cli
v1.0.0
Published
httpdrop CLI — manage endpoints, seed data, stream logs and run tunnels from the terminal
Maintainers
Readme
@httpdrop/cli
CLI oficial do httpdrop — gerencie endpoints, faça seed de dados, stream de logs e rode tunnels pelo terminal.
Instalação
npm install -g @httpdrop/cliConfiguração
httpdrop loginGere um token de API em httpdrop.dev → Dashboard → API Tokens.
Comandos
| Comando | Descrição |
|---------|-----------|
| httpdrop login [url] | Autenticar com token de API |
| httpdrop ls | Listar seus endpoints |
| httpdrop logs <id> | Streama requisições em tempo real |
| httpdrop seed <id> <path> [n] | Seed de dados Faker numa tabela CRUD |
| httpdrop tunnel <id> | Expõe endpoint via tunnel público |
| httpdrop import <spec.yaml> <id> | Importar spec OpenAPI para um endpoint |
| httpdrop status | Info da conta e do servidor |
Variáveis de ambiente
| Variável | Descrição |
|----------|-----------|
| HTTPDROP_URL | URL do servidor (padrão: https://httpdrop.dev) |
| HTTPDROP_TOKEN | Token de API (sobrescreve ~/.httpdrop-cli.json) |
Exemplos
# Listar endpoints
httpdrop ls
# Ver logs em tempo real do endpoint ABC123
httpdrop logs ABC123
# Fazer seed de 50 usuários faker na tabela /users
httpdrop seed ABC123 /users 50
# Importar OpenAPI spec
httpdrop import openapi.yaml ABC123
# Expor endpoint publicamente via tunnel
httpdrop tunnel ABC123Self-hosted
httpdrop login http://localhost:3000