### Development: Install Dependencies Source: https://github.com/insomenia/ccshare/blob/main/README.md Install project dependencies using npm after cloning the repository. ```bash # Install dependencies npm install ``` -------------------------------- ### Install Dependencies with npm Source: https://github.com/insomenia/ccshare/blob/main/CLAUDE.md Use this command to install all project dependencies listed in package.json. ```bash npm install ``` -------------------------------- ### Global Installation Source: https://github.com/insomenia/ccshare/blob/main/README.md Install ccshare globally using npm. This makes the command available system-wide. ```bash npm install -g ccshare ``` -------------------------------- ### Local Session Storage Example Source: https://github.com/insomenia/ccshare/blob/main/README.md Demonstrates copying a session file to the local .claude-sessions/ folder and including it in a share command. ```bash # Copy a session to local folder cp ~/Downloads/shared-session.json .claude-sessions/ # Include it in the report ccshare --all ``` -------------------------------- ### Example: Share specific session file Source: https://github.com/insomenia/ccshare/blob/main/README.md Share a single, specific session file identified by its path. ```bash ccshare -s ~/my-session.json ``` -------------------------------- ### Run Without Installation (bunx) Source: https://github.com/insomenia/ccshare/blob/main/README.md Execute ccshare directly using bunx if Bun is installed. This offers an alternative to npx for running packages. ```bash # Using bunx (if you have Bun installed) bunx ccshare ``` -------------------------------- ### Development: Clone Repository Source: https://github.com/insomenia/ccshare/blob/main/README.md Clone the ccshare repository from GitHub to start development. ```bash # Clone the repository git clone https://github.com/insomenia/ccshare.git cd ccshare ``` -------------------------------- ### Run Without Installation (npx) Source: https://github.com/insomenia/ccshare/blob/main/README.md Execute ccshare directly using npx without a global installation. Useful for quick runs or testing. ```bash # Using npx npx ccshare ``` -------------------------------- ### Example: Share all sessions without selection dialog Source: https://github.com/insomenia/ccshare/blob/main/README.md Share all historical sessions from the project without prompting the user to select individual prompts. ```bash ccshare --all --no-select ``` -------------------------------- ### Example: Share only recent prompts Source: https://github.com/insomenia/ccshare/blob/main/README.md Share a session, but limit the included prompts to the N most recent ones. ```bash ccshare --recent 10 ``` -------------------------------- ### TypeScript CLI Tool Configuration Source: https://github.com/insomenia/ccshare/blob/main/CLAUDE.md This bash script demonstrates common commands for a TypeScript CLI tool, including installation, building, development execution, and various usage patterns for sharing and reporting. ```bash # Install dependencies npm install # Build TypeScript to JavaScript npm run build # Run CLI in development mode npm run dev # Run the built CLI node dist/cli.js # Common usage examples npm run dev # Share to ccshare.cc with prompt selection npm run dev --html # Generate HTML report locally npm run dev --all --no-select # Share all sessions without selection npm run dev post # Post to share API (deprecated - now default) npm run dev post -s session.json # Post specific session file npm run dev watch # Real-time tracking mode npm run dev load # Load and execute prompts from shared session # Publishing to npm npm publish ``` -------------------------------- ### Publish to npm Source: https://github.com/insomenia/ccshare/blob/main/CLAUDE.md This command is used to publish the ccshare package to the npm registry, making it available for others to install. ```bash npm publish ``` -------------------------------- ### Command Options: Specify Directory of Session Files Source: https://github.com/insomenia/ccshare/blob/main/README.md Specify a directory containing multiple session files to share. ```bash # Specify a directory containing session files ccshare -s /path/to/sessions/ ``` -------------------------------- ### Enable Real-time Tracking Mode Source: https://github.com/insomenia/ccshare/blob/main/CLAUDE.md The 'watch' command enables real-time monitoring of sessions, providing live updates. ```bash npm run dev watch ``` -------------------------------- ### Command Options: Specify Custom Session File Source: https://github.com/insomenia/ccshare/blob/main/README.md Specify a single custom session file to share. ```bash # Specify a custom session file ccshare -s /path/to/session.json ccshare --session /path/to/session.json ``` -------------------------------- ### Load and Execute Prompts from Shared Session Source: https://github.com/insomenia/ccshare/blob/main/CLAUDE.md Use the 'load' command followed by a session slug to fetch and execute prompts from a previously shared session. ```bash npm run dev load ``` -------------------------------- ### Command Options: Include All Historical Sessions Source: https://github.com/insomenia/ccshare/blob/main/README.md Include all historical sessions found in Claude's project folder, not just the most recent one. ```bash # Include all historical sessions from Claude's project folder ccshare --all ``` -------------------------------- ### Command Options: Combine Options Source: https://github.com/insomenia/ccshare/blob/main/README.md Combine multiple command-line options for flexible session sharing. ```bash # Combine options ccshare --all --no-select ``` -------------------------------- ### Run Built CLI Source: https://github.com/insomenia/ccshare/blob/main/CLAUDE.md Execute the compiled JavaScript version of the CLI tool from the dist directory. ```bash node dist/cli.js ``` -------------------------------- ### Run Specific Version Source: https://github.com/insomenia/ccshare/blob/main/README.md Execute a specific version of ccshare using npx. Ensures you are using a particular release. ```bash # Run a specific version npx ccshare@latest ``` -------------------------------- ### Build TypeScript to JavaScript Source: https://github.com/insomenia/ccshare/blob/main/CLAUDE.md Run this command to compile TypeScript code into JavaScript, preparing the project for execution. ```bash npm run build ``` -------------------------------- ### Post Specific Session File to API Source: https://github.com/insomenia/ccshare/blob/main/CLAUDE.md Use the 'post' command with a session file argument to send a specific session's data to the share API. ```bash npm run dev post -s session.json ``` -------------------------------- ### Run CLI in Development Mode Source: https://github.com/insomenia/ccshare/blob/main/CLAUDE.md Execute the CLI tool in development mode, which typically includes hot-reloading or other development-specific features. ```bash npm run dev ``` -------------------------------- ### Basic Usage Source: https://github.com/insomenia/ccshare/blob/main/README.md Share your current Claude Code session to ccshare.cc. This command finds the latest session, presents a prompt selector, and opens the share page. ```bash ccshare ``` -------------------------------- ### Publish to share API (Deprecated) Source: https://github.com/insomenia/ccshare/blob/main/CLAUDE.md This command was used to post sessions to the share API. It is now the default behavior and the 'post' command is deprecated. ```bash npm run dev post ``` -------------------------------- ### Development: Run in Development Mode Source: https://github.com/insomenia/ccshare/blob/main/README.md Run the ccshare tool in development mode, which may include features like hot-reloading or debugging. ```bash # Run in development mode npm run dev ``` -------------------------------- ### Generate Local HTML Report Source: https://github.com/insomenia/ccshare/blob/main/CLAUDE.md Use the --html flag to generate an HTML report of the current session locally, instead of sharing it online. ```bash npm run dev --html ``` -------------------------------- ### Share All Sessions Without Selection Source: https://github.com/insomenia/ccshare/blob/main/CLAUDE.md This command shares all available sessions without requiring manual selection, using the --all and --no-select flags. ```bash npm run dev --all --no-select ``` -------------------------------- ### Development: Build TypeScript Source: https://github.com/insomenia/ccshare/blob/main/README.md Compile the TypeScript code into JavaScript for development or production. ```bash # Build TypeScript npm run build ``` -------------------------------- ### Advanced Usage: Fetch More Prompts Source: https://github.com/insomenia/ccshare/blob/main/README.md Increase the number of prompts fetched from the session history. The default limit is 20. ```bash # Fetch more prompts from session history ccshare --limit 50 # Default is 20 ``` -------------------------------- ### Command Options: Skip Prompt Selection Source: https://github.com/insomenia/ccshare/blob/main/README.md Share all prompts from the current session without displaying the interactive prompt selection dialog. ```bash # Skip prompt selection (include all prompts) ccshare --no-select ``` -------------------------------- ### Advanced Usage: JSON Output Source: https://github.com/insomenia/ccshare/blob/main/README.md Output the sharing information in JSON format. Useful for scripting or integrating with other tools. ```bash # Output JSON format ccshare --json ``` -------------------------------- ### Advanced Usage: Recent Prompts Source: https://github.com/insomenia/ccshare/blob/main/README.md Share only the N most recent prompts from the current session, skipping the interactive selection dialog. ```bash # Include only the N most recent prompts (skips selection) ccshare --recent 5 ``` -------------------------------- ### Advanced Usage: Custom API URL Source: https://github.com/insomenia/ccshare/blob/main/README.md Share your Claude Code session to a custom API endpoint instead of the default ccshare.cc. ```bash # Share with custom API URL ccshare --api-url https://myapi.com/shares ``` -------------------------------- ### Advanced Usage: Exclude Auto-generated Prompts Source: https://github.com/insomenia/ccshare/blob/main/README.md Exclude automatically generated prompts, such as commands and system messages, from the shared session. ```bash # Exclude auto-generated prompts (commands, system messages) ccshare --exclude-auto ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.