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

Updates to Command Line Interface Tools (Gen 2 CLI) #22540

Closed
5 of 8 tasks
nollymar opened this issue Jul 8, 2022 · 5 comments
Closed
5 of 8 tasks

Updates to Command Line Interface Tools (Gen 2 CLI) #22540

nollymar opened this issue Jul 8, 2022 · 5 comments

Comments

@nollymar
Copy link
Contributor

nollymar commented Jul 8, 2022

User Story

dotCMS has a CLI that can be used in CI/CD platforms, but it can only handle pushing

  • sites
  • content types
  • files (meaning, templates and containers too)

It would be nice if the CLI could "pull" from an existing dotCMS install into a folder

Acceptance Criteria

We need to start by recreating the legacy CLI functionality.

https://github.com/dotCMS/core/tree/master/tools/cli/commands

  • content-type
  • push-bundle
  • push-content-types
  • push-files
  • push-lang
  • push-site-contents
  • push-sites
  • site

CLI commands should look like:

dotcli site --help

# Pull all site s(should default to all)
dotcli site pull  

## writes file to demo.dotcms.com.site.json
dotcli site pull demo.dotcms.com

## push from demo.dotcms.com.site.json
dotcli site push demo.dotcms.com

Likely there will be some additional tweaks.

Proposed Objective

Core Features

Proposed Priority

Priority 2 - Important

Acceptance Criteria

No response

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Sub-Tasks & Estimates

Tasks

Preview Give feedback
  1. Merged OKR : Core Features QA : Not Needed QA : Passed Internal Release : 23.08.16 Team : Scout Type : Enhancement dotCMS : CLI
  2. Merged QA : Not Needed QA : Passed Internal Release : 23.06 Team : Scout dotCMS : CLI
  3. Gardening Day Merged QA : Approved QA : Passed Internal Release : 24.10.02 Team : Scout Type : Defect
  4. Merged QA : Not Needed QA : Passed Internal Release : 23.06 Team : Scout dotCMS : CLI
  5. Merged Note to QA QA : Approved QA : Passed Internal Release : 23.03 Team : Scout Type : Enhancement dotCMS : CLI
@fabrizzio-dotCMS fabrizzio-dotCMS changed the title dotCMS CLI push/pull dotCMS CLI Jul 8, 2022
@fabrizzio-dotCMS fabrizzio-dotCMS changed the title dotCMS CLI dotCMS CLI - Gen 2 Rest command Client Jul 8, 2022
@stale
Copy link

stale bot commented Dec 1, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@damen-dotcms
Copy link
Contributor

Hey @fabrizzio-dotCMS & @wezell, I've updated this issue based on the conversation we just had.

Next up I'll work with Fabrizzio to add some tasks with more details based on the legacy CLI features, and then we can discuss this more on the Wednesday call and call out any tweaks that need to be made as we're rebuilding this functionality with the new Java libraries.

Thanks!

@damen-dotcms
Copy link
Contributor

Oh, also tagging in @spbolton. (=

@damen-dotcms damen-dotcms added the OKR : Sales Owned by Dean label Feb 6, 2023
@damen-dotcms
Copy link
Contributor

Legacy CLI - https://www.dotcms.com/docs/latest/bash-cli

@damen-dotcms damen-dotcms changed the title dotCMS CLI - Gen 2 Rest command Client Updates to Command Line Interface Tools (Gen 2 CLI) Feb 17, 2023
@damen-dotcms
Copy link
Contributor

Hey @spbolton,

Any update on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants