Jive Apps Command Line Tools - Collaboration

Version 1

    The Jive Apps Command Line tools include multi-developer collaboration features that allow another developer access to pull from and push to your app's Git repository. Here's how it works.

     

    1. First, as the owner of an existing app named "foo_bar_app", navigate to the app's directory.

     

    $ cd foo_bar_app

     

    2. Get a list of who currently has access.

     

    $ jiveapps sharing

    === 1 user has access to foo_bar_app

    1. scott.becker

     

    3. Add another user.

     

    You'll need to know the other user's username. If you don't already know it, you can find it by browsing to their profile on the developer community. Let's say we want to add Mark Weitzel. We'll look him up in the Jive Apps Developer Community. Note the username in the URL:

     

    co1.png

     

    Since his username is "mark.weitzel", we'll use that on the command line:

     

    $ jiveapps sharing:add mark.weitzel

    === Adding commit access to foo_bar_app for "mark.weitzel"

    === 2 users have commit access to foo_bar_app

    1. mark.weitzel

    2. scott.becker

     

    We have now added Mark as a collaborator on "foo_bar_app" and he'll be receiving an email with instructions on how to check out the app.

     

    4. Over on Mark's machine, he can now check out a copy of the code with the jiveapps clone command.

     

    $ jiveapps clone foo_bar_app

    Cloning into foo_bar_app...

    remote: Counting objects: 14, done.

    remote: Compressing objects: 100% (11/11), done.

    remote: Total 14 (delta 1), reused 0 (delta 0)

    Receiving objects: 100% (14/14), 22.39 KiB, done.

    Resolving deltas: 100% (1/1), done.

     

    5. Next he can install it into his app dashboard on the sandbox:

     

    $ cd foo_bar_app

    $ jiveapps install

     

    If you need to remove a user's access, it's just as easy:

     

    $ jiveapps sharing:remove mark.weitzel

    Are you sure you wish to remove commit access to foo_bar_app for "mark.weitzel"? (y/n)? y

    === Removing commit access to foo_bar_app for "mark.weitzel"

    === 1 user has commit access to foo_bar_app

    1. scott.becker

     

    Thanks, and Happy Coding!