Skip to content
Ramon Gebben edited this page Jan 15, 2014 · 5 revisions

Devstar Commands

Devstar commands are there you make you're life easier, we configured a lot for you. Thanks to fish it becomes real easy to add some scripts to commands and optimise you're workflow. This page will explain how our commands work and how to create your own.

Help

For a list of shortcuts use

ds-help

If you need a quick reference you can acces the wiki at all time by using

wiki <Tab>

Help

##Web commands This are commands used to generate default skeletons of webpages and apps with a particular set up.

###Ruby On Rails To generate a Rails skeleton

new-site-rails <name>

###PHP To generate PHP skeleton, with phpMyAdmin and MySQL preconfigured to default values.

new-site-php <name>

###NodeJS To generate NodeJS skeleton,

new-site-nodejs <name>

###Archive Sites Devstar comes with the option to update sites with one command, site-archive. This will make a tar.gz file from the site directory.

To use

site-archive <name>

###Remove sites. To never really lose work, we build in an archive that saves sites that are removed with remove-site. Devstar will store these archives in /devstar/archive

To remove and archive a site use

remove-site <name>

##System commands System commands are commands to manipulate files, create compressed archives, preform updates and make navigation must easier.

###Comments Devstar has an intergrated comment system. If you add an comment it will show up in the greetings message.

To add a comment use

comment <input>

###Archives To compress files to a .tar.gz

tzg <name> <source>

Or don't put in <name> and <source> and use it in current.

tzg

This will create an archive of the current folder with name and date of creation.

To extract from a tar.gz, tar.bz2 or zip

untar <name> <destination>

If you don't put in <name> or <destination> untar will extract every archive in current folder, in seperated folders.

To Add a user with all the right permissions set correctly you use

ds-user <name>

###Navigation

ls aliases

This is a list of ls aliasses

ls => Normal list
ll => Simplified long directory listing
lsa => List of all folders and files
lash => Show everything

cd

Thanks to fish there is no more need for cd you just start typing the path.

###Administration tools We also modified sudo in fish, to work better with autocomplete. Usage is the same as ever.

sudo 

Devstar Upgrade

ds-upgrade is a script that will update from the GitHub repository To use

ds-upgrade

##Other commands

fish_greeting is a function that fish accesses to show a greeting text or execute commands. We have configured it so it will show Toilet with the hostname.

fish greeting

It will also give you information regarding your disk usage and usage per site.

fish_prompt is a specially designed prompt to look and feel like a valid URI-scheme.

fish prompt

##Personal Commands When you desire some special commands that other people on the system do not like to have in the Devstar folder. You can make personal commands, these commands will be saved in /home/(user)/.config/fish/functions Too make a new function

Clone this wiki locally