{"id":26050803,"url":"https://github.com/GenesysGo/shdwdrive-v2-cli","last_synced_at":"2025-03-08T03:01:18.040Z","repository":{"id":272503515,"uuid":"911779958","full_name":"GenesysGo/shdwdrive-v2-cli","owner":"GenesysGo","description":"A TypeScript CLI for power users of shdwDrive v2","archived":false,"fork":false,"pushed_at":"2025-02-06T16:56:23.000Z","size":124,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-06T17:42:34.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GenesysGo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-03T20:42:14.000Z","updated_at":"2025-02-06T16:56:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"584a8a17-9f3a-4257-aa66-f3e0600f3d7f","html_url":"https://github.com/GenesysGo/shdwdrive-v2-cli","commit_stats":null,"previous_names":["genesysgo/shdwdrive-v2-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesysGo%2Fshdwdrive-v2-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesysGo%2Fshdwdrive-v2-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesysGo%2Fshdwdrive-v2-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesysGo%2Fshdwdrive-v2-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GenesysGo","download_url":"https://codeload.github.com/GenesysGo/shdwdrive-v2-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242492132,"owners_count":20137577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-08T03:01:17.097Z","updated_at":"2025-03-08T03:01:18.019Z","avatar_url":"https://github.com/GenesysGo.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://shdwdrive.com\"\u003e\n    \u003cimg src=\"./assets/shdwdrive_Logo.png\" alt=\"ShdwDrive Logo\" width=\"600\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# shdwDrive CLI\n\nA command-line interface for interacting with shdwDrive storage.\n\n## Features\n\n- 📤 File uploads (supports both small and large files)\n- 📁 Folder support (create, delete, and manage files in folders)\n- 📥 File and folder deletion\n- 📋 File listing\n- 📊 Bucket usage statistics\n- 🔐 Secure message signing\n- 🔄 Multipart upload support for large files\n\n## Installation\n\nYou can install the CLI globally using npm:\n\n```bash\nnpm install -g @shdwdrive/cli\n```\n\nOr use it directly from the repository:\n\n```bash\ngit clone https://github.com/genesysgo/shdwdrive-v2-cli.git\ncd shdwdrive-v2-cli\nnpm install\nnpm run build\nnpm link\n```\n\n## Configuration\n\nThe CLI uses environment variables for configuration:\n\n- `SHDW_ENDPOINT`: The shdwDrive API endpoint (defaults to https://v2.shdwdrive.com)\n\n## Usage\n\n### Upload a file\n```bash\nshdw-drive upload \\\n  --keypair ~/.config/solana/id.json \\\n  --bucket your-bucket-identifier \\\n  --file path/to/your/file.txt \\\n  --folder optional/folder/path\n```\n\n### Delete a file\n```bash\n# Delete a file from root of bucket\nshdw-drive delete \\\n  --keypair ~/.config/solana/id.json \\\n  --bucket your-bucket-identifier \\\n  --file filename.txt\n\n# Delete a file from a folder\nshdw-drive delete \\\n  --keypair ~/.config/solana/id.json \\\n  --bucket your-bucket-identifier \\\n  --file folder/subfolder/filename.jpg\n```\n\n### Create a folder\n```bash\nshdw-drive create-folder \\\n  --keypair ~/.config/solana/id.json \\\n  --bucket your-bucket-identifier \\\n  --name my-folder/subfolder\n```\n\n### List files in a bucket\n```bash\nshdw-drive list \\\n  --keypair ~/.config/solana/id.json \\\n  --bucket your-bucket-identifier\n```\n\n### Check bucket storage usage\n```bash\nshdw-drive usage \\\n  --keypair ~/.config/solana/id.json \\\n  --bucket your-bucket-identifier\n```\n\n## Command Options\n\n### Upload Options\n- `-k, --keypair` - Path to your Solana keypair file\n- `-b, --bucket` - Your bucket identifier\n- `-f, --file` - Path to the file you want to upload\n- `-F, --folder` - (Optional) Folder path within the bucket\n\n### Delete Options\n- `-k, --keypair` - Path to your Solana keypair file\n- `-b, --bucket` - Your bucket identifier\n- `-f, --file` - URL or path of the file to delete\n\n### Create Folder Options\n- `-k, --keypair` - Path to your Solana keypair file\n- `-b, --bucket` - Your bucket identifier\n- `-n, --name` - Name/path of the folder to create\n\n### Delete Folder Options\n- `-k, --keypair` - Path to your Solana keypair file\n- `-b, --bucket` - Your bucket identifier\n- `-p, --path` - Path of the folder to delete\n\n## Development\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/genesysgo/shdwdrive-v2-cli.git\n```\n\n2. Install dependencies:\n```bash\ncd shdwdrive-v2-cli\nnpm install\n```\n\n3. Build the project:\n```bash\nnpm run build\n```\n\n4. Link the CLI locally:\n```bash\nnpm link\n```\n\n## License\n\nSee the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGenesysGo%2Fshdwdrive-v2-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGenesysGo%2Fshdwdrive-v2-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGenesysGo%2Fshdwdrive-v2-cli/lists"}