Skip to main content
Home

@deco/cli@0.8.0
Built and signed on GitHub Actions

It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
88%
Published
a day ago (0.8.0)

Deco CLI

A command-line interface for managing deco.chat applications and workspaces.

Installation

deno install -Ar -g -n deco jsr:@deco/cli

Commands

Authentication

deco login

Log in to deco.chat and retrieve tokens for CLI usage.

deco logout

Log out of deco.chat and remove local session data.

deco whoami

Print information about the current session.

Configuration

deco configure

Save configuration options for the current directory. This command will prompt you for:

  • Workspace name
  • App name

Hosting

deco deploy

Deploy the current directory into the current workspace.

Options:

  • -w, --workspace <workspace>: Workspace name (optional)
  • -a, --app <app>: App name (optional)
  • -l, --local: Deploy the app locally (requires deco.chat running at local API endpoint)

deco hosting list -w <workspace>

List all apps in the specified workspace.

Development

Link the project to be accessed through a remote domain.

Options:

  • -p, --port <port>: Port to link (optional)

Usage:

deco link [build-command]

Example:

deco link npm run dev

Maintenance

deco update

Update the deco CLI to the latest version.

Environment Variables

  • DECO_CHAT_API_TOKEN: Authentication token for API access
  • DECO_CHAT_API_LOCAL: Local API endpoint for development

Configuration File

The CLI uses a configuration file to store workspace and app settings. You can set these values using the deco configure command.

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@deco/cli

Import symbol

import * as cli from "@deco/cli";
or

Import directly with a jsr specifier

import * as cli from "jsr:@deco/cli";

Add Package

pnpm i jsr:@deco/cli
or (using pnpm 10.8 or older)
pnpm dlx jsr add @deco/cli

Import symbol

import * as cli from "@deco/cli";

Add Package

yarn add jsr:@deco/cli
or (using Yarn 4.8 or older)
yarn dlx jsr add @deco/cli

Import symbol

import * as cli from "@deco/cli";

Add Package

vlt install jsr:@deco/cli

Import symbol

import * as cli from "@deco/cli";

Add Package

npx jsr add @deco/cli

Import symbol

import * as cli from "@deco/cli";

Add Package

bunx jsr add @deco/cli

Import symbol

import * as cli from "@deco/cli";