Giter Site home page Giter Site logo

skuid-cli's Introduction

skuid CLI

skuid CLI is a command line interface for deploying and retrieving Skuid metadata between environments.

This repository's main branch currently represents the in-progress development of the next major release of the project.

To download binaries for the current stable release, see this repository's releases page.

To read documentation for the current stable release, see the Skuid docs site.

Local testing

To retrieve/deploy using a branch of skuid CLI, run the command in the root of this directory with go run main.go prepended. For example:

Retrieve

To retrieve run go run main.go retrieve --host='site.pliny.webserver' -d /directory -u='user' -p='pass' -v To get more information about retrieve flags, use go run main.go retrieve --help

Deploy

To deploy run go run main.go deploy --host='site.pliny.webserver' -d /directory -u='user' -p='pass' -v To get more information about deploy flags, use go run main.go deploy --help

skuid-cli's People

Contributors

acofer avatar aelath avatar blardo avatar bravoencore avatar ccregg avatar ethanfrogers avatar gzapatas avatar itmightbecody avatar jgoodlet avatar jredh avatar koneal2013 avatar mlndz28 avatar mochacat avatar mrhwick avatar plusplusben avatar rnhatch avatar skuid-pkong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skuid-cli's Issues

skuid with -v flag reports login was successful when it was not.

While retrieving and deploying to a few different Skuid sites, I didn't update my password env var. When I ran skuid retrieve I got the expected Error retrieving metadata: Error making HTTP request%!(EXTRA string=401 Unauthorized) message.

However I ran skuid retrieve -v just to double check, and it said that I had successfully logged in:

Logging in to Skuid Platform...
Host: {my-skuid-site}
Username: {username}
Password: {incorrect-password}
API Version: 1
Login successful! Access Token:
Retrieving metadata...
Error retrieving metadata:  Error making HTTP request%!(EXTRA string=401 Unauthorized)

For the sake of accurate debugging, the app should correctly report whether or not login was successful.

skuid cli not pulling all pages

Hello I just configured the skuid cli for a new client sandbox.

  1. skuid pull -v
    Pages written to skuidpages

  2. no errors echo $?
    0

There are over 80 pages in the org and I'm only getting 10 pages back. I noticed that the pages I'm getting back are pages where I'm the owner. So I changed the owner of a few other pages and I'm still getting the same set of 10 pages back.

I've used the cli in other orgs w/o issue. What should I do to get all 80 pages pulled?

Thanks,
Peter

page-pack command ignores (-n and -m) arguments

Command used:
skuid page-pack -o [Package name] -m [Module Name]
or
skuid page-pack -o [Package name] -n [Page name]

It seems like page-pack command ignores -m and -m arguments, it doesn't retrieve pages that are specified by -n or pages within module specified by -m. Regardless of which argument I use, it retrieves all pages that don't have a module.

Also, would it be possible for page-pack to create [Package name].resource-meta.xml file alongside the page package, where the content would be:

Private application/json

It would be easier for Version Control.

Add Login command ala Force CLI

The force CLI allows you to log into multiple orgs in multiple ways. The skuid CLI should do so as well.

With force you can log into orgs in the following ways:

  1. force login -u $username -p $password - According to their codebase, this uses the SOAP Api to log in
  2. force login - This method opens a Salesforce login page and authenticates via OAuth.

In both cases, access tokens and other relevant user information are are persisted at ~/.force/accounts/{username} with a reference to the currently active org persisted at ~/.force/accounts/current.

This would allow users of skuid to manage multiple logins without having to manage bash scripts that can reset environment variables per org. This should be relatively simple to implement following the force example.

skuid pull in 0.3.0

skuid is alias for skuid_windows_amd64.exe on Windows and for skuid_darwin_amd64 on Mac

I tried this command on both Windows and Mac and it fails:
skuid pull --host https://.my.salesforce.com -n PageName -v

Error:
"{"error":"You must provide a \"module\" URL Parameter containing the nam
e, or comma-separated names, of the Modules of pages you would like to retrieve
"}"
json: cannot unmarshal string into Go value of type types.PullResponse

This command works:
skuid pull --host https://.my.salesforce.com -m ModuleName

System.LimitException: Apex heap size too large

Testing with a Salesforce org with a huge number of pages. Thought I would report, especially if one wants to pull all pages in an org.

Command: skuid pull --host https://.my.salesforce.com

Full message: {"errorCode":"APEX_ERROR","message":"System.LimitException: Apex heap size too large: 49153240\n\nExternal entry point\n(skuid)\n"}]
unexpected end of JSON input

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.