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

@shyft-dev/cli

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shyft-dev/cli

CLI for the Shyft platform

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
2
Created
Source

@shyft-dev/cli

[!IMPORTANT] Shyft is in Early Access. If you are interested in how your team can accelerate and measure AI-First development, please join us.

Command-line interface for the Shyft platform.

Installation

npm install -g @shyft-dev/cli

To uninstall:

npm uninstall -g @shyft-dev/cli

Node 18+ and npm are the only requirements.

Local development install

git clone git@github.com:shyft-dev/shyft-cli.git
cd shyft-cli
bun install
bun run build
bun link

Usage

shyft [options] [command]

Global Options

OptionDescription
--jsonOutput in JSON format
-VShow version number
-hShow help

Commands

login

Authenticate with the Shyft platform. Opens a browser by default for OAuth authentication.

# Browser-based login (default)
shyft login

# Print the auth URL instead of opening a browser
shyft login --no-browser

# Authenticate with an API key (for CI/scripts)
shyft login --api-key <key>

logout

Log out and clear stored credentials.

shyft logout

status

Show current authentication status including email, team, and auth method.

shyft status

config

View or modify CLI configuration.

# View all configuration (sensitive values redacted)
shyft config

# Get a specific value
shyft config get <key>

# Set a value (currently only apiUrl is settable)
shyft config set apiUrl https://custom-api.example.com

# Reset configuration to defaults (preserves auth)
shyft config reset

Configuration

User configuration (~/.shyft/config.json)

Stores authentication credentials and API settings. Created by shyft login. The API endpoint defaults to https://api.shyft.dev and can be overridden via:

  • shyft config set apiUrl <url>
  • The SHYFT_API_URL environment variable

Project configuration (.shyft/config.json)

Created by shyft init. Associates the current project directory with a Shyft product. Contains the productId used by commands like shyft features and shyft analytics. This file should be committed to version control so all contributors share the same product association.

Project context (.shyft/context.json)

Transient working state for the current session. Stores the active feature ID (set via shyft context set --feature <id>) and phase timing data (managed by shyft analytics start-phase / end-phase). This file is automatically added to .gitignore by shyft init and should not be committed.

JSON Mode

All commands support --json for machine-readable output, useful for scripting and CI pipelines:

shyft status --json
shyft login --api-key "$SHYFT_API_KEY" --json

Development

# Watch mode
bun run dev

# Build
bun run build

# Run tests
bun test

# Type check
bun run typecheck

# Lint
bun run lint

Exit Codes

CodeMeaning
0Success
1General error
2Auth required
3Auth failed
4API error
5Validation error
6Timeout

FAQs

Package last updated on 29 May 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