Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@bagdock/cli

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bagdock/cli

Bagdock developer CLI — build, test, and deploy apps and edges on the Bagdock platform

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
13
-55.17%
Maintainers
1
Weekly downloads
 
Created
Source

@bagdock/cli

Developer CLI for building, testing, and deploying apps and edges on the Bagdock platform.

Install

npm install -g @bagdock/cli

Quick start

# Authenticate with your Bagdock account
bagdock login

# Scaffold a new project
bagdock init

# Start local development
bagdock dev

# Deploy to Bagdock
bagdock deploy

What are apps and edges?

Edges are backend workers that connect external APIs, handle webhooks, and sync data between platforms. Examples: a Noke lock adapter, a Telnyx comms worker, a payment processor handler.

Apps are UI extensions that add screens, panels, or drawers to the Bagdock operator dashboard — similar to HubSpot CRM cards or Shopify App Bridge extensions.

Both deploy to Cloudflare Workers for Platforms via the Bagdock API. You never need Cloudflare credentials.

Commands

CommandDescription
bagdock loginAuthenticate via Device Authorization Grant (opens browser)
bagdock logoutClear stored credentials
bagdock whoamiShow current authenticated user
bagdock initScaffold a new project with bagdock.json
bagdock devStart local dev server
bagdock deployBuild and deploy to Bagdock
bagdock env setSet an environment variable for your project
bagdock env listList environment variables
bagdock submitSubmit for marketplace review

Authentication

The CLI uses the OAuth 2.0 Device Authorization Grant. When you run bagdock login, it will:

  • Display a one-time code
  • Open your browser to the Bagdock dashboard
  • Ask you to enter the code and approve access
  • Store credentials locally at ~/.bagdock/credentials.json

Configuration

Each project uses a bagdock.json file. All config lives here — no wrangler.toml needed. A temporary one is auto-generated for local dev and should be gitignored.

Edge example

{
  "name": "noke-lock-adapter",
  "slug": "noke-lock-adapter",
  "type": "edge",
  "kind": "adapter",
  "category": "locks",
  "main": "src/index.ts"
}

App example

{
  "name": "my-dashboard-widget",
  "slug": "my-dashboard-widget",
  "type": "app",
  "kind": "ui-extension",
  "category": "analytics",
  "main": "src/index.ts"
}

License

Proprietary — Copyright Bagdock Ltd.

FAQs

Package last updated on 04 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts