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.4
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
npm install -g @bagdock/cli

# yarn
yarn global add @bagdock/cli

# pnpm
pnpm add -g @bagdock/cli

# bun
bun add -g @bagdock/cli

Or run without installing:

npx @bagdock/cli --help
bunx @bagdock/cli --help
pnpm dlx @bagdock/cli --help

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.

Apps are UI extensions that add screens, panels, and drawers to the Bagdock operator dashboard.

Both deploy to the Bagdock platform via the CLI. You don't need to manage any infrastructure.

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

MIT — see LICENSE.

Keywords

bagdock

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