Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage variables using CLI #13

Open
rajdip-b opened this issue Mar 26, 2024 · 0 comments
Open

Manage variables using CLI #13

rajdip-b opened this issue Mar 26, 2024 · 0 comments
Labels
priority:urgent Priority description - Urgent type:feat Added some new feature

Comments

@rajdip-b
Copy link
Member

Description

Create and manage variables using CLI. Here are the aspects to manage:

Creating a variable

Command

ks variable create <project_id> <options>

Options

  • --name/-n: Name of the variable
  • --value/-v: Value of the variable
  • --note/-d: (Optional) Description of the variable
  • --environment/-e: (Optional) Environment under which the variable should belong to. Defaults to the default environment of the project.

Updating a variable

Command

ks environment update <variable_id> <options>

Options

Specifying any of these options will update only that specific property of the environment. At least one option needs to be specified for this command to run.

  • --name/-n: (Optional) Name of the variable
  • --note/-d: (Optional) Description of the variable

Updating the environment of a variable

Command

ks environment update-enbvironment <variable_id> <environment_id>

Creating a new revision of the variable

Command

ks environment create-revision <variable_id> <new_value> 

Rolling back to an older revision

Command

ks environment rollback <variable_id> <version>

Listing all variables

Command

ks variable list <project_id> <options>

Options

  • --page: (Optional) The page index
  • --size: (Optional) Size of the page

Deleting a variable

Command

ks variable delete <variable_id>

Read a variable

Command

ks variable read <variable_id>
@rajdip-b rajdip-b added priority:urgent Priority description - Urgent type:feat Added some new feature labels Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:urgent Priority description - Urgent type:feat Added some new feature
Projects
None yet
Development

No branches or pull requests

1 participant