{"_id":"@airjesus17/spm-cli","_rev":"1-f984f7cf78ae109b7f0e9c6155ca77bb","name":"@airjesus17/spm-cli","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.0":{"name":"@airjesus17/spm-cli","version":"0.2.0","_id":"@airjesus17/spm-cli@0.2.0","maintainers":[{"name":"airjesus17","email":"dionhagan@gmail.com"}],"bin":{"spm":"dist/cli.js"},"pkg":{"scripts":"dist/**/*.js","targets":["node18-linux-x64","node18-macos-x64","node18-win-x64"],"outputPath":"dist"},"dist":{"shasum":"f04cea658f2dda0d930e9ce0b5bf461148d4d74b","tarball":"https://registry.npmjs.org/@airjesus17/spm-cli/-/spm-cli-0.2.0.tgz","fileCount":31,"integrity":"sha512-2iPo02z/Ggvmll4m/eUtxNwVPHW8ah5kfIHpYHt87lIkTdJrJISkAzg+nqNkCaJgr97lUtDEIZkMO82s5rImhA==","signatures":[{"sig":"MEUCIQDCh0TVHd7DI3YXfrbTq1NmxZVC5qITkLK0Vr7b0XUGkgIgNMrXAEqIDa6sK5iB1twb5sq1+KGSxhdpptt7M8LPTE0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58174},"gitHead":"0cacacac5ee5b0d6a4e2cff24fff52c5e559334a","scripts":{"dev":"tsc -w","pkg":"pkg .","test":"jest","build":"tsc","start":"node ./dist/cli.js"},"_npmUser":{"name":"airjesus17","email":"dionhagan@gmail.com"},"_npmVersion":"10.9.0","description":"Spinnaker Pipeline Management CLI","directories":{},"_nodeVersion":"23.3.0","dependencies":{"axios":"^1.6.2","chalk":"^5.3.0","inquirer":"^12.1.0","commander":"^11.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.1","typescript":"^5.3.2","@types/jest":"^29.5.11","@types/node":"^20.10.0","@types/inquirer":"^9.0.7"},"_npmOperationalInternal":{"tmp":"tmp/spm-cli_0.2.0_1733187742348_0.5024841348581377","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"@airjesus17/spm-cli","version":"0.2.1","description":"Spinnaker Pipeline Management CLI","bin":{"spm":"dist/cli.js"},"scripts":{"build":"tsc","dev":"tsc -w","start":"node ./dist/cli.js","test":"jest","pkg":"pkg ."},"publishConfig":{"access":"public"},"dependencies":{"axios":"^1.6.2","chalk":"^5.3.0","commander":"^11.1.0","inquirer":"^12.1.0"},"devDependencies":{"@types/inquirer":"^9.0.7","@types/jest":"^29.5.11","@types/node":"^20.10.0","jest":"^29.7.0","ts-jest":"^29.1.1","typescript":"^5.3.2"},"pkg":{"scripts":"dist/**/*.js","targets":["node18-linux-x64","node18-macos-x64","node18-win-x64"],"outputPath":"dist"},"_id":"@airjesus17/spm-cli@0.2.1","gitHead":"0d21a1653d9fee3f57a5e8d8437665299fe531c7","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-LCe5k8avsgbjipuWvaO0szeAFuERw/g8DjniJqjyGRND/NDNcF2VICDGg209G81NN7LoPnNBV1+G9SV+u7amfA==","shasum":"4cbf1765772862c821ea1cad116d487e5a1829a9","tarball":"https://registry.npmjs.org/@airjesus17/spm-cli/-/spm-cli-0.2.1.tgz","fileCount":31,"unpackedSize":60352,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyyZR8ElFkfH2hz+dtuymMkOq41RtXerPUuKs0M3wf0wIgGMd8Kjy9MzOLrDZo5FCdiDB/x9d0M2L7SxjAHQ0cPu4="}]},"_npmUser":{"name":"airjesus17","email":"dionhagan@gmail.com"},"directories":{},"maintainers":[{"name":"airjesus17","email":"dionhagan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spm-cli_0.2.1_1733189447276_0.31994150961165624"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-03T01:02:22.254Z","modified":"2024-12-03T01:30:47.646Z","0.2.0":"2024-12-03T01:02:22.542Z","0.2.1":"2024-12-03T01:30:47.478Z"},"description":"Spinnaker Pipeline Management CLI","maintainers":[{"name":"airjesus17","email":"dionhagan@gmail.com"}],"readme":"# SPM CLI\n\nSpinnaker Pipeline Management CLI - A command-line tool for managing Spinnaker pipelines, applications, and deployments.\n\n## Installation\n\n```bash\nnpm install -g @airjesus17/spm-cli\n```\n\n## Configuration\n\nUse the config command to set up your Spinnaker credentials:\n\n```bash\nspm config\n```\n\nThis will prompt you for:\n- Spinnaker API URL\n- Spinnaker service user token\n\nConfiguration is stored in `~/.spm/config.json`\n\n## Commands\n\n### Pipeline Management\n\n```bash\n# List all pipelines\nspm pipeline list\n# Filter pipelines by application\nspm pipeline list -a <application-name>\n\n# Execute a pipeline\nspm pipeline execute <application> <pipeline-name>\n# Execute with parameters\nspm pipeline execute <application> <pipeline-name> -p '{\"branch\":\"main\"}'\n\n# Stop a pipeline execution\nspm pipeline stop <execution-id>\n\n# Watch a pipeline execution\nspm pipeline watch <execution-id>\n```\n\n### Application Management\n\n```bash\n# List all applications\nspm app list\n\n# Get detailed information about an application\nspm app get <application-name>\n```\n\n### Deployment Management\n\n```bash\n# List deployments for an application\nspm deployment list <application-name>\n```\n\n### Configuration\n\n```bash\n# Configure Spinnaker settings\nspm config\n```\n\n## Command Details\n\n### Pipeline Commands\n\n- `pipeline list`: Lists all pipelines or filters by application\n  - Options:\n    - `-a, --application <name>`: Filter by application name\n\n- `pipeline execute`: Executes a pipeline\n  - Arguments:\n    - `<application>`: Application name\n    - `<pipeline>`: Pipeline name\n  - Options:\n    - `-p, --params <json>`: Pipeline parameters as JSON\n\n- `pipeline stop`: Stops a running pipeline execution\n  - Arguments:\n    - `<id>`: Pipeline execution ID\n\n- `pipeline watch`: Watches a pipeline execution in real-time\n  - Arguments:\n    - `<id>`: Pipeline execution ID\n  - Shows progress and stage status updates\n\n### Application Commands\n\n- `app list`: Lists all applications\n  - Displays: Name, Email, Description, Status\n\n- `app get`: Gets detailed information about an application\n  - Arguments:\n    - `<name>`: Application name\n  - Shows: Name, Email, Description, Status, Cloud Providers, Instance Port\n\n### Deployment Commands\n\n- `deployment list`: Lists deployments for an application\n  - Arguments:\n    - `<application>`: Application name\n  - Displays: Name, Account, Region, Capacity (min/desired/max), Status\n\n### Config Command\n\n- `config`: Interactive configuration setup\n  - Prompts for:\n    - Spinnaker API URL\n    - Spinnaker service user token\n  - Validates and stores configuration\n\n## Development\n\n```bash\n# Clone the repository\ngit clone https://github.com/dion-hagan/spm-cli.git\ncd spm-cli\n\n# Install dependencies\nnpm install\n\n# Watch mode for development\nnpm run dev\n\n# Run tests\nnpm test\n\n# Build\nnpm run build\n```\n\n## Notes\n\n- All commands validate configuration before execution\n- JSON parameters must be properly formatted\n- Watch command provides real-time updates of pipeline execution\n- Configuration is stored securely in the user's home directory\n","readmeFilename":"README.md"}