GuidesCLI

Command Reference

Complete reference for all Bluebag CLI commands.

This page provides a complete reference for all Bluebag CLI commands and their options.

bluebag auth

Authenticate with Bluebag and configure your project.

Aliases: bluebag login, bluebag setup

Usage:

bluebag auth

Behavior:

  1. Opens your browser to the Bluebag authentication page
  2. Displays a verification code in your terminal
  3. Waits for you to approve the device authorization
  4. Prompts you to select an organization and project
  5. Creates a .bluebagrc configuration file

Example:

bluebag auth

bluebag logout

Clear stored authentication credentials.

Usage:

bluebag logout [options]

Options:

OptionDescription
--api-url <url>Target a specific API URL (advanced)

Example:

bluebag logout

bluebag push

Push local Skills to your Bluebag project.

Usage:

bluebag push [skills...] [options]

Arguments:

ArgumentDescription
skillsOptional list of specific Skill names

Options:

OptionAliasDescription
--force-fOverwrite remote changes without prompting
--dry-run-nPreview changes without uploading

Examples:

# Push all skills
bluebag push

# Push a specific skill
bluebag push my-skill

# Push multiple skills
bluebag push skill-1 skill-2

# Force push (overwrite remote)
bluebag push --force

# Preview without uploading
bluebag push --dry-run

# Combine options
bluebag push my-skill --dry-run

bluebag pull

Pull remote Skills to your local workspace.

Usage:

bluebag pull [skills...] [options]

Arguments:

ArgumentDescription
skillsOptional list of specific Skill names

Options:

OptionAliasDescription
--force-fOverwrite local changes without prompting
--dry-run-nPreview changes without downloading

Examples:

# Pull all skills
bluebag pull

# Pull a specific skill
bluebag pull my-skill

# Pull multiple skills
bluebag pull skill-1 skill-2

# Force pull (overwrite local)
bluebag pull --force

# Preview without downloading
bluebag pull --dry-run

# Combine options
bluebag pull my-skill --dry-run

bluebag --version

Display the CLI version.

Usage:

bluebag --version

Example output:

1.2.3

bluebag --help

Display help information.

Usage:

bluebag --help
bluebag <command> --help

Examples:

# General help
bluebag --help

# Command-specific help
bluebag push --help

Environment Variables

BLUEBAG_OPEN_BROWSER

Control automatic browser opening during authentication.

ValueBehavior
1Open browser automatically (default)
0Don't open browser; show URL instead

Example:

export BLUEBAG_OPEN_BROWSER=0
bluebag auth

Configuration File

The .bluebagrc file stores your project configuration.

Location: Project root directory

Format: JSON

Fields:

FieldTypeDescription
organizationIdstringYour Bluebag organization ID
projectIdstringThe project to sync Skills with
skillsDirstringLocal directory for Skills (default: skills)

Example:

{
  "organizationId": "org_abc123",
  "projectId": "prj_xyz789",
  "skillsDir": "skills"
}

Exit Codes

CodeMeaning
0Success
1General error
2Validation error
3Authentication error
4Network error

Quick Reference

CommandDescription
bluebag authAuthenticate and configure
bluebag logoutClear credentials
bluebag pushPush all Skills
bluebag push <name>Push specific Skill
bluebag push --forcePush, overwriting remote
bluebag push --dry-runPreview push
bluebag pullPull all Skills
bluebag pull <name>Pull specific Skill
bluebag pull --forcePull, overwriting local
bluebag pull --dry-runPreview pull
bluebag --versionShow version
bluebag --helpShow help

On this page