{"id":22671430,"url":"https://github.com/cloudforet-io/spacectl","last_synced_at":"2025-04-12T12:22:48.996Z","repository":{"id":91030772,"uuid":"532701510","full_name":"cloudforet-io/spacectl","owner":"cloudforet-io","description":"Command Line Interface","archived":false,"fork":false,"pushed_at":"2025-02-28T08:50:38.000Z","size":430,"stargazers_count":12,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T07:04:27.644Z","etag":null,"topics":["cli","spacectl","tools"],"latest_commit_sha":null,"homepage":"","language":"Python","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/cloudforet-io.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":"2022-09-05T01:16:58.000Z","updated_at":"2025-02-28T08:50:40.000Z","dependencies_parsed_at":"2023-11-23T05:28:12.369Z","dependency_job_id":"61279ae7-a89b-4da0-9f35-f61eef072905","html_url":"https://github.com/cloudforet-io/spacectl","commit_stats":null,"previous_names":[],"tags_count":94,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudforet-io%2Fspacectl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudforet-io%2Fspacectl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudforet-io%2Fspacectl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudforet-io%2Fspacectl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudforet-io","download_url":"https://codeload.github.com/cloudforet-io/spacectl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565294,"owners_count":21125453,"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":["cli","spacectl","tools"],"created_at":"2024-12-09T16:15:00.284Z","updated_at":"2025-04-12T12:22:48.977Z","avatar_url":"https://github.com/cloudforet-io.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003espacectl\u003c/h1\u003e  \n\n\u003cbr/\u003e  \n\u003cdiv align=\"center\" style=\"display:flex;\"\u003e  \n  \u003cimg width=\"245\" src=\"https://user-images.githubusercontent.com/35549653/76694897-de236300-66bb-11ea-9ace-b9edde9c12da.png\"\u003e  \n  \u003cp\u003e \n   \u003cbr\u003e\n    \u003cimg  alt=\"Version\"  src=\"https://img.shields.io/badge/version-1.5.2.1-blue.svg?cacheSeconds=2592000\"  /\u003e    \n    \u003ca  href=\"https://www.apache.org/licenses/LICENSE-2.0\"  target=\"_blank\"\u003e  \n        \u003cimg  alt=\"License: Apache 2.0\"  src=\"https://img.shields.io/badge/License-Apache 2.0-yellow.svg\"  /\u003e  \n    \u003c/a\u003e \n    \u003c/p\u003e \n\u003c/div\u003e    \n\n# Getting Started with spacectl\nThe SpaceONE command-line tool, spacectl, allows you to run commands against resources managed by SpaceONE.     \n\nAPI Reference: https://cloudforet.gitbook.io/cloudforet-apis\n\n# Install and Set Up spacectl\nInstall the latest release with the command from PyPI using pip:\n```commandline\nsudo pip install --upgrade pip \nsudo pip install spacectl\n```\n\nThere are a few variants on getting helps. \nA list of global options and supported commands are available with --help:\n```commandline\nspacectl --help\n```\n\n## Accessing for the first time with spacectl:\n\nThe following commands run spacectl to set your own configurations and endpoints. \nIt handles setting the environments, authenticating and targets. \nRun it like these:\n\n- Set up spacectl configuration\n    ```commandline\n    spacectl config init # input environment on shell\n    spacectl config set api_key \u003capi_key\u003e\n    spacectl config endpoint add \u003cservice\u003e \u003cendpoint\u003e\n    ```\n    \n- (OR) Import a configuration file which you downloaded at SpaceONE console\n    ```commandline\n    spacectl config init -f \u003cimport_file\u003e\n    ```\n\nThe \u003cimport_file\u003e looks like\n\n```\napi_key: \u003cJWT_API_KEY\u003e\nendpoints:\n  identity: grpc://identity:50051\n  inventory: grpc://inventory:50051\n  plugin: grpc://plugin:50051\n  repository: grpc://repository:50051\n  secret: grpc://secret:50051\n  ...\n```\n\nif you want to see a sample configuration file, try [examples/configuration.yaml](examples/configuration.yaml).\n\n### Discovering builtin services:\n\nThe following commands list all available spacectl APIs. \nRun it like this:\n\n```commandline\nspacectl api-resources\n```\n\n# Examples\n### Case 1: List Cloud Service Type with AWS:\n```commandline\nspacectl list inventory.CloudServiceType -p provider=aws\n```\n\n### Case 2: Create Project Group:\n```commandline\nspacectl exec create project_group -p name=\u003cproject_group_name\u003e\n```\n\n### Case 2: List only 10 Cost data within AWS US-EAST-1 region:\n```commandline\nspacectl list cost_analysis.Cost -p provider=aws -p region_code=us-east-1 --limit 10\n```\n\n# Advanced Guides\n\n## Command Details and Guides\n- get: Show details of a specific resource\n- [list](docs/list.md): Display one or many resources\n- [apply](docs/apply.md): Get, list, create or update various resources and execute other tasks\n- stat: Querying statistics for resources\n- [exec](docs/exec.md): Execute a method to resource\n- template: Manage resource templates\n\n## Configuration Details\n\nThe following details are documented in [docs/configuration.md](docs/configuration.md)\n\n- Config Concept\n- Quick Start\n- Manage Endpoints\n- Switch the Environment\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudforet-io%2Fspacectl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudforet-io%2Fspacectl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudforet-io%2Fspacectl/lists"}